
Also fixes related issue with distutils installation for Debian Stretch and Ubuntu Xenial with py3: unlike in Bionic, distutils is installed with python3 and python3-distutils package is not available in these distributions. Run Debian build with py3 against stable/train, as master requires at least python3.6, not available for distribution out of box. Also increases job timeout to 5400 due to increased amount of builds. Change-Id: I04c9253af80d941afb45231bee20f7bb1c4a96d4
24 lines
928 B
Docker
24 lines
928 B
Docker
ARG FROM=debian:stretch
|
|
FROM ${FROM}
|
|
|
|
ARG DEBIAN_URL=http://deb.debian.org/debian/
|
|
ARG DEBIAN_SECURITY_URL=http://security.debian.org/debian-security/
|
|
ARG DEBIAN_SECURITY_DISTRIBUTION=stretch/updates
|
|
ARG CEPH_URL=http://download.ceph.com/debian-nautilus/
|
|
ARG ALLOW_UNAUTHENTICATED=false
|
|
ARG PIP_INDEX_URL=https://pypi.python.org/simple/
|
|
ARG PIP_TRUSTED_HOST=pypi.python.org
|
|
ENV PIP_INDEX_URL=${PIP_INDEX_URL}
|
|
ENV PIP_TRUSTED_HOST=${PIP_TRUSTED_HOST}
|
|
|
|
COPY sources.list /etc/apt/
|
|
COPY ceph.gpg /etc/apt/trusted.gpg.d/
|
|
RUN sed -i \
|
|
-e "s|%%DEBIAN_URL%%|${DEBIAN_URL}|g" \
|
|
-e "s|%%DEBIAN_SECURITY_URL%%|${DEBIAN_SECURITY_URL}|g" \
|
|
-e "s|%%DEBIAN_SECURITY_DISTRIBUTION%%|${DEBIAN_SECURITY_DISTRIBUTION}|g" \
|
|
-e "s|%%CEPH_URL%%|${CEPH_URL}|g" \
|
|
/etc/apt/sources.list
|
|
RUN echo "APT::Get::AllowUnauthenticated \"${ALLOW_UNAUTHENTICATED}\";" \
|
|
> /etc/apt/apt.conf.d/allow-unathenticated
|