58 lines
2.1 KiB
Docker
58 lines
2.1 KiB
Docker
ARG FROM=opensuse/leap:15.1
|
|
FROM ${FROM}
|
|
ARG CFSSLURL=https://pkg.cfssl.org/R1.2/cfssl_linux-amd64
|
|
|
|
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-pegleg.readthedocs.org'
|
|
LABEL org.opencontainers.image.source='https://opendev.org/airship/pegleg'
|
|
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
|
|
ARG DECKHAND_VERSION=branch/master
|
|
ARG SHIPYARD_VERSION=branch/master
|
|
ARG PROMENADE_VERSION=branch/master
|
|
|
|
RUN set -x \
|
|
&& zypper up -y \
|
|
&& zypper --non-interactive install \
|
|
curl \
|
|
gcc \
|
|
git-core \
|
|
openssh \
|
|
python3 \
|
|
python3-dbm \
|
|
python3-devel \
|
|
python3-pip \
|
|
python3-setuptools \
|
|
which \
|
|
&& zypper --non-interactive ar -f https://download.opensuse.org/repositories/devel:languages:python/openSUSE_Leap_15.1/devel:languages:python.repo \
|
|
&& zypper --non-interactive --gpg-auto-import-keys refresh devel_languages_python \
|
|
&& zypper --non-interactive install python3-six-1.12.0-lp151.80.1.noarch
|
|
RUN pip3 install -U pip \
|
|
&& zypper clean -a \
|
|
&& rm -rf \
|
|
/tmp/* \
|
|
/usr/share/doc \
|
|
/usr/share/doc-base \
|
|
/usr/share/man \
|
|
/var/log/* \
|
|
/var/tmp/*
|
|
|
|
VOLUME /var/pegleg
|
|
WORKDIR /var/pegleg
|
|
|
|
COPY requirements.txt /opt/pegleg/requirements.txt
|
|
RUN pip3 install -r https://opendev.org/airship/deckhand/raw/${DECKHAND_VERSION}/requirements.txt \
|
|
&& pip3 install -r https://opendev.org/airship/promenade/raw/${PROMENADE_VERSION}/requirements.txt \
|
|
&& pip3 install -r https://opendev.org/airship/shipyard/raw/${SHIPYARD_VERSION}/src/bin/shipyard_client/requirements.txt \
|
|
&& pip3 install --no-cache-dir -r /opt/pegleg/requirements.txt
|
|
|
|
COPY tools/install-cfssl.sh /opt/pegleg/tools/install-cfssl.sh
|
|
RUN /opt/pegleg/tools/install-cfssl.sh ${CFSSLURL}
|
|
|
|
COPY . /opt/pegleg
|
|
RUN pip3 install -e /opt/pegleg
|