Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cda93f1aba | |||
| f81def18b5 | |||
| 08841a1503 | |||
| 4103300345 | |||
| e720828d8b | |||
| 751ca8d4ca | |||
| afba5d9464 | |||
| 849c4e00d7 | |||
| 2a9929a392 | |||
| 762e92e9fb |
78
apps.yaml
78
apps.yaml
@@ -1,8 +1,8 @@
|
||||
- name: RD-openeuler-iperf
|
||||
descr: openEuler container running iperf3 server
|
||||
page: https://iperf.fr/
|
||||
category: network
|
||||
default-credential: none
|
||||
category: networking
|
||||
default-credentials: none
|
||||
services:
|
||||
iperf:
|
||||
image: docker.io/openeuler/iperf:latest
|
||||
@@ -18,8 +18,8 @@
|
||||
- name: RD-alpine-iperf
|
||||
descr: Alpine Linux container running iperf3 server
|
||||
page: https://iperf.fr/
|
||||
category: network
|
||||
default-credential: none
|
||||
category: networking
|
||||
default-credentials: none
|
||||
services:
|
||||
iperf:
|
||||
image: docker.io/alpine:latest
|
||||
@@ -28,3 +28,73 @@
|
||||
default:
|
||||
name: lan
|
||||
external: true
|
||||
|
||||
- name: RD-debian-shell
|
||||
descr: Minimal Debian 13 (trixie-slim) shell for one-off tasks
|
||||
page: https://hub.docker.com/_/debian
|
||||
category: development
|
||||
default-credentialss: none
|
||||
auto-update: false
|
||||
services:
|
||||
debian-shell:
|
||||
image: docker.io/library/debian:trixie-slim
|
||||
hostname: debian-shell
|
||||
# trixie-slim exits immediately without a TTY, so keep PID 1 alive
|
||||
command: sleep infinity
|
||||
environment:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
restart: "no"
|
||||
# sleep as PID 1 ignores SIGTERM, so don't wait long on stop
|
||||
stop_grace_period: 2s
|
||||
networks:
|
||||
default:
|
||||
name: lan
|
||||
external: true
|
||||
|
||||
- name: RD-debian-shell-withSSH
|
||||
descr: Minimal Debian 13 (trixie-slim) shell for one-off tasks
|
||||
page: https://hub.docker.com/_/debian
|
||||
category: development
|
||||
default-credentials: none
|
||||
auto-update: false
|
||||
services:
|
||||
debian-shell:
|
||||
image: docker.io/library/debian:trixie-slim
|
||||
hostname: debian-shell
|
||||
environment:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
configs:
|
||||
- source: 'ssh_authorized_keys'
|
||||
target: '/etc/ssh_authorized_keys'
|
||||
- source: 'start_sshd'
|
||||
target: '/start-sshd.sh'
|
||||
command: /bin/sh /start-sshd.sh # <-- this is it: run the script below as the container's PID 1
|
||||
ports:
|
||||
- 22:22:ssh
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
default:
|
||||
name: lan
|
||||
external: true
|
||||
configs: # top-level configs: block — this is where the SCRIPT CONTENT actually lives
|
||||
'ssh_authorized_keys':
|
||||
content: |
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDvqx1GBstPpLkOHFePki+kh/96l0g80218oV5LVdMCH user@host
|
||||
'start_sshd':
|
||||
content: |
|
||||
#!/bin/sh
|
||||
set -e
|
||||
if ! command -v sshd >/dev/null 2>&1; then
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends openssh-server
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
fi
|
||||
mkdir -p /run/sshd /root/.ssh
|
||||
cp /etc/ssh_authorized_keys /root/.ssh/authorized_keys
|
||||
chmod 700 /root/.ssh
|
||||
chmod 600 /root/.ssh/authorized_keys
|
||||
sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config
|
||||
sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config
|
||||
exec /usr/sbin/sshd -D -e
|
||||
|
||||
#The END
|
||||
|
||||
Reference in New Issue
Block a user