1
0

Add Docker CLI tools to jump box
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
ci/woodpecker/deployment/woodpecker Pipeline was successful

This commit is contained in:
2026-10-06 20:14:44 +00:00
parent ebc2165b22
commit cea818847a
2 changed files with 8 additions and 1 deletions

View File

@@ -9,6 +9,11 @@ keys=( /etc/ssh/keys/ssh_host_*_key )
mkdir -p "$(dirname "/etc/ssh/sshd_config.d/10-hostkeys.conf")"
printf 'HostKey %s\n' "${keys[@]}" > "/etc/ssh/sshd_config.d/10-hostkeys.conf"
# Setup the DinD socket:
if [ -z DOCKER_RUN_DIR ]; then
ln -s /run/dind/docker.sock /var/run/docker.sock || echo "Failed to symlink Docker socket!"
fi
# Setup the target user and their group
echo "Setting up target user ${TARGET_USER} (uid=${TARGET_UID}, gid=${TARGET_GID})..."
groupadd --gid "$TARGET_GID" "$TARGET_USER"