Skip to content

Commit

Permalink
feat: Added Docker Buildx.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Apr 29, 2023
1 parent de8ed27 commit 40d77db
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN curl -L -o "/tmp/shellcheck-v${SHELLCHECK_VERSION}.tar.xz" "https://github.c
&& mv "shellcheck-v${SHELLCHECK_VERSION}/shellcheck" /usr/bin/ \
&& shellcheck --version

# Install docker && docker compose.
# Install Docker and Docker Compose V2 (docker compose).
# @see https://download.docker.com/linux/static/stable/x86_64
# @see https://github.com/docker/compose/releases
ENV DOCKER_VERSION=20.10.24
Expand All @@ -42,12 +42,20 @@ RUN curl -L -o "/tmp/docker-${DOCKER_VERSION}.tgz" "https://download.docker.com/
&& chmod +x $HOME/.docker/cli-plugins/docker-compose \
&& docker compose version

# Install Docker Compose V1 (docker-compose).
ENV DOCKER_COMPOSE_LEGACY_VERSION=1.29.2
RUN curl -L "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_LEGACY_VERSION}/docker-compose-$(uname -s)-$(uname -m)" > /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& docker-compose version \
&& echo "WARNING: Docker Compose v1 will be deprecated as of July 2023 and will not be included in future versions of this image. We strongly encourage users to transition to Docker Compose v2 for continued support and improved functionality." >&2

# Install Docker buildx (docker buildx).
ENV BUILDX_VERSION=v0.10.4
RUN mkdir -vp ~/.docker/cli-plugins \
&& curl --silent -L "https://github.com/docker/buildx/releases/download/${BUILDX_VERSION}/buildx-${BUILDX_VERSION}.linux-amd64" > ~/.docker/cli-plugins/docker-buildx \
&& chmod a+x ~/.docker/cli-plugins/docker-buildx \
&& docker buildx version

# Install composer.
# @see https://getcomposer.org/download
ENV COMPOSER_VERSION=2.5.5
Expand Down
7 changes: 7 additions & 0 deletions goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ command:
stderr: []
timeout: 10000

docker buildx version:
exit-status: 0
stdout:
- buildx
stderr: []
timeout: 10000

which docker-compose:
exit-status: 0
stdout:
Expand Down
1 change: 1 addition & 0 deletions versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ commands=(
"shellcheck --version"
"docker --version"
"docker compose version"
"docker buildx version"
"docker-compose version"
"php --version"
"composer --version"
Expand Down

0 comments on commit 40d77db

Please sign in to comment.