You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/06/03 23:50:00 UTC
[GitHub] [airflow] potiuk commented on a change in pull request #9126: Use static binary linked docker client in CI image
potiuk commented on a change in pull request #9126:
URL: https://github.com/apache/airflow/pull/9126#discussion_r434917220
##########
File path: Dockerfile.ci
##########
@@ -148,13 +148,8 @@ RUN mkdir -pv /usr/share/man/man1 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
-# Install Docker
-RUN curl --fail --location https://download.docker.com/linux/debian/gpg | apt-key add - \
- && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable" \
- && apt-get update \
- && apt-get -y install --no-install-recommends docker-ce \
- && apt-get autoremove -yqq --purge \
- && apt-get clean && rm -rf /var/lib/apt/lists/*
+RUN curl https://get.docker.com/builds/Linux/i386/docker-latest -o /usr/bin/docker \
Review comment:
This seems to be best:
```
ARG DOCKER_CLI_VERSION=19.03.9
ENV DOCKER_CLI_VERSION=${DOCKER_CLI_VERSION}
RUN curl https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_CLI_VERSION}.tgz \
| tar -C /usr/bin --strip-components=1 -xvzf - docker/docker
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org