Skip to content

Commit b635afe

Browse files
Add: Arch Linux (#95)
* Add: Arch Linux * Add: Arch Linux README.md entry * Change: Fix URL --------- Co-authored-by: Nicolas Thumann <[email protected]>
1 parent ca0e192 commit b635afe

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555
TAG: "2022"
5656
- CONTEXT: operating_systems/amazonlinux
5757
TAG: "2023"
58+
- CONTEXT: operating_systems/archlinux
59+
TAG: latest
5860
- CONTEXT: operating_systems/debian
5961
BASEIMAGE: debian/eol
6062
TAG: woody

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ When done, the container can be stopped with `docker stop target`.
5656
- `2`
5757
- `2022`
5858
- `2023`
59+
- [Arch Linux](https://ghcr.io/greenbone/vt-test-environments/archlinux) (`archlinux`)
60+
- `latest`
5961
- [Debian](https://ghcr.io/greenbone/vt-test-environments/debian) (`debian`)
6062
- `woody`
6163
- `sarge`
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
ARG BASEIMAGE=docker.io/library/archlinux
2+
ARG TAG
3+
4+
FROM ${BASEIMAGE}:${TAG}
5+
6+
ARG UPDATED=false
7+
8+
RUN if [ "$UPDATED" = "true" ]; then pacman -Syu --noconfirm; fi \
9+
&& pacman -Sy --noconfirm openssh \
10+
&& useradd demo \
11+
&& echo "demo:demo" | chpasswd \
12+
&& ssh-keygen -A \
13+
&& pacman -Scc --noconfirm
14+
15+
CMD ["/usr/bin/sshd", "-D"]
16+
17+
EXPOSE 22

0 commit comments

Comments
 (0)