-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes: Added support for openSUSE tumbleweed and leap v15.6,v15.5,v… (
#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
1 parent
998da24
commit 6618b9d
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |