mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 22:56:15 +01:00
33 lines
853 B
Docker
33 lines
853 B
Docker
FROM opensuse/leap:15.4
|
|
|
|
RUN zypper ar --repo http://download.opensuse.org/repositories/OBS:/Server:/Unstable/15.4/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/*
|
|
|
|
# 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
|
|
|
|
# /sbin/init doesn't exist on Leap 15.4
|
|
ENTRYPOINT ["/usr/lib/systemd/systemd"]
|