-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add devhub * debug hub
- Loading branch information
Showing
13 changed files
with
70 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG} | |
|
||
LABEL maintainer="[email protected]" | ||
|
||
# base,kernels,extensions | ||
# base,kernels,extensions,hub | ||
ARG ARG_PROFILE_JUPYTER=base | ||
|
||
# base | ||
|
@@ -16,7 +16,7 @@ ARG ARG_KEEP_NODEJS=true | |
|
||
COPY work /opt/utils/ | ||
|
||
# Setup Jupyter: Basic Configurations and Extensions... | ||
# Setup Jupyter: Basic Configurations and Extensions | ||
RUN mkdir -pv /opt/conda/etc/jupyter/ \ | ||
&& mv /opt/utils/etc_jupyter/* /opt/conda/etc/jupyter/ && rm -rf /opt/utils/etc_jupyter \ | ||
&& mv /opt/utils/start-*.sh /usr/local/bin/ && chmod +x /usr/local/bin/start-*.sh \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Distributed under the terms of the Modified BSD License. | ||
|
||
ARG BASE_NAMESPACE | ||
ARG BASE_IMG="node" | ||
FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG} | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
# base,kernels,extensions,hub | ||
ARG ARG_PROFILE_JUPYTER=hub | ||
|
||
ARG ARG_KEEP_NODEJS=true | ||
|
||
COPY work /opt/utils/ | ||
|
||
# Setup JupyterHub | ||
RUN source /opt/utils/script-devbox-jupyter.sh \ | ||
&& for profile in $(echo $ARG_PROFILE_JUPYTER | tr "," "\n") ; do ( setup_jupyter_${profile} || true ) ; done | ||
|
||
# If not keeping NodeJS, remove NoedJS to reduce image size, and install Traefik instead | ||
RUN ${ARG_KEEP_NODEJS:-true} || ( \ | ||
echo "Removing Node/NPM..." && rm -rf /usr/bin/node /usr/bin/npm /usr/bin/npx /opt/node \ | ||
&& echo "Installing Traefik to server as proxy:" && source /opt/utils/script-setup.sh && setup_traefik \ | ||
) | ||
|
||
# Clean up and display components version information... | ||
RUN source /opt/utils/script-utils.sh && install__clean && list_installed_packages | ||
|
||
EXPOSE 8888 | ||
|
||
ENTRYPOINT ["tini", "-g", "--"] | ||
CMD ["jupyterhub"] | ||
|
||
# '-c' option make bash commands are read from string. | ||
# If there are arguments after the string, they are assigned to the positional parameters, starting with $0. | ||
# '-o pipefail' prevents errors in a pipeline from being masked. | ||
# If any command in a pipeline fails, that return code will be used as the return code of the whole pipeline. | ||
# '--login': make bash first reads and executes commands from the file /etc/profile, if that file exists. | ||
# After that, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. | ||
SHELL ["/bin/bash", "--login", "-o", "pipefail", "-c"] | ||
WORKDIR "/opt/jupyterhub" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters