Skip to content

Instantly share code, notes, and snippets.

@minrk
Last active February 1, 2018 21:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minrk/b1036b9c9aac8337240dd9d08d8485cd to your computer and use it in GitHub Desktop.
Save minrk/b1036b9c9aac8337240dd9d08d8485cd to your computer and use it in GitHub Desktop.
testing jupyterhub unicode errors in logging
#!/bin/bash
service supervisor start
exec bash -l
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
[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
c.JupyterHub.authenticator_class = 'dummyauthenticator.DummyAuthenticator'
c.JupyterHub.spawner_class = 'simplespawner.SimpleLocalProcessSpawner'
c.Spawner.cmd = ['jupyterhub-singleuser', '--allow-root']
#!/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