Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt -y install curl git rsy
apt-get clean &&\
rm -rf /var/lib/apt/lists/*

# entrypoint.sh starts an ssh-agent on this fixed, container-local socket; let
# `docker exec ... bash` sessions attach to the same agent without writing to the
# bind-mounted home. No-op when the socket is absent.
RUN printf '\n[ -S /tmp/wheel-ssh-agent.sock ] && export SSH_AUTH_SOCK=/tmp/wheel-ssh-agent.sock\n' >> /etc/bash.bashrc

FROM base AS run_base
WORKDIR /usr/src/
COPY package.json package.json
Expand Down
16 changes: 11 additions & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@ if [ "xYES" == "x${WHEEL_ANONYMOUS_LOGIN}" ]; then
export WHEEL_ENABLE_AUTH=YES
fi

SSH_ENV_FILE=/root/ssh_env
ssh-agent -s > ${SSH_ENV_FILE}
source ${SSH_ENV_FILE}
echo "source ${SSH_ENV_FILE}" >> /root/.bashrc
# start an ssh-agent for the WHEEL server. WHEEL spawns many `ssh` subprocesses
# (ssh-client-wrapper) that inherit SSH_AUTH_SOCK from this process, so with
# AddKeysToAgent in the user's ssh config the key passphrase is entered once (via
# the browser prompt) and reused, and agent forwarding works for ProxyJump chains.
# The socket lives on a container-local path (/tmp is not bind-mounted) so nothing
# is written into a bind-mounted home - a shared /etc/bash.bashrc line (see
# Dockerfile) lets `docker exec ... bash` pick up the same agent.
export SSH_AUTH_SOCK=/tmp/wheel-ssh-agent.sock
rm -f "${SSH_AUTH_SOCK}"
ssh-agent -a "${SSH_AUTH_SOCK}" > /dev/null

npm start
exec npm start
2 changes: 1 addition & 1 deletion server/app/db/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version": "2026-0910-132440-beta" }
{"version": "2026-0910-204642-beta" }
Loading