Skip to content

Add Docker buildx tool to al2/aarch64/standard:3.0 #642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions al2/aarch64/standard/3.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ ENV DOCKER_BUCKET="download.docker.com" \
ENV DOCKER_SHA256="3865F837DBD951B19EEB5F7D87AADA2E865B2017E9462FE389F0E5D9A438324D"
ENV DOCKER_VERSION="23.0.1"
ENV DOCKER_COMPOSE_VERSION="2.17.2"
ENV DOCKER_BUILDX_VERSION="0.11.2"

VOLUME /var/lib/docker

Expand All @@ -299,10 +300,22 @@ RUN set -ex \
&& echo 'dockremap:165536:65536' >> /etc/subuid \
&& echo 'dockremap:165536:65536' >> /etc/subgid \
&& wget -q "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \
&& curl -L https://github.com/docker/compose/releases/download/v${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-aarch64 > /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \
# Ensure docker-compose works
&& docker-compose version
&& chmod +x /usr/local/bin/dind \
# Install docker compose as docker plugin and maintain docker-compose usage
&& mkdir -p /usr/local/lib/docker/cli-plugins \
&& curl -L https://github.com/docker/compose/releases/download/v${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-aarch64 > /usr/local/lib/docker/cli-plugins/docker-compose \
&& chmod +x /usr/local/lib/docker/cli-plugins/docker-compose \
&& ln -s /usr/local/lib/docker/cli-plugins/docker-compose /usr/local/bin/docker-compose \
# Ensure docker-compose and docker compose works
&& docker-compose version \
&& docker compose version \
# Add docker buildx tool
&& curl -L https://github.com/docker/buildx/releases/download/v${DOCKER_BUILDX_VERSION}/buildx-v${DOCKER_BUILDX_VERSION}.linux-arm64 -o /usr/local/lib/docker/cli-plugins/docker-buildx \
&& chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx \
&& ln -s /usr/local/lib/docker/cli-plugins/docker-buildx /usr/local/bin/docker-buildx \
# Ensure docker-buildx and docker buildx works
&& docker-buildx version \
&& docker buildx version

#=======================End of layer: runtimes_2 =================
FROM runtimes_2 AS runtimes_3
Expand Down