Docker-Swarm-Loadbalancer/marshall/installers/000_apt.sh

31 lines
992 B
Bash
Raw Normal View History

2019-06-11 14:59:58 +00:00
#!/bin/bash
Trunk linter (#17) * linting is fun * mis-detection of missing healthcheck staements. * typo * disable tagging vanity tags on non-main branch * Unbugger node build? * Add gitleaks detector, remove an expired secret. * More linting-derived cleanup * Fiddle with trivy * Fiddle with trivy * add a readme * Fix build bug with php flavours * Marshall should build other flavours of ubuntu. * Fiddle with act cache location. * Add concurrency checks * Composer version gubbins for 7.0/7.1 * ubuntu is just a label, and injected over the top of. * Composer version gubbins for 7.0/7.1 * Run when workflow is altered too please. * Hopefully fix composer stage. * setup tooling meta-tooling. * Add trunk * Disable mirror mode, its being problematic, and increase retries to 5. * Revisit how ghcr login works. * Add trunk checks. * All hail the linter * Heavilly revise workflow * Fettling * Fettling * Fettling * Fettling * Fettling * Cleanup * Cleanup * Fettling.. Why does mitm build but not redis? * Fettling.. Why does mitm build but not redis? * Debuggin * Fettling. * Fix build? * Permissions are a pain * Switch around some should_push logic because envs aren't available that early. * Permissionssssss * Trivy, bane of my life * Fix merge? * Fix labels * Help node along, among other things * Redis 6.1 & 7.1 aren't a thing any more. * Ffff USER nonsense * latest-openssl doesn't exist. * fixup mysqlproxy. * Fix labels * uurrgh * uurrgh * Didn't need to add the mitmproxy user, it exists * Missing ghcr login * Missing backtick * Fix build? * Add validate build step to bouncer. * Fix bouncer build * Disable laravel build * Missing env * Fix swarm mon build * Scout just doesn't seem to work.
2024-02-07 15:21:14 +00:00
# shellcheck disable=SC1091,SC2312
2019-08-14 15:34:54 +00:00
source /installers/config
Trunk linter (#17) * linting is fun * mis-detection of missing healthcheck staements. * typo * disable tagging vanity tags on non-main branch * Unbugger node build? * Add gitleaks detector, remove an expired secret. * More linting-derived cleanup * Fiddle with trivy * Fiddle with trivy * add a readme * Fix build bug with php flavours * Marshall should build other flavours of ubuntu. * Fiddle with act cache location. * Add concurrency checks * Composer version gubbins for 7.0/7.1 * ubuntu is just a label, and injected over the top of. * Composer version gubbins for 7.0/7.1 * Run when workflow is altered too please. * Hopefully fix composer stage. * setup tooling meta-tooling. * Add trunk * Disable mirror mode, its being problematic, and increase retries to 5. * Revisit how ghcr login works. * Add trunk checks. * All hail the linter * Heavilly revise workflow * Fettling * Fettling * Fettling * Fettling * Fettling * Cleanup * Cleanup * Fettling.. Why does mitm build but not redis? * Fettling.. Why does mitm build but not redis? * Debuggin * Fettling. * Fix build? * Permissions are a pain * Switch around some should_push logic because envs aren't available that early. * Permissionssssss * Trivy, bane of my life * Fix merge? * Fix labels * Help node along, among other things * Redis 6.1 & 7.1 aren't a thing any more. * Ffff USER nonsense * latest-openssl doesn't exist. * fixup mysqlproxy. * Fix labels * uurrgh * uurrgh * Didn't need to add the mitmproxy user, it exists * Missing ghcr login * Missing backtick * Fix build? * Add validate build step to bouncer. * Fix bouncer build * Disable laravel build * Missing env * Fix swarm mon build * Scout just doesn't seem to work.
2024-02-07 15:21:14 +00:00
echo "force-unsafe-io" >/etc/dpkg/dpkg.cfg.d/force-unsafe-io
# We're gonna move the sources to .d/ubuntu.list, then copy it, then manipulate it for a mirror list.
Trunk linter (#17) * linting is fun * mis-detection of missing healthcheck staements. * typo * disable tagging vanity tags on non-main branch * Unbugger node build? * Add gitleaks detector, remove an expired secret. * More linting-derived cleanup * Fiddle with trivy * Fiddle with trivy * add a readme * Fix build bug with php flavours * Marshall should build other flavours of ubuntu. * Fiddle with act cache location. * Add concurrency checks * Composer version gubbins for 7.0/7.1 * ubuntu is just a label, and injected over the top of. * Composer version gubbins for 7.0/7.1 * Run when workflow is altered too please. * Hopefully fix composer stage. * setup tooling meta-tooling. * Add trunk * Disable mirror mode, its being problematic, and increase retries to 5. * Revisit how ghcr login works. * Add trunk checks. * All hail the linter * Heavilly revise workflow * Fettling * Fettling * Fettling * Fettling * Fettling * Cleanup * Cleanup * Fettling.. Why does mitm build but not redis? * Fettling.. Why does mitm build but not redis? * Debuggin * Fettling. * Fix build? * Permissions are a pain * Switch around some should_push logic because envs aren't available that early. * Permissionssssss * Trivy, bane of my life * Fix merge? * Fix labels * Help node along, among other things * Redis 6.1 & 7.1 aren't a thing any more. * Ffff USER nonsense * latest-openssl doesn't exist. * fixup mysqlproxy. * Fix labels * uurrgh * uurrgh * Didn't need to add the mitmproxy user, it exists * Missing ghcr login * Missing backtick * Fix build? * Add validate build step to bouncer. * Fix bouncer build * Disable laravel build * Missing env * Fix swarm mon build * Scout just doesn't seem to work.
2024-02-07 15:21:14 +00:00
#(
# cat /etc/apt/sources.list
# sed 's/http\:\/\/archive\.ubuntu\.com\/ubuntu\//mirror\:\/\/mirrors.ubuntu.com\/mirrors.txt/g' </etc/apt/sources.list |
# sed "s|deb http://security.ubuntu.com|# deb http://security.ubuntu.com|g"
#) |
# sed '/^#/d' |
# sed '/^$/d' \
# >/etc/apt/sources.list.d/ubuntu.list
#rm /etc/apt/sources.list
#touch /etc/apt/sources.list
2019-06-11 14:59:58 +00:00
# Remove duplicate sources
Trunk linter (#17) * linting is fun * mis-detection of missing healthcheck staements. * typo * disable tagging vanity tags on non-main branch * Unbugger node build? * Add gitleaks detector, remove an expired secret. * More linting-derived cleanup * Fiddle with trivy * Fiddle with trivy * add a readme * Fix build bug with php flavours * Marshall should build other flavours of ubuntu. * Fiddle with act cache location. * Add concurrency checks * Composer version gubbins for 7.0/7.1 * ubuntu is just a label, and injected over the top of. * Composer version gubbins for 7.0/7.1 * Run when workflow is altered too please. * Hopefully fix composer stage. * setup tooling meta-tooling. * Add trunk * Disable mirror mode, its being problematic, and increase retries to 5. * Revisit how ghcr login works. * Add trunk checks. * All hail the linter * Heavilly revise workflow * Fettling * Fettling * Fettling * Fettling * Fettling * Cleanup * Cleanup * Fettling.. Why does mitm build but not redis? * Fettling.. Why does mitm build but not redis? * Debuggin * Fettling. * Fix build? * Permissions are a pain * Switch around some should_push logic because envs aren't available that early. * Permissionssssss * Trivy, bane of my life * Fix merge? * Fix labels * Help node along, among other things * Redis 6.1 & 7.1 aren't a thing any more. * Ffff USER nonsense * latest-openssl doesn't exist. * fixup mysqlproxy. * Fix labels * uurrgh * uurrgh * Didn't need to add the mitmproxy user, it exists * Missing ghcr login * Missing backtick * Fix build? * Add validate build step to bouncer. * Fix bouncer build * Disable laravel build * Missing env * Fix swarm mon build * Scout just doesn't seem to work.
2024-02-07 15:21:14 +00:00
sort /etc/apt/sources.list.d/ubuntu.list | uniq >/etc/apt/sources.list.d/ubuntu.list.uniq
mv /etc/apt/sources.list.d/ubuntu.list.uniq /etc/apt/sources.list.d/ubuntu.list
2019-06-11 14:59:58 +00:00
# Update apt repos
apt-get -qq update
# System upgrade
2021-02-16 11:59:40 +00:00
apt-get -yq upgrade
2019-07-23 11:37:27 +00:00
Feature/multiplat (#2) * Fuckin' Perl. Marshall 199MB => 130MB * Down to 122MB. I'll take it. * Multiplatform rewrite * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Multiplatform rewrite. Squash me. * Squash this. * Squash this * Squash this * Squash this * Squash this * Squash this * Squash this * Squash this * Squash this * Squash this * Apparently github registry doesn't support multi-platform images :facepalm: * gchr.io replaced github registry containers, who knew. * GHCR not GHPR * Skip GHCR? * Probably should copy the login action changes across. * Fire ze cannons * Re-enable lint. Enable Marshall. Disable GHCR, its just broken jank. * Rename * Probably don't care about -onbuild builds right now. * The full matrix isn't building yet :/ * Typo. * I can't spell, evidently * This is causing some strange behaviour. * This is causing some strange behaviour. * Turn off fail fast. * Add PHP_VERSION ENVAR * Add vanity tag functionality * 7.4 all built right... Build all the other images? * Tabzilla * Fix issues with 8.0/7.0 being truncated to 8/7. Phase out 5.6 builder. * Vanity tags might run on a different instance oops. * Why was php7.4-redis/php8.0-redis removed in the first place. I have no idea.
2020-12-02 11:27:31 +00:00
# Install apt-utils & ca-certificates to prevent some screaming.
Trunk linter (#17) * linting is fun * mis-detection of missing healthcheck staements. * typo * disable tagging vanity tags on non-main branch * Unbugger node build? * Add gitleaks detector, remove an expired secret. * More linting-derived cleanup * Fiddle with trivy * Fiddle with trivy * add a readme * Fix build bug with php flavours * Marshall should build other flavours of ubuntu. * Fiddle with act cache location. * Add concurrency checks * Composer version gubbins for 7.0/7.1 * ubuntu is just a label, and injected over the top of. * Composer version gubbins for 7.0/7.1 * Run when workflow is altered too please. * Hopefully fix composer stage. * setup tooling meta-tooling. * Add trunk * Disable mirror mode, its being problematic, and increase retries to 5. * Revisit how ghcr login works. * Add trunk checks. * All hail the linter * Heavilly revise workflow * Fettling * Fettling * Fettling * Fettling * Fettling * Cleanup * Cleanup * Fettling.. Why does mitm build but not redis? * Fettling.. Why does mitm build but not redis? * Debuggin * Fettling. * Fix build? * Permissions are a pain * Switch around some should_push logic because envs aren't available that early. * Permissionssssss * Trivy, bane of my life * Fix merge? * Fix labels * Help node along, among other things * Redis 6.1 & 7.1 aren't a thing any more. * Ffff USER nonsense * latest-openssl doesn't exist. * fixup mysqlproxy. * Fix labels * uurrgh * uurrgh * Didn't need to add the mitmproxy user, it exists * Missing ghcr login * Missing backtick * Fix build? * Add validate build step to bouncer. * Fix bouncer build * Disable laravel build * Missing env * Fix swarm mon build * Scout just doesn't seem to work.
2024-02-07 15:21:14 +00:00
${APT_GET} ca-certificates
${APT_GET} apt apt-utils