From 635a7da9970862d2bfa6f4c73cb597d566fa13ea Mon Sep 17 00:00:00 2001 From: Alex Couture-Beil Date: Mon, 23 Jan 2023 12:43:23 -0800 Subject: [PATCH] update alpine and docker compose versions (#10) --- Earthfile | 9 ++++++++- install-dind.sh | 6 +++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Earthfile b/Earthfile index 6d9d18a..9b265a4 100644 --- a/Earthfile +++ b/Earthfile @@ -6,7 +6,7 @@ INSTALL_DIND: RUN /tmp/install-dind.sh install-dind-script: - FROM alpine:3.13 + FROM alpine:3.17 COPY ./install-dind.sh ./ SAVE ARTIFACT ./install-dind.sh @@ -36,6 +36,13 @@ test-install-dind-arm64: test-install-dind-for-image: ARG base_image FROM "$base_image" + + # docker-compose will fail with: + # Error response from daemon: Invalid container name (-hello-1), only [a-zA-Z0-9][a-zA-Z0-9_.-] are allowed + # if docker-compose.yml is in the root directory, due to the --project flag defaulting to "". + # This bug does not exist in the official earthly/dind:alpine image. + WORKDIR /dind-test + DO +INSTALL_DIND RUN echo " version: \"3\" diff --git a/install-dind.sh b/install-dind.sh index bc1cc73..0f53d42 100755 --- a/install-dind.sh +++ b/install-dind.sh @@ -45,13 +45,13 @@ install_docker_compose() { echo "Detected architecture is $(uname -m)" case "$(uname -m)" in armv7l|armhf) - curl -L "https://github.com/linuxserver/docker-docker-compose/releases/download/1.27.4-ls27/docker-compose-armhf" -o /usr/local/bin/docker-compose + curl -L "https://github.com/linuxserver/docker-docker-compose/releases/download/1.29.2-ls53/docker-compose-armhf" -o /usr/local/bin/docker-compose ;; arm64|aarch64) - curl -L "https://github.com/linuxserver/docker-docker-compose/releases/download/1.27.4-ls27/docker-compose-arm64" -o /usr/local/bin/docker-compose + curl -L "https://github.com/linuxserver/docker-docker-compose/releases/download/1.29.2-ls53/docker-compose-arm64" -o /usr/local/bin/docker-compose ;; *) - curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose + curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose ;; esac chmod +x /usr/local/bin/docker-compose