forked from meAmidos/dcind
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from opendoor-labs/dh/bump-docker
Bump docker version to fix tests in newer debian versions
- Loading branch information
Showing
3 changed files
with
21 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
# Inspired by https://github.com/mumoshu/dcind | ||
FROM alpine:3.10 | ||
LABEL maintainer="Dmitry Matrosov <[email protected]>" | ||
FROM alpine:3.20.1 | ||
|
||
ENV DOCKER_VERSION=19.03.12 \ | ||
DOCKER_COMPOSE_VERSION=1.25.0 | ||
ENV DOCKER_VERSION=25.0.3 \ | ||
DOCKER_COMPOSE_VERSION=2.28.1 | ||
|
||
# Install Docker and Docker Compose | ||
RUN apk --no-cache add bash curl util-linux device-mapper py3-pip python3-dev libffi-dev openssl-dev gcc libc-dev make iptables && \ | ||
curl https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz | tar zx && \ | ||
# Install Docker | ||
RUN apk --no-cache add bash curl util-linux device-mapper py3-pip python3-dev libffi-dev openssl-dev gcc libc-dev make iptables | ||
RUN curl https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz | tar zx && \ | ||
mv /docker/* /bin/ && \ | ||
chmod +x /bin/docker* && \ | ||
pip3 install --upgrade pip && \ | ||
pip3 install docker-compose==${DOCKER_COMPOSE_VERSION} && \ | ||
rm -rf /root/.cache | ||
chmod +x /bin/docker* | ||
# Install Docker Compose | ||
RUN mkdir -p ~/.docker/cli-plugins && \ | ||
curl -SL https://github.com/docker/compose/releases/download/v${DOCKER_COMPOSE_VERSION}/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose && \ | ||
chmod +x ~/.docker/cli-plugins/docker-compose && \ | ||
echo -e '#!/bin/bash\nexec docker compose "$@"' > /usr/bin/docker-compose && \ | ||
chmod +x /usr/bin/docker-compose | ||
|
||
# Include functions to start/stop docker daemon | ||
COPY docker-lib.sh /docker-lib.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters