Skip to content
Open
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
8 changes: 7 additions & 1 deletion brev/entrypoint-jupyter-user.bash
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,20 @@ set -euo pipefail

export HOME="${ACH_TARGET_HOME}"

if [ -n "${ACH_PORT_FORWARDS:-}" ] && ! command -v socat &> /dev/null; then
echo "Error: ACH_PORT_FORWARDS is configured, but socat is not installed." >&2
echo "Install socat in the tutorial image to enable Jupyter service proxies." >&2
exit 1
fi

# Generate Jupyter plugin settings
/accelerated-computing-hub/brev/jupyter-generate-plugin-settings.bash

mkdir -p /accelerated-computing-hub/logs

# Forward ports from other Docker Compose services to localhost so that
# jupyter-server-proxy can reach them (it only proxies to localhost).
if command -v socat &> /dev/null; then
if [ -n "${ACH_PORT_FORWARDS:-}" ]; then
for FORWARD in ${ACH_PORT_FORWARDS:-}; do
LOCAL_PORT="${FORWARD%%:*}"
REMOTE="${FORWARD#*:}"
Expand Down
1 change: 1 addition & 0 deletions tutorials/cuda-cpp/brev/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ RUN apt-get update -y \
gnupg \
gosu \
libglib2.0-0 \
socat \
sudo \
ffmpeg \
&& apt-get clean -y \
Expand Down
1 change: 1 addition & 0 deletions tutorials/cuda-tile/brev/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ RUN apt-get update -y \
lsb-release \
gosu \
libglib2.0-0 \
socat \
sudo \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 1 addition & 1 deletion tutorials/nvmath-python/brev/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN set -ex \
&& rm -f /opt/requirements.txt \
&& `# Install system packages` \
&& apt-get update -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git-lfs gosu sudo \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git-lfs gosu socat sudo \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion tutorials/stdpar/brev/docker-recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
'curl', 'wget', 'zip', 'bc',
'nginx', 'openssh-client',
'libnuma1', 'numactl',
'gosu', 'sudo',
'gosu', 'socat', 'sudo',
])
Stage0 += boost(version=boost_ver) # Required for AdaptiveCpp

Expand Down
Loading