Skip to content

Commit

Permalink
Merge pull request #59 from dev-sec/os_python
Browse files Browse the repository at this point in the history
Update OpenSuSE tumbleweed image
  • Loading branch information
schurzi authored Feb 7, 2025
2 parents b3060c0 + 00ddbb8 commit 4fb0274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opensuse_tumbleweed-ansible-latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM opensuse/tumbleweed:latest
LABEL maintainer="Sebastian Gumprich"
ENV container=docker

RUN zypper install -y python ansible dbus-1 systemd-sysvinit shadow sudo && \
RUN zypper install -y python311 ansible dbus-1 systemd-sysvinit shadow sudo && \
zypper clean

RUN cp /usr/lib/systemd/system/dbus.service /etc/systemd/system/; \
Expand All @@ -24,7 +24,7 @@ RUN set -xe \
&& useradd -m -g ${ANSIBLE_USER} ${ANSIBLE_USER} \
&& usermod -aG ${SUDO_GROUP} ${ANSIBLE_USER} \
&& usermod -aG ${DEPLOY_GROUP} ${ANSIBLE_USER} \
&& sed -i "s/^# \(%${SUDO_GROUP} ALL=(ALL:ALL) NOPASSWD: ALL\)/\\1/g" /etc/sudoers
&& sed -i "s/^# \(%${SUDO_GROUP} ALL=(ALL:ALL) NOPASSWD: ALL\)/\\1/g" /usr/etc/sudoers

# delete file created by systemd that prevents login via ssh
RUN rm -f /{var/run,etc,run}/nologin
Expand Down

0 comments on commit 4fb0274

Please sign in to comment.