Commit aed9a374 authored by Katharine Jarmul's avatar Katharine Jarmul
Browse files

Merge branch 'master' of resources.oreilly.com:live-training/security-for-machine-learning

parents 13e72b65 44124d7c
Loading
Loading
Loading
Loading
+2 −0
Changes for .gitignore: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -103,3 +103,5 @@ venv.bak/
# mypy
.mypy_cache/
.ipynb*
.ipython/
.local/
+4 −2
Changes for Dockerfile: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
FROM jupyter/minimal-notebook
#FROM jupyter/minimal-notebook:83ed2c63671f
FROM jupyter/tensorflow-notebook:83ed2c63671f

USER root
RUN apt-get update
@@ -8,6 +9,8 @@ RUN apt-get install -y curl wget git
USER jovyan
WORKDIR /home/jovyan/

USER root

# Modules
COPY requirements.txt /home/jovyan/requirements.txt
RUN conda install --yes pip tensorflow==1.8.0
@@ -40,7 +43,6 @@ RUN cd EvadeML-Zoo && mkdir downloads; curl -sL https://github.com/mzweilin/Evad


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

Dockerfile_kjarmul

0 → 100644
+45 −0
Changes for Dockerfile_kjarmul: 45 added lines, 0 removed lines.
Original line number Diff line number Diff line
FROM jupyter/minimal-notebook:83ed2c63671f

# Set the working directory
WORKDIR /home/jovyan

#Set the working directory
WORKDIR /home/jovyan/

# Modules
COPY requirements.txt /home/jovyan/requirements.txt
RUN pip install -r /home/jovyan/requirements.txt
RUN conda install tensorflow==1.8.0
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
RUN mkdir /home/jovyan/.keras
RUN mkdir /home/jovyan/.keras/models
RUN mkdir /home/jovyan/.keras/datasets
RUN apt-get install -y wget
RUN wget https://github.com/fchollet/deep-learning-models/releases/download/v0.2/resnet50_weights_tf_dim_ordering_tf_kernels.h5
RUN wget https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz
RUN mv resnet50_weights_tf_dim_ordering_tf_kernels.h5 /home/jovyan/.keras/models/
RUN mv cifar-10-python.tar.gz /home/jovyan/.keras/models/
RUN cd /home/jovyan/EvadeML-Zoo && git submodule init && git submodule update
RUN cd /home/jovyan/EvadeML-ZOO && mkdir downloads; curl -sL https://github.com/mzweilin/EvadeML-Zoo/releases/download/v0.1/downloads.tar.gz | tar xzv -C downloads


# 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=0.0.0.0 --NotebookApp.token='' --NotebookApp.disable_check_xsrf=True --NotebookApp.iopub_data_rate_limit=1.0e10
+1 −1
Changes for create_jh/Dockerfile: 1 added line, 1 removed line.
Original line number Diff line number Diff line
FROM us.gcr.io/jupyterhub-170614/<series_id>:<single user version>
FROM us.gcr.io/jupyterhub-170614/0636920242048:v1.2

USER root

+0 −78
Changes for requirements.txt: 0 added lines, 78 removed lines.
Original line number Diff line number Diff line
#
# This file is autogenerated by pip-compile
# To update, run:
#
#    pip-compile --output-file requirements.txt requirements.in
#
backcall==0.1.0           # via ipython
bleach==3.0.2             # via nbconvert
certifi==2018.11.29       # via requests
chardet==3.0.4            # via requests
cleverhans==3.0.1
cycler==0.10.0            # via matplotlib
decorator==4.3.0          # via ipython, traitlets
defusedxml==0.5.0         # via nbconvert
entrypoints==0.3          # via nbconvert
foolbox==1.8.0
gitdb2==2.0.5             # via gitpython
gitpython==2.1.11         # via foolbox
h5py==2.9.0
idna==2.8                 # via requests
ipykernel==5.1.0          # via ipywidgets, jupyter, jupyter-console, notebook, qtconsole
ipython-genutils==0.2.0   # via nbformat, notebook, qtconsole, traitlets
ipython==7.2.0            # via ipykernel, ipywidgets, jupyter-console
ipywidgets==7.4.2         # via jupyter
jedi==0.13.2              # via ipython
jinja2==2.10              # via nbconvert, notebook
jsonschema==2.6.0         # via nbformat
jupyter-client==5.2.4     # via ipykernel, jupyter-console, notebook, qtconsole
jupyter-console==6.0.0    # via jupyter
jupyter-core==4.4.0       # via jupyter-client, nbconvert, nbformat, notebook, qtconsole
jupyter==1.0.0
keras-applications==1.0.2  # via keras
keras-preprocessing==1.0.1  # via keras
keras==2.2.0
kiwisolver==1.0.1         # via matplotlib
markupsafe==1.1.0         # via jinja2
matplotlib==3.0.2
mistune==0.8.4            # via nbconvert
mnist==0.2.2              # via cleverhans
nbconvert==5.4.0          # via jupyter, notebook
nbformat==4.4.0           # via ipywidgets, nbconvert, notebook
nose==1.3.7               # via cleverhans
notebook==5.7.4           # via jupyter, widgetsnbextension
numpy==1.15.4             # via cleverhans, foolbox, h5py, keras, keras-applications, keras-preprocessing, matplotlib, mnist, opencv-python, pandas, scikit-learn, scipy, tensorflow-probability
opencv-python==3.4.5.20
pandas==0.23.4
pandocfilters==1.4.2      # via nbconvert
parso==0.3.1              # via jedi
pexpect==4.6.0            # via ipython
pickleshare==0.7.5        # via ipython
pillow==5.4.1
prometheus-client==0.5.0  # via notebook
prompt-toolkit==2.0.7     # via ipython, jupyter-console
ptyprocess==0.6.0         # via pexpect, terminado
pycodestyle==2.5.0        # via cleverhans
pygments==2.3.1           # via ipython, jupyter-console, nbconvert, qtconsole
pyparsing==2.3.0          # via matplotlib
python-dateutil==2.7.5    # via jupyter-client, matplotlib, pandas
pytz==2018.9              # via pandas
pyyaml==3.13              # via keras
pyzmq==17.1.2             # via jupyter-client, notebook
qtconsole==4.4.3          # via jupyter
requests==2.21.0          # via foolbox
scikit-learn==0.20.2      # via sklearn
scipy==1.2.0              # via cleverhans, foolbox, keras, keras-preprocessing, scikit-learn
send2trash==1.5.0         # via notebook
six==1.12.0               # via bleach, cycler, h5py, keras, keras-preprocessing, prompt-toolkit, python-dateutil, tensorflow-probability, traitlets
sklearn==0.0
smmap2==2.0.5             # via gitdb2
tensorflow-probability==0.5.0  # via cleverhans
terminado==0.8.1          # via notebook
testpath==0.4.2           # via nbconvert
tinydb==3.12.2
tornado==5.1.1            # via ipykernel, jupyter-client, notebook, terminado
traitlets==4.3.2          # via ipykernel, ipython, ipywidgets, jupyter-client, jupyter-core, nbconvert, nbformat, notebook, qtconsole
urllib3==1.24.1           # via requests
wcwidth==0.1.7            # via prompt-toolkit
webencodings==0.5.1       # via bleach
widgetsnbextension==3.4.2  # via ipywidgets
Loading