File tree 2 files changed +33
-0
lines changed
2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM ipython/scipyserver
2
+
3
+ RUN mkdir /pandas-cookbook
4
+ WORKDIR /pandas-cookbook
5
+ RUN mkdir ./cookbook ./data ./cookbook/images
6
+
7
+ COPY cookbook/*.ipynb ./cookbook/
8
+ COPY cookbook/images/*.png ./cookbook/images/
9
+ COPY data/* ./data/
10
+
11
+ WORKDIR /pandas-cookbook/cookbook/
Original file line number Diff line number Diff line change @@ -75,6 +75,28 @@ A tab should open up in your browser at `http://localhost:8888`
75
75
76
76
Happy pandas!
77
77
78
+ Running the cookbook inside Docker container.
79
+ ===============================================================
80
+ This repository contains Dockerfile and can be build into a docker container.
81
+ To build the container run following command from inside of the repository directory:
82
+ ```
83
+ docker build -t jvns/pandas-cookbook .
84
+ ```
85
+ run the container:
86
+ ```
87
+ docker run -d -p 8888:8888 -e "PASSWORD=MakeAPassword" <IMAGE ID>
88
+ ```
89
+ you can find out about the id of the image, by checking
90
+ ```
91
+ docker images
92
+ ```
93
+
94
+ After starting the container, you can access ipython notebook with the cookbook
95
+ on port 8888. Remember to use https and authenticate with ` MakeAPassword ` .
96
+ ```
97
+ https://<docker ip>:8888
98
+ ```
99
+
78
100
Contribute!
79
101
===========
80
102
You can’t perform that action at this time.
0 commit comments