
Zuul gates broke for Spyglass due to an update made to either Zuul or Openstack's Zuul jobs (I wasn't able to pin it down). The update caused Zuul to attempt to install Spyglass's requirements.txt file instead of referring to the method given in the tox configuration that utilizes Pipenv. To bypass this issue, the requirements.txt will be removed and Spyglass will be fully moved over to using Pipenv. Removes requirements.txt Updates Pipfile and Pipfile.lock for new package releases Updates Dockerfile to install requirements from Pipfile.lock Change-Id: I347ef6db18a44e1b88c811aa071ba8c60bccbd53
47 lines
1.3 KiB
Docker
47 lines
1.3 KiB
Docker
ARG FROM=ubuntu:16.04
|
|
FROM ${FROM}
|
|
|
|
LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode'
|
|
LABEL org.opencontainers.image.url='https://airshipit.org'
|
|
LABEL org.opencontainers.image.documentation='https://airship-spyglass.readthedocs.org'
|
|
LABEL org.opencontainers.image.source='https://opendev.org/airship/spyglass'
|
|
LABEL org.opencontainers.image.vendor='The Airship Authors'
|
|
LABEL org.opencontainers.image.licenses='Apache-2.0'
|
|
|
|
ENV LANG=C.UTF-8
|
|
ENV LC_ALL=C.UTF-8
|
|
|
|
RUN set -ex \
|
|
&& apt-get update -qq \
|
|
&& apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
curl \
|
|
gcc \
|
|
git \
|
|
libssl-dev \
|
|
netbase \
|
|
python3-dev \
|
|
python3-pip \
|
|
python3-setuptools \
|
|
&& python3 -m pip install -U pip \
|
|
&& apt-get autoremove -yqq --purge \
|
|
&& apt-get clean \
|
|
&& rm -rf \
|
|
/tmp/* \
|
|
/usr/share/doc \
|
|
/usr/share/doc-base \
|
|
/usr/share/man \
|
|
/var/lib/apt/lists/* \
|
|
/var/tmp/*
|
|
|
|
VOLUME /var/spyglass
|
|
WORKDIR /var/spyglass
|
|
|
|
COPY Pipfile /var/spyglass/Pipfile
|
|
COPY Pipfile.lock /var/spyglass/Pipfile.lock
|
|
RUN pip3 install pipenv \
|
|
&& pipenv install --system --deploy --ignore-pipfile
|
|
|
|
COPY . /opt/spyglass
|
|
RUN pip3 install -e /opt/spyglass
|