Skip to content

Commit

Permalink
Changes: Added support for openSUSE tumbleweed and leap v15.6,v15.5,v… (
Browse files Browse the repository at this point in the history
#77)

* Changes: Added support for openSUSE tumbleweed and leap v15.6,v15.5,v15.4,v15.3

* Changes: Updated aligned with review comments. Removed base image for 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.

* Changes: Updated the export tag for Tumbleweed to tumbleweed based on the latest changes in pull #79

* Changes: reorder the build contexts ins ascending in build.yml and README.md. Add Export_tag. rectifying the issue of the previous commit.

* Change: Explicitly specify registry

---------

Co-authored-by: Nicolas Thumann <nicolas.thumann@greenbone.net>
  • Loading branch information
sudiptagreenbone and n-thumann authored Jan 7, 2025
1 parent 998da24 commit 6618b9d
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,20 @@ jobs:
TAG: "24.03-lts"
- CONTEXT: operating_systems/openeuler
TAG: "24.09"
- CONTEXT: operating_systems/opensuse
TAG: "15.2"
- CONTEXT: operating_systems/opensuse
TAG: "15.3"
- CONTEXT: operating_systems/opensuse
TAG: "15.4"
- CONTEXT: operating_systems/opensuse
TAG: "15.5"
- CONTEXT: operating_systems/opensuse
TAG: "15.6"
- CONTEXT: operating_systems/opensuse
BASEIMAGE: docker.io/opensuse/tumbleweed
TAG: "latest"
EXPORT_TAG: "tumbleweed"
- CONTEXT: operating_systems/oraclelinux
TAG: "5"
- CONTEXT: operating_systems/oraclelinux
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ When done, the container can be stopped with `docker stop target`.
- `23.09`
- `24.03-lts`
- `24.09`
- [openSUSE](https://ghcr.io/greenbone/vt-test-environments/opensuse) (`opensuse`)
- `15.2`
- `15.3`
- `15.4`
- `15.5`
- `15.6`
- `tumbleweed`
- [Oracle Linux](https://ghcr.io/greenbone/vt-test-environments/oraclelinux) (`oraclelinux`)
- `5`
- `6`
Expand Down
18 changes: 18 additions & 0 deletions operating_systems/opensuse/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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 \
&& 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)

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

EXPOSE 22

0 comments on commit 6618b9d

Please sign in to comment.