mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-11 05:23:48 +01:00
35 lines
834 B
Docker
35 lines
834 B
Docker
FROM opensuse/leap:15.5
|
|
|
|
RUN zypper ar --repo http://download.opensuse.org/repositories/OBS:/Server:/Unstable/15.5/OBS:Server:Unstable.repo
|
|
RUN zypper -n --gpg-auto-import-keys refresh
|
|
RUN zypper -n install \
|
|
bash \
|
|
bash-completion \
|
|
git \
|
|
less \
|
|
obs-api \
|
|
obs-server \
|
|
obs-signd \
|
|
obs-worker \
|
|
osc \
|
|
openslp \
|
|
openssl \
|
|
perl-XML-SAX \
|
|
rpm-build \
|
|
systemd \
|
|
vim \
|
|
&& rm -rf /var/cache/zypp/*
|
|
|
|
COPY container-files/ /
|
|
|
|
RUN /bin/bash /opt/setup/setup.sh \
|
|
&& /bin/bash /opt/setup/initial-data.sh \
|
|
&& /bin/bash /opt/setup/prebuilt-rpms.sh \
|
|
&& rm -rf /var/log/apache2/* \
|
|
&& rm -rf /srv/obs/log/* \
|
|
&& rm -rf /srv/obs/service/log/* \
|
|
&& rm -rf /srv/www/obs/api/log/*
|
|
|
|
# /sbin/init doesn't exist on Leap 15.5
|
|
ENTRYPOINT ["/usr/lib/systemd/systemd"]
|