Skip to content

Commit

Permalink
Changes: Updated aligned with review comments. Removed base image for…
Browse files Browse the repository at this point in the history
… opensuse leap as it is the default for the docker file. Changed the openSUSE version tag format on the README. Removed shadow installation and addition of password authentication to the sshd config file.
  • Loading branch information
sudiptagreenbone committed Dec 18, 2024
1 parent a03578e commit 7a3c1a6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,20 +135,15 @@ jobs:
- CONTEXT: operating_systems/openeuler
TAG: "24.09"
- CONTEXT: operating_systems/opensuse
BASEIMAGE: opensuse/leap
TAG: "15.6"
- CONTEXT: operating_systems/opensuse
BASEIMAGE: opensuse/leap
TAG: "15.5"
- CONTEXT: operating_systems/opensuse
BASEIMAGE: opensuse/leap
TAG: "15.4"
- CONTEXT: operating_systems/opensuse
BASEIMAGE: opensuse/leap
TAG: "15.3"
- CONTEXT: operating_systems/opensuse
BASEIMAGE: opensuse/leap
TAG: "15.3"
TAG: "15.2"
- CONTEXT: operating_systems/opensuse
BASEIMAGE: opensuse/tumbleweed
TAG: "latest"
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,12 @@ When done, the container can be stopped with `docker stop target`.
- `24.03-lts`
- `24.09`
- [openSUSE](https://ghcr.io/greenbone/vt-test-environments/opensuse) (`opensuse`)
- `leap:15.6`
- `leap:15.5`
- `leap:15.4`
- `leap:15.3`
- `tumbleweed:latest`
- `15.6`
- `15.5`
- `15.4`
- `15.3`
- `15.2`
- `tumbleweed`
- [Oracle Linux](https://ghcr.io/greenbone/vt-test-environments/oraclelinux) (`oraclelinux`)
- `5`
- `6`
Expand Down
11 changes: 4 additions & 7 deletions operating_systems/opensuse/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
ARG BASEIMAGE=opensuse/leap
ARG BASEIMAGE=docker.io/opensuse/leap
ARG TAG=latest

FROM ${BASEIMAGE}:${TAG}
ARG UPDATED=false

RUN if [ "$UPDATED" = true ]; then zypper refresh && zypper update -y; fi \
&& zypper install -y openssh shadow \
&& zypper install -y openssh \
&& zypper clean \
&& useradd -m demo \
&& echo "demo:demo" | chpasswd \
&& ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N "" \
&& (ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N "" || true) \
&& (ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" || true) \
&& [ ! -f /etc/ssh/sshd_config ] && /usr/sbin/sshd -t || true \
&& touch /etc/ssh/sshd_config \
&& echo "PasswordAuthentication yes" >> /etc/ssh/sshd_configc
&& (ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" || true)

CMD [ "/usr/sbin/sshd", "-D" ]

EXPOSE 22
EXPOSE 22

0 comments on commit 7a3c1a6

Please sign in to comment.