-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_jupyter
64 lines (39 loc) · 1.5 KB
/
Dockerfile_jupyter
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Docker file for creating a container for RV tutorial 2020
# This docker file only handles Analysis Environment Demonstration
# Date of creation - 18.09.2020
# Maintainer - omjaved
# OS package, without tag means we will always take the latest os image
FROM python:2.7
EXPOSE 9005
# Install dependencies
RUN apt-get update && apt-get install -y \
curl python-pip
# Installing and setting up virtual environment
RUN pip install virtualenv jupyter matplotlib flask requests
RUN virtualenv venv --python=python2.7
RUN git clone https://github.com/martahan/OfflineAnalysisNotebooks.git
# Current working directory to store repositories
WORKDIR OfflineAnalysisNotebooks
# Source virtual directory
CMD source venv/bin/activate
# Clone necessary repositories
RUN git clone https://github.com/pyvypr/VyPRServer.git
# Cloning specific commit
WORKDIR VyPRServer/
RUN git checkout 6a12c9c3710cab2ff4832dd9d85d723f8b1e25a4
RUN pip install -r requirements.txt
WORKDIR ../
RUN git clone https://github.com/pyvypr/VyPRAnalysis.git
WORKDIR VyPRAnalysis
RUN git checkout 887fa1afdb946524921b6d674eb5f1151a705db6
WORKDIR ../
RUN git clone https://github.com/pyvypr/VyPR.git
WORKDIR VyPR
RUN git checkout 4f6461adfe14ca5ffcebcf5237122c781ed067e1
WORKDIR ../
WORKDIR VyPRServer
RUN git clone https://github.com/pyvypr/VyPR.git
RUN curl -L http://cern.ch/vypr/data/verdicts-hash-checking-analysis.db -O
WORKDIR ../
RUN mv verdicts.db VyPRServer/verdicts.db
CMD ["jupyter", "notebook","--port=9005", "--ip=0.0.0.0", "--allow-root"]