Skip to content

Commit 88313fa

Browse files
committed
Merge pull request #33 from mkuzak/dockerise
Dockerise
2 parents 910fda4 + 064dce3 commit 88313fa

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

Dockerfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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/

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,28 @@ A tab should open up in your browser at `http://localhost:8888`
7575

7676
Happy pandas!
7777

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+
78100
Contribute!
79101
===========
80102

0 commit comments

Comments
 (0)