Skip to content

Commit

Permalink
Fix openEuler 20.04-lts (#83)
Browse files Browse the repository at this point in the history
* Remove: Manual installation of repos and gpg-keys for openEuler 20.03-lts

* Change: Skip installation of dependencies for openEuler 20.03-lts

* Remove: Unnecessary dependencies
  • Loading branch information
n-thumann authored Jan 23, 2025
1 parent 821cdbe commit 949f04e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions operating_systems/openeuler/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ FROM ${BASEIMAGE}:${TAG}
ARG UPDATED=false
ARG TAG

RUN if [ "$TAG" = "20.03-lts" ]; then dnf install -y \
https://repo.openeuler.org/openEuler-20.03-LTS/update/x86_64/Packages/openEuler-gpg-keys-1.0-2.9.oe1.x86_64.rpm \
https://repo.openeuler.org/openEuler-20.03-LTS/update/x86_64/Packages/openEuler-repos-1.0-2.9.oe1.x86_64.rpm; fi
RUN if [ "$UPDATED" = true ]; then dnf upgrade -y; fi \
&& dnf install -y openssh-server passwd shadow-utils\
&& if [ "$TAG" != "20.03-lts" ]; then dnf install -y openssh-server; fi \
&& dnf clean all \
&& useradd demo \
&& echo "demo" | passwd --stdin 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 "" \
&& ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ""
Expand Down

0 comments on commit 949f04e

Please sign in to comment.