My data science Docker image.
Base Docker image: python
Check settings.yml
first!
To build the image:
$ ./build
To start the image and set up the servers:
$ ./start
- Every time tha you run this command, will create a new container!! Run it once (always as possible).
Wait for get the JupterLab URL access.
To get the JupterLab URL access:
$ ./list_jupyter
To stop the container:
$ ./stop
To load a container already stared before:
$ ./load
To remove a container already stared before:
$ ./rm_container
To enter into container:
$ ./bash
or
$ ./zsh
in Linux...
$ docker-compose -f docker-compose.yml up
$ docker-compose -f docker-compose.yml up
in Windows with docker-compose.windows.yml
and check mount point in settings.yml
beafore use.
C:\Users\UserLogin> mkdir work
C:\Users\UserLogin> cd work
- Download docker-compose.windows.yml to C:\Users\UserLogin\work -
C:\Users\UserLogin\work> docker-compose -f docker-compose.windows.yml up
Alter pulled the image, it will return the link for JupyterLab with a token, like this:
workstation_1 | or http://127.0.0.1:8888/lab?token=2ee0f77e160ce90db827324b66a516c3b26e04e5c7a5e511
$ ./scripts/bash.sh
$ python3 -m launchpad.main --port 8000 ./folder_with_pys
- Or check script
servers.sh
and uncomment the respective line.
$ for a in `ls scripts/*.sh`;
do
ln -s $a `echo $a |cut -d '/' -f 2 |cut -d '.' -f 1`
done
ψυχήδηλειν