Commit f28fbb8f authored by kjam's avatar kjam
Browse files

updating with working dockerfile

parent 69032d26
Loading
Loading
Loading
Loading
+13 −4
Changes for Dockerfile: 13 added lines, 4 removed lines.
Original line number Diff line number Diff line
FROM jupyter/<notebook>:<version hash>
FROM jupyter/tensorflow-notebook

# Set the working directory
WORKDIR /home/jovyan

# launchbot-specific labels
LABEL name.launchbot.io="Cleaning data at scale"
LABEL name.launchbot.io="Data Security for Data Science"
LABEL workdir.launchbot.io="/home/jovyan"
LABEL description.launchbot.io="Cleaning data at scale"
LABEL description.launchbot.io="Data Security for Data Science"
LABEL 8888.port.launchbot.io="Start Tutorial"

#Set the working directory
@@ -12,11 +15,16 @@ WORKDIR /home/jovyan/
# Modules
COPY requirements.txt /home/jovyan/requirements.txt
RUN pip install -r /home/jovyan/requirements.txt
RUN git init
COPY .gitmodules /home/jovyan/.gitmodules
RUN git submodule init
RUN git submodule update

# Add files
COPY notebooks /home/jovyan/notebooks
COPY data /home/jovyan/data
COPY solutions /home/jovyan/solutions
COPY steal_ml /home/jovyan/steal_ml

# Allow user to write to directory
USER root
@@ -28,4 +36,5 @@ USER $NB_USER
EXPOSE 8888

# Start the notebook server
CMD jupyter notebook --no-browser --port 8888 --ip=* --NotebookApp.token='' --NotebookApp.disable_check_xsrf=True --NotebookApp.iopub_data_rate_limit=1.0e10
CMD jupyter notebook --no-browser --port 8888 --ip=* --NotebookApp.token='' --NotebookApp.disable_check_xsrf=True --NotebookApp.iopub_data_rate_limit

Dockerfile_tensorflow

deleted100644 → 0
+0 −39
Changes for Dockerfile_tensorflow: 0 added lines, 39 removed lines.
Original line number Diff line number Diff line
FROM jupyter/tensorflow-notebook

# Set the working directory
WORKDIR /home/jovyan

# launchbot-specific labels
LABEL name.launchbot.io="Data Security for Data Science"
LABEL workdir.launchbot.io="/home/jovyan"
LABEL description.launchbot.io="Data Security for Data Science"
LABEL 8888.port.launchbot.io="Start Tutorial"

#Set the working directory
WORKDIR /home/jovyan/

# Modules
COPY requirements.txt /home/jovyan/requirements.txt
RUN pip install -r /home/jovyan/requirements.txt
COPY .gitmodules /home/jovyan/.gitmodules
RUN git submodule init
RUN git submodule update

# Add files
COPY notebooks /home/jovyan/notebooks
COPY data /home/jovyan/data
COPY solutions /home/jovyan/solutions
COPY steal_ml /home/jovyan/steal_ml

# Allow user to write to directory
USER root
RUN chown -R $NB_USER /home/jovyan \
    && chmod -R 774 /home/jovyan
USER $NB_USER

# Expose the notebook port
EXPOSE 8888

# Start the notebook server
CMD jupyter notebook --no-browser --port 8888 --ip=* --NotebookApp.token='' --NotebookApp.disable_check_xsrf=True --NotebookApp.iopub_data_rate_limit
+31 −21

File changed.

Preview size limit exceeded, changes collapsed.