forked from docker/compose
-
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 docker#6766 from docker/bump-1.24.1
Bump 1.24.1
- Loading branch information
Showing
72 changed files
with
400 additions
and
1,151 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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Generated by FOSSA CLI (https://github.com/fossas/fossa-cli) | ||
# Visit https://fossa.io to learn more | ||
|
||
version: 2 | ||
cli: | ||
server: https://app.fossa.io | ||
fetcher: custom | ||
project: git@github.com:docker/compose | ||
analyze: | ||
modules: | ||
- name: . | ||
type: pip | ||
target: . | ||
path: . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,36 @@ | ||
ARG DOCKER_VERSION=18.09.5 | ||
ARG PYTHON_VERSION=3.7.3 | ||
ARG BUILD_ALPINE_VERSION=3.9 | ||
ARG BUILD_DEBIAN_VERSION=slim-stretch | ||
ARG RUNTIME_ALPINE_VERSION=3.9.3 | ||
ARG RUNTIME_DEBIAN_VERSION=stretch-20190326-slim | ||
FROM docker:18.06.1 as docker | ||
FROM python:3.6 | ||
|
||
ARG BUILD_PLATFORM=alpine | ||
RUN set -ex; \ | ||
apt-get update -qq; \ | ||
apt-get install -y \ | ||
locales \ | ||
python-dev \ | ||
git | ||
|
||
FROM docker:${DOCKER_VERSION} AS docker-cli | ||
COPY --from=docker /usr/local/bin/docker /usr/local/bin/docker | ||
|
||
FROM python:${PYTHON_VERSION}-alpine${BUILD_ALPINE_VERSION} AS build-alpine | ||
RUN apk add --no-cache \ | ||
bash \ | ||
build-base \ | ||
ca-certificates \ | ||
curl \ | ||
gcc \ | ||
git \ | ||
libc-dev \ | ||
libffi-dev \ | ||
libgcc \ | ||
make \ | ||
musl-dev \ | ||
openssl \ | ||
openssl-dev \ | ||
python2 \ | ||
python2-dev \ | ||
zlib-dev | ||
ENV BUILD_BOOTLOADER=1 | ||
# Python3 requires a valid locale | ||
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen | ||
ENV LANG en_US.UTF-8 | ||
|
||
FROM python:${PYTHON_VERSION}-${BUILD_DEBIAN_VERSION} AS build-debian | ||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
gcc \ | ||
git \ | ||
libc-dev \ | ||
libgcc-6-dev \ | ||
make \ | ||
openssl \ | ||
python2.7-dev | ||
|
||
FROM build-${BUILD_PLATFORM} AS build | ||
COPY docker-compose-entrypoint.sh /usr/local/bin/ | ||
ENTRYPOINT ["sh", "/usr/local/bin/docker-compose-entrypoint.sh"] | ||
COPY --from=docker-cli /usr/local/bin/docker /usr/local/bin/docker | ||
RUN useradd -d /home/user -m -s /bin/bash user | ||
WORKDIR /code/ | ||
|
||
# FIXME(chris-crone): virtualenv 16.3.0 breaks build, force 16.2.0 until fixed | ||
RUN pip install virtualenv==16.2.0 | ||
RUN pip install tox==2.9.1 | ||
RUN pip install tox==2.1.1 | ||
|
||
COPY requirements.txt . | ||
COPY requirements-dev.txt . | ||
COPY .pre-commit-config.yaml . | ||
COPY tox.ini . | ||
COPY setup.py . | ||
COPY README.md . | ||
COPY compose compose/ | ||
ADD requirements.txt /code/ | ||
ADD requirements-dev.txt /code/ | ||
ADD .pre-commit-config.yaml /code/ | ||
ADD setup.py /code/ | ||
ADD tox.ini /code/ | ||
ADD compose /code/compose/ | ||
ADD README.md /code/ | ||
RUN tox --notest | ||
COPY . . | ||
ARG GIT_COMMIT=unknown | ||
ENV DOCKER_COMPOSE_GITSHA=$GIT_COMMIT | ||
RUN script/build/linux-entrypoint | ||
|
||
FROM alpine:${RUNTIME_ALPINE_VERSION} AS runtime-alpine | ||
FROM debian:${RUNTIME_DEBIAN_VERSION} AS runtime-debian | ||
FROM runtime-${BUILD_PLATFORM} AS runtime | ||
COPY docker-compose-entrypoint.sh /usr/local/bin/ | ||
ENTRYPOINT ["sh", "/usr/local/bin/docker-compose-entrypoint.sh"] | ||
COPY --from=docker-cli /usr/local/bin/docker /usr/local/bin/docker | ||
COPY --from=build /usr/local/bin/docker-compose /usr/local/bin/docker-compose | ||
ADD . /code/ | ||
RUN chown -R user /code/ | ||
|
||
ENTRYPOINT ["/code/.tox/py36/bin/docker-compose"] |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM python:3.6 | ||
|
||
RUN set -ex; \ | ||
apt-get update -qq; \ | ||
apt-get install -y \ | ||
locales \ | ||
curl \ | ||
python-dev \ | ||
git | ||
|
||
RUN curl -fsSL -o dockerbins.tgz "https://download.docker.com/linux/static/stable/armhf/docker-17.12.0-ce.tgz" && \ | ||
SHA256=f8de6378dad825b9fd5c3c2f949e791d22f918623c27a72c84fd6975a0e5d0a2; \ | ||
echo "${SHA256} dockerbins.tgz" | sha256sum -c - && \ | ||
tar xvf dockerbins.tgz docker/docker --strip-components 1 && \ | ||
mv docker /usr/local/bin/docker && \ | ||
chmod +x /usr/local/bin/docker && \ | ||
rm dockerbins.tgz | ||
|
||
# Python3 requires a valid locale | ||
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen | ||
ENV LANG en_US.UTF-8 | ||
|
||
RUN useradd -d /home/user -m -s /bin/bash user | ||
WORKDIR /code/ | ||
|
||
RUN pip install tox==2.1.1 | ||
|
||
ADD requirements.txt /code/ | ||
ADD requirements-dev.txt /code/ | ||
ADD .pre-commit-config.yaml /code/ | ||
ADD setup.py /code/ | ||
ADD tox.ini /code/ | ||
ADD compose /code/compose/ | ||
RUN tox --notest | ||
|
||
ADD . /code/ | ||
RUN chown -R user /code/ | ||
|
||
ENTRYPOINT ["/code/.tox/py36/bin/docker-compose"] |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM docker:18.06.1 as docker | ||
FROM alpine:3.8 | ||
|
||
ENV GLIBC 2.28-r0 | ||
|
||
RUN apk update && apk add --no-cache openssl ca-certificates curl libgcc && \ | ||
curl -fsSL -o /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \ | ||
curl -fsSL -o glibc-$GLIBC.apk https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC/glibc-$GLIBC.apk && \ | ||
apk add --no-cache glibc-$GLIBC.apk && \ | ||
ln -s /lib/libz.so.1 /usr/glibc-compat/lib/ && \ | ||
ln -s /lib/libc.musl-x86_64.so.1 /usr/glibc-compat/lib && \ | ||
ln -s /usr/lib/libgcc_s.so.1 /usr/glibc-compat/lib && \ | ||
rm /etc/apk/keys/sgerrand.rsa.pub glibc-$GLIBC.apk && \ | ||
apk del curl | ||
|
||
COPY --from=docker /usr/local/bin/docker /usr/local/bin/docker | ||
COPY dist/docker-compose-Linux-x86_64 /usr/local/bin/docker-compose | ||
|
||
ENTRYPOINT ["docker-compose"] |
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
Oops, something went wrong.