Skip to content
This repo contains my public notebooks together with the Docker files to get the Anaconda environment up and running.
Jupyter Notebook Other
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
custom Update to lab, add NLTK Feb 22, 2018
data Hadoop experiment. First phase. MapReduce Sep 5, 2017
notebooks Updated Dockerfile and docker-compose Jan 21, 2020
.gitignore Update to pyspark image. Style update Dec 29, 2017
Dockerfile
Dockerfile.save Updated Dockerfile Oct 23, 2018
README.md Update of README to get started with this repo. Aug 31, 2017
docker-compose.yml Added devtools for Postgres Feb 7, 2020
requirements.txt Updated requirements Feb 21, 2020

README.md

Steps to get up and running

Install Docker and add user

jitsejan@ssdnodes-jj-kvm:~$ sudo apt install docker.io docker-compose -y
jitsejan@ssdnodes-jj-kvm:~$ sudo usermod -aG docker $USER

Create the folder structure

jitsejan@ssdnodes-jj-kvm:~/anaconda3_docker$ tree
.
├── data
├── docker-compose.yml
├── Dockerfile
├── notebooks
├── README.md
└── requirements.txt

The data folder will contain input and output data for the notebooks. The notebooks folder will contain the Jupyter notebooks. The Dockerfile will create the folders in the container and install the Python requirements from the requirements.txt.

Content of Dockerfile:

FROM continuumio/anaconda3
ADD requirements.txt /
RUN pip install -r requirements.txt
CMD ["/opt/conda/bin/jupyter", "notebook", "--notebook-dir=/opt/notebooks", "--ip='*'", "--no-browser", "--allow-root"]

Content of docker-compose.yml:

version: '2'
services:
  anaconda:
    build: .
    volumes:
      - ./notebooks:/opt/notebooks
    ports:
      - "8888:8888"

Start the container

jitsejan@ssdnodes-jj-kvm:~/anaconda3_docker$ docker-compose up --build

Action

Go to your IP-address on the given port and start coding.

You can’t perform that action at this time.