Skip to content

Commit

Permalink
Make sure openssh-server and the proper rundir are created before sta…
Browse files Browse the repository at this point in the history
…rting
  • Loading branch information
coandco committed Oct 2, 2024
1 parent 69165ca commit e6af751
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile.client
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN --mount=type=cache,mode=0755,target=/var/lib/apt/lists,sharing=locked \
apt-get install -y ca-certificates && \
echo "deb https://github.com/MisterTea/debian-et/raw/master/debian-source/ bookworm main" > /etc/apt/sources.list.d/et.list && \
apt-get update -qq && \
apt-get install -y et
apt-get install -y et openssh-server

COPY --chmod=755 container-entrypoint /bin/container-entrypoint

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.server
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN --mount=type=cache,mode=0755,target=/var/lib/apt/lists,sharing=locked \
apt-get install -y ca-certificates && \
echo "deb https://github.com/MisterTea/debian-et/raw/master/debian-source/ bookworm main" > /etc/apt/sources.list.d/et.list && \
apt-get update -qq && \
apt-get install -y et
apt-get install -y et openssh-server

COPY --chmod=755 container-entrypoint /bin/container-entrypoint

Expand Down
5 changes: 5 additions & 0 deletions docker/container-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
set -x

if [ "$1" == server ]; then
if [ ! -d /run/sshd ]; then
mkdir /run/sshd
chmod 0755 /run/sshd
fi

/usr/sbin/sshd
shift
exec etserver --logtostdout -v 1 "$@"
Expand Down

0 comments on commit e6af751

Please sign in to comment.