Last active
February 1, 2018 21:19
-
-
Save minrk/b1036b9c9aac8337240dd9d08d8485cd to your computer and use it in GitHub Desktop.
testing jupyterhub unicode errors in logging
This file contains hidden or 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
#!/bin/bash | |
service supervisor start | |
exec bash -l |
This file contains hidden or 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
FROM ubuntu:17.10 | |
RUN apt-get update && apt-get -y install supervisor python3-dev python3-pip nodejs npm locales | |
RUN python3 -m pip install jupyterhub notebook | |
RUN npm install -g configurable-http-proxy | |
RUN python3 -m pip install jupyterhub-dummyauthenticator jupyterhub-simplespawner | |
EXPOSE 8000 | |
ADD jupyterhub_config.py /srv/jupyterhub_config.py | |
ADD jupyterhub.conf /etc/supervisor/conf.d | |
ADD start-jupyterhub.sh /srv/start-jupyterhub.sh | |
WORKDIR /srv | |
ADD cmd.sh /cmd.sh | |
CMD /cmd.sh |
This file contains hidden or 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
[program:jupyterhub] | |
command=/srv/start-jupyterhub.sh --config=/srv/jupyterhub_config.py | |
redirect_stderr=true | |
stdout_logfile=/srv/jupyterhub.log | |
autostart=true | |
autorestart=false | |
stopasgroup=true | |
user=root | |
directory=/srv |
This file contains hidden or 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
c.JupyterHub.authenticator_class = 'dummyauthenticator.DummyAuthenticator' | |
c.JupyterHub.spawner_class = 'simplespawner.SimpleLocalProcessSpawner' | |
c.Spawner.cmd = ['jupyterhub-singleuser', '--allow-root'] |
This file contains hidden or 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
#!/bin/bash -l | |
# set default lang env to avoid unicode issues | |
env | sort | |
export PATH=/opt/conda/bin:$PATH | |
exec jupyterhub $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment