Merge "Pin base and builder images to buster"
This commit is contained in:
@@ -14,11 +14,13 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
FROM docker.io/opendevorg/python-builder:3.9 as builder
|
FROM docker.io/opendevorg/python-builder:3.9 as builder
|
||||||
|
RUN echo 'deb http://deb.debian.org/debian buster-backports main' >> /etc/apt/sources.list
|
||||||
|
|
||||||
COPY src /tmp/src
|
COPY src /tmp/src
|
||||||
RUN assemble
|
RUN assemble
|
||||||
|
|
||||||
FROM docker.io/opendevorg/python-base:3.9 as eavesdrop
|
FROM docker.io/opendevorg/python-base:3.9 as eavesdrop
|
||||||
|
RUN echo 'deb http://deb.debian.org/debian buster-backports main' >> /etc/apt/sources.list
|
||||||
|
|
||||||
COPY --from=builder /output/ /output
|
COPY --from=builder /output/ /output
|
||||||
RUN /output/install-from-bindep \
|
RUN /output/install-from-bindep \
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
gcc [compile test]
|
gcc [compile test]
|
||||||
libc6-dev [compile test]
|
libc6-dev [compile test]
|
||||||
libffi-dev [compile test]
|
libffi-dev [compile test]
|
||||||
libolm-dev [compile test]
|
libolm-dev/buster-backports [compile test]
|
||||||
make [compile test]
|
make [compile test]
|
||||||
python3-dev [compile test]
|
python3-dev [compile test]
|
||||||
libolm3
|
libolm3/buster-backports
|
||||||
|
@@ -16,15 +16,14 @@
|
|||||||
# Comment to force rebuilds Tue Aug 3 19:59:32 UTC 2021
|
# Comment to force rebuilds Tue Aug 3 19:59:32 UTC 2021
|
||||||
|
|
||||||
ARG PYTHON_VERSION=3.7
|
ARG PYTHON_VERSION=3.7
|
||||||
FROM docker.io/library/python:${PYTHON_VERSION}-slim
|
FROM docker.io/library/python:${PYTHON_VERSION}-slim-buster
|
||||||
|
|
||||||
RUN echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/95disable-recommends
|
RUN echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/95disable-recommends
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y dumb-init \
|
&& apt-get install -y dumb-init \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
&& echo 'deb http://deb.debian.org/debian bullseye-backports main' >> /etc/apt/sources.list
|
|
||||||
|
|
||||||
# Upgrade pip to fix wheel cache for locally built wheels.
|
# Upgrade pip to fix wheel cache for locally built wheels.
|
||||||
# See https://github.com/pypa/pip/issues/6852
|
# See https://github.com/pypa/pip/issues/6852
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
# Comment to force rebuilds Tue Aug 3 19:59:32 UTC 2021
|
# Comment to force rebuilds Tue Aug 3 19:59:32 UTC 2021
|
||||||
|
|
||||||
ARG PYTHON_VERSION=3.7
|
ARG PYTHON_VERSION=3.7
|
||||||
FROM docker.io/library/python:${PYTHON_VERSION}-slim as fake-python
|
FROM docker.io/library/python:${PYTHON_VERSION}-slim-buster as fake-python
|
||||||
|
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
@@ -25,7 +25,7 @@ RUN apt-get update \
|
|||||||
COPY python3-dev.control /tmp/python3-dev.control
|
COPY python3-dev.control /tmp/python3-dev.control
|
||||||
RUN equivs-build /tmp/python3-dev.control
|
RUN equivs-build /tmp/python3-dev.control
|
||||||
|
|
||||||
FROM docker.io/library/python:${PYTHON_VERSION}-slim
|
FROM docker.io/library/python:${PYTHON_VERSION}-slim-buster
|
||||||
|
|
||||||
RUN echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/95disable-recommends
|
RUN echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/95disable-recommends
|
||||||
|
|
||||||
@@ -36,8 +36,7 @@ COPY scripts/install-from-bindep /output/install-from-bindep
|
|||||||
RUN dpkg -i /tmp/python3-dev_4.0.0_all.deb \
|
RUN dpkg -i /tmp/python3-dev_4.0.0_all.deb \
|
||||||
&& rm /tmp/python3-dev_4.0.0_all.deb \
|
&& rm /tmp/python3-dev_4.0.0_all.deb \
|
||||||
&& pip install --no-cache-dir bindep \
|
&& pip install --no-cache-dir bindep \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
&& echo 'deb http://deb.debian.org/debian bullseye-backports main' >> /etc/apt/sources.list
|
|
||||||
|
|
||||||
# Upgrade pip to fix wheel cache for locally built wheels
|
# Upgrade pip to fix wheel cache for locally built wheels
|
||||||
# See https://github.com/pypa/pip/issues/6852
|
# See https://github.com/pypa/pip/issues/6852
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
gcc [compile]
|
gcc [compile]
|
||||||
libc6-dev [compile]
|
libc6-dev [compile]
|
||||||
libffi-dev [compile platform:dpkg]
|
libffi-dev [compile platform:dpkg]
|
||||||
libffi7 [platform:dpkg]
|
libffi6 [platform:dpkg]
|
||||||
libssl-dev [compile platform:dpkg]
|
libssl-dev [compile platform:dpkg]
|
||||||
|
Reference in New Issue
Block a user