File Dockerfile of Package serviced
# Defines the tag for OBS and build script builds:
#!BuildTag: serviced
FROM opensuse/leap:15.6
ENV container docker
RUN zypper -n install systemd
RUN systemctl mask dev-mqueue.mount dev-hugepages.mount \
systemd-remount-fs.service sys-kernel-config.mount \
sys-kernel-debug.mount sys-fs-fuse-connections.mount \
display-manager.service graphical.target systemd-logind.service
ADD dbus.service /etc/systemd/system/dbus.service
RUN systemctl enable dbus.service
ENV LANG en_US.UTF-8
RUN zypper -n addrepo http://download.opensuse.org/repositories/devel:/openQA/15.6 devel:openQA
RUN zypper -n addrepo http://download.opensuse.org/repositories/devel:/openQA:/Leap:/15.6/15.6 devel:openQA:Leap:15.6
RUN zypper -n --gpg-auto-import-keys --no-gpg-checks refresh
ENV dbname openqa
ENV dbuser geekotest
RUN echo "geekotest ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN mkdir -p /home/geekotest
RUN useradd -r -d /home/geekotest -g users --uid=1000 geekotest
RUN chown geekotest:users /home/geekotest
RUN zypper -n install --no-recommends perl-Mojo-SQLite
RUN zypper -n install --no-recommends perl-CommonMark
RUN zypper -n install --no-recommends perl-Mojolicious-Plugin-AssetPack
RUN zypper -n install openQA openQA-local-db apache2 openssh-common ruby
RUN zypper -n install apparmor-profiles apparmor-utils
RUN zypper -n install curl hostname iputils vim command-not-found bsdtar zip
RUN zypper -n install make sudo rsync
VOLUME ['/sys/fs/cgroup']
VOLUME ['/run']
RUN chown "$dbuser":users /etc/openqa/database.ini.d
RUN chown -R "$dbuser":users /usr/share/openqa
ADD init.sh /opt/init.sh
ADD init-trigger-from-obs.sh /opt/init-trigger-from-obs.sh
EXPOSE 80 9526
ENTRYPOINT ["/usr/lib/systemd/systemd"]