Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM ipython/notebook

RUN pip install pandas
RUN pip install datetime

RUN mkdir /docker_assignment
WORKDIR /docker_assignment
RUN mkdir ./files ./data

COPY files/*.ipynb ./files/

COPY data/* ./data/

WORKDIR /docker_assignment/files/
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
# Dockers_Assignment_1
# Dockers_Assignment_1
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
#Build docker file, while inside directory
docker build -t salah_docker_asgn1 .
#Check Image Created
sudo docker images
#Run container from image
docker run -p 8888:8888 --rm assignment sh -c "ipython notebook --ip=*"
#URL to open ipython
http://localhost:8888/tree
#Stop container
sudo docker stop <container id>
#Stop Docker
sudo service docker stop

Loading