<commit_before>FROM jupyter/jupyterhub

MAINTAINER <NAME> <<EMAIL>>

# Install oauthenticator and dockerspawner from git
RUN pip3 install git+git://github.com/jupyter/oauthenticator.git
RUN pip3 install git+git://github.com/jupyter/dockerspawner.git

# Create oauthenticator directory and put necessary files in it
RUN mkdir /srv/oauthenticator
WORKDIR /srv/oauthenticator
ENV OAUTHENTICATOR_DIR /srv/oauthenticator
RUN chmod 700 /srv/oauthenticator
ADD nesteddockerspawner.py /srv/jupyterhub/nesteddockerspawner.py

# ssl cert/key mounted from outside container
VOLUME /srv/oauthenticator/ssl<commit_msg>Make our own basic jupyterhub image.<commit_after>FROM unidata/ubuntu-dev

MAINTAINER <NAME> <<EMAIL>>
RUN apt-get install -y -q python3 python3-pip sqlite3 pandoc nodejs nodejs-legacy npm && apt-get clean

# install js dependencies
RUN npm install -g configurable-http-proxy

RUN pip3 install --upgrade setuptools pip

# Install oauthenticator and dockerspawner from git
RUN pip3 install git+git://github.com/jupyter/notebook.git
RUN pip3 install git+git://github.com/jupyter/jupyterhub.git
RUN pip3 install git+git://github.com/jupyter/oauthenticator.git
RUN pip3 install git+git://github.com/jupyter/dockerspawner.git

# Jupyterhub configs
ADD jupyterhub_config.py nesteddockerspawner.py /srv/jupyterhub/

# Create oauthenticator directory and put necessary files in it
ENV OAUTHENTICATOR_DIR /srv/oauthenticator
RUN mkdir -p /srv/oauthenticator && chmod 700 /srv/oauthenticator

# ssl cert/key mounted from outside container
VOLUME /srv/oauthenticator/ssl

WORKDIR /srv/jupyterhub
EXPOSE 8000
ENTRYPOINT ["jupyterhub", "-f", "/srv/jupyterhub/jupyterhub_config.py"]
{'fraction_non_alphanumeric': 0.08547519426180514, 'fraction_numerical': 0.011954572624028692, 'mean_word_length': 5.340909090909091, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7110707', 'n_tokens_mistral': 621, 'n_tokens_neox': 588, 'n_words': 151}