Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes: Added support for openSUSE tumbleweed and leap v15.6,v15.5,v… #77

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,19 @@ jobs:
TAG: "24.03-lts"
- CONTEXT: operating_systems/openeuler
TAG: "24.09"
- CONTEXT: operating_systems/opensuse
TAG: "15.6"
- CONTEXT: operating_systems/opensuse
TAG: "15.5"
- CONTEXT: operating_systems/opensuse
TAG: "15.4"
- CONTEXT: operating_systems/opensuse
TAG: "15.3"
- CONTEXT: operating_systems/opensuse
TAG: "15.2"
- CONTEXT: operating_systems/opensuse
BASEIMAGE: opensuse/tumbleweed
TAG: "latest"
- 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.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
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
Loading