diff options
author | Dave Wallace <dwallacelf@gmail.com> | 2021-08-04 21:33:51 -0400 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2021-08-04 21:33:51 -0400 |
commit | 83d02315550f24aebc87a142bc552d2910c0698b (patch) | |
tree | 8b69e72863f0dcb3bc908b75da461c453219a372 /docker/scripts/lib_apt.sh | |
parent | c54dce5e4fb6b31310e65a3ce142cd366eaf5989 (diff) |
Fix debian-9 docker image builder
- Docker installation no longer works on debian-9
so don't install it when building debian-9
executor images.
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Change-Id: I7896799bdc6cd1d683966b1f0951405d4967891b
Diffstat (limited to 'docker/scripts/lib_apt.sh')
-rw-r--r-- | docker/scripts/lib_apt.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docker/scripts/lib_apt.sh b/docker/scripts/lib_apt.sh index 099a85a68..69c2d27cf 100644 --- a/docker/scripts/lib_apt.sh +++ b/docker/scripts/lib_apt.sh @@ -197,11 +197,9 @@ RUN apt-get update -qq \\ && curl -L https://packagecloud.io/fdio/master/gpgkey | apt-key add - \\ && curl -s https://packagecloud.io/install/repositories/fdio/master/script.deb.sh | bash \\ EOF - # Hack to prevent failure on debian-9 build + # Docker installation script fails on debian-9, so don't install docker head $DOCKERFILE - if grep -qe 'debian:9' "$DOCKERFILE" ; then - echo " && curl -fsSL https://get.docker.com | sed -e 's/has_rootless_extras=\"1\"//g' | sh \ " >>"$DOCKERFILE" - else + if ! grep -qe 'debian:9' "$DOCKERFILE" ; then echo " && curl -fsSL https://get.docker.com | sh \ " >>"$DOCKERFILE" fi |