Docker-PHP/marshall/installers/000_apt.sh

27 lines
784 B
Bash
Raw Normal View History

2019-06-11 14:59:58 +00:00
#!/bin/bash
2019-08-14 15:34:54 +00:00
source /installers/config
2019-06-11 14:59:58 +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.
(
cat /etc/apt/sources.list;
cat /etc/apt/sources.list \
| sed 's/http\:\/\/archive\.ubuntu\.com\/ubuntu\//mirror\:\/\/mirrors.ubuntu.com\/mirrors.txt/g' \
| sed "s|deb http://security.ubuntu.com|# deb http://security.ubuntu.com|g"
) \
| sed '/^#/d' \
| sed '/^$/d' \
| uniq \
> /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
# 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.
2021-04-12 08:21:59 +00:00
$APT_GET ca-certificates
$APT_GET apt apt-utils