Skip to content

Commit b54ee61

Browse files
committed
Use Jupyter Server Proxy for TensorBoard
- jupyter/docker-stacks#2126
1 parent 80f0f3f commit b54ee61

File tree

4 files changed

+28
-12
lines changed

4 files changed

+28
-12
lines changed

.devcontainer/Julia.Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ RUN dpkgArch="$(dpkg --print-architecture)" \
6767
## Install Python related stuff
6868
## Install JupyterLab
6969
&& pip install --no-cache-dir \
70+
jupyter-server-proxy \
7071
jupyterlab=="$JUPYTERLAB_VERSION" \
7172
jupyterlab-git \
7273
jupyterlab-lsp \
@@ -230,11 +231,14 @@ RUN if [ -n "$USE_ZSH_FOR_ROOT" ]; then \
230231
update-locale --reset LANG="$LANG"; \
231232
fi
232233

234+
## Use Jupyter Server Proxy for TensorBoard
235+
ENV TENSORBOARD_PROXY_URL=/proxy/%PORT%/
236+
237+
## Unset environment variable BUILD_DATE
238+
ENV BUILD_DATE=
239+
233240
## Copy files as late as possible to avoid cache busting
234241
COPY --from=files /files /
235242

236243
## Copy shellcheck as late as possible to avoid cache busting
237244
COPY --from=sci --chown=root:root /bin/shellcheck /usr/local/bin
238-
239-
## Unset environment variable BUILD_DATE
240-
ENV BUILD_DATE=

.devcontainer/Mojo.Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ RUN dpkgArch="$(dpkg --print-architecture)" \
7676
## Install Python related stuff
7777
## Install JupyterLab
7878
&& pip install --no-cache-dir \
79+
jupyter-server-proxy \
7980
jupyterlab=="$JUPYTERLAB_VERSION" \
8081
jupyterlab-git \
8182
jupyterlab-lsp \
@@ -223,11 +224,14 @@ RUN if [ -n "$USE_ZSH_FOR_ROOT" ]; then \
223224
update-locale --reset LANG="$LANG"; \
224225
fi
225226

227+
## Use Jupyter Server Proxy for TensorBoard
228+
ENV TENSORBOARD_PROXY_URL=/proxy/%PORT%/
229+
230+
## Unset environment variable BUILD_DATE
231+
ENV BUILD_DATE=
232+
226233
## Copy files as late as possible to avoid cache busting
227234
COPY --from=files /files /
228235

229236
## Copy shellcheck as late as possible to avoid cache busting
230237
COPY --from=sci --chown=root:root /bin/shellcheck /usr/local/bin
231-
232-
## Unset environment variable BUILD_DATE
233-
ENV BUILD_DATE=

.devcontainer/Python.Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ RUN dpkgArch="$(dpkg --print-architecture)" \
6464
## Install Python related stuff
6565
## Install JupyterLab
6666
&& pip install --no-cache-dir \
67+
jupyter-server-proxy \
6768
jupyterlab=="$JUPYTERLAB_VERSION" \
6869
jupyterlab-git \
6970
jupyterlab-lsp \
@@ -211,11 +212,14 @@ RUN if [ -n "$USE_ZSH_FOR_ROOT" ]; then \
211212
update-locale --reset LANG="$LANG"; \
212213
fi
213214

215+
## Use Jupyter Server Proxy for TensorBoard
216+
ENV TENSORBOARD_PROXY_URL=/proxy/%PORT%/
217+
218+
## Unset environment variable BUILD_DATE
219+
ENV BUILD_DATE=
220+
214221
## Copy files as late as possible to avoid cache busting
215222
COPY --from=files /files /
216223

217224
## Copy shellcheck as late as possible to avoid cache busting
218225
COPY --from=sci --chown=root:root /bin/shellcheck /usr/local/bin
219-
220-
## Unset environment variable BUILD_DATE
221-
ENV BUILD_DATE=

.devcontainer/R.Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ RUN dpkgArch="$(dpkg --print-architecture)" \
145145
## Install Python related stuff
146146
## Install JupyterLab
147147
&& pip install --no-cache-dir \
148+
jupyter-server-proxy \
148149
jupyterlab=="$JUPYTERLAB_VERSION" \
149150
jupyterlab-git \
150151
jupyterlab-lsp \
@@ -346,11 +347,14 @@ RUN if [ -n "$USE_ZSH_FOR_ROOT" ]; then \
346347
update-locale --reset LANG="$LANG"; \
347348
fi
348349

350+
## Use Jupyter Server Proxy for TensorBoard
351+
ENV TENSORBOARD_PROXY_URL=/proxy/%PORT%/
352+
353+
## Unset environment variable BUILD_DATE
354+
ENV BUILD_DATE=
355+
349356
## Copy files as late as possible to avoid cache busting
350357
COPY --from=files /files /
351358

352359
## Copy shellcheck as late as possible to avoid cache busting
353360
COPY --from=sci --chown=root:root /bin/shellcheck /usr/local/bin
354-
355-
## Unset environment variable BUILD_DATE
356-
ENV BUILD_DATE=

0 commit comments

Comments
 (0)