Skip to content

Commit

Permalink
Add openEuler (#57)
Browse files Browse the repository at this point in the history
* Add: Dockerfile for openEuler

* Add: openEuler to build.yml

* Add: openEuler to README
  • Loading branch information
n-thumann authored Aug 20, 2024
1 parent b29fe7b commit 5449c0f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,22 @@ jobs:
TAG: "8"
- CONTEXT: operating_systems/mageia
TAG: "9"
- CONTEXT: operating_systems/openeuler
TAG: "22.03-lts"
- CONTEXT: operating_systems/openeuler
TAG: "22.03-lts-sp1"
- CONTEXT: operating_systems/openeuler
TAG: "22.03-lts-sp2"
- CONTEXT: operating_systems/openeuler
TAG: "22.03-lts-sp3"
- CONTEXT: operating_systems/openeuler
TAG: "22.03-lts-sp4"
- CONTEXT: operating_systems/openeuler
TAG: "23.03"
- CONTEXT: operating_systems/openeuler
TAG: "23.09"
- CONTEXT: operating_systems/openeuler
TAG: "24.03-lts"
- CONTEXT: operating_systems/oraclelinux
TAG: "5"
UPDATED: false
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ When done, the container can be stopped with `docker stop target`.
- `7`
- `8`
- `9`
- [openEuler](https://ghcr.io/greenbone/vt-test-environments/openeuler) (`openeuler`)
- `22.03-lts`
- `22.03-lts-sp1`
- `22.03-lts-sp2`
- `22.03-lts-sp3`
- `22.03-lts-sp4`
- `23.03`
- `23.09`
- `24.03-lts`
- [Oracle Linux](https://ghcr.io/greenbone/vt-test-environments/oraclelinux) (`oraclelinux`)
- `5`
- `6`
Expand Down
18 changes: 18 additions & 0 deletions operating_systems/openeuler/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ARG BASEIMAGE=openeuler/openeuler
ARG TAG

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

RUN if [ "$UPDATED" = true ]; then dnf upgrade -y; fi \
&& dnf install -y openssh-server passwd \
&& dnf clean all \
&& useradd demo \
&& echo "demo" | passwd --stdin demo \
&& ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N "" \
&& ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N "" \
&& ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ""

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

EXPOSE 22

0 comments on commit 5449c0f

Please sign in to comment.