2023-06-19 09:32:56 +02:00
|
|
|
FROM opensuse/leap:15.5
|
2022-12-05 15:10:50 +01:00
|
|
|
|
2023-06-19 09:32:56 +02:00
|
|
|
RUN zypper ar --repo http://download.opensuse.org/repositories/OBS:/Server:/Unstable/15.5/OBS:Server:Unstable.repo
|
2022-12-05 15:10:50 +01:00
|
|
|
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/*
|
|
|
|
|
|
|
|
# increase the number if we need to run the following setup steps again (for debugging purposes)
|
|
|
|
ENV BUILD_NUMBER 1
|
|
|
|
|
|
|
|
RUN /bin/bash /opt/obs/container-setup.sh
|
|
|
|
COPY container-oscrc /root/.config/osc/oscrc
|
|
|
|
RUN /bin/bash /opt/obs/container-setup-initial-data.sh
|
|
|
|
RUN /bin/bash /opt/obs/container-setup-prebuilt-rpms.sh
|
|
|
|
|
2023-06-19 09:32:56 +02:00
|
|
|
# /sbin/init doesn't exist on Leap 15.5
|
2022-12-05 15:10:50 +01:00
|
|
|
ENTRYPOINT ["/usr/lib/systemd/systemd"]
|