Skip to content

Commit

Permalink
Add gosu tool to the image for convenience
Browse files Browse the repository at this point in the history
  • Loading branch information
dimikot committed Mar 3, 2024
1 parent eeaebcf commit 00383ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docker/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
build:
context: host
dockerfile: Dockerfile
stop_grace_period: 1m
healthcheck:
test: ["CMD", "bash", "-c", "netstat -ltn | grep -c :22"]
interval: 1s
Expand All @@ -17,6 +18,7 @@ services:
build:
context: self-hosted-runner
dockerfile: Dockerfile
stop_grace_period: 1m
depends_on:
host:
condition: service_healthy
Expand Down
2 changes: 1 addition & 1 deletion docker/host/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN true \
&& apt-get update -y \
&& apt-get install -y --no-install-recommends \
openssh-server \
jq gh rsync python3 rinetd mc git curl wget pv psmisc unzip vim nano telnet net-tools apt-transport-https ca-certificates locales \
jq gh rsync python3 rinetd gosu mc git curl wget pv psmisc unzip vim nano telnet net-tools apt-transport-https ca-certificates locales \
&& sed -i -e "s|#PermitRootLogin.*|PermitRootLogin no|" /etc/ssh/sshd_config \
&& useradd -m user \
&& mkdir -p ~user/.ssh ~user/ci-storage \
Expand Down
2 changes: 1 addition & 1 deletion docker/self-hosted-runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN true \
&& apt-get update -y \
&& apt-get install -y --no-install-recommends \
openssh-client \
jq gh rsync python3 rinetd mc git curl wget pv psmisc unzip vim nano telnet net-tools apt-transport-https ca-certificates locales \
jq gh rsync python3 rinetd gosu mc git curl wget pv psmisc unzip vim nano telnet net-tools apt-transport-https ca-certificates locales \
&& useradd -m user

USER user
Expand Down

0 comments on commit 00383ef

Please sign in to comment.