Template for the Jupyter instances for the lectures NLP4Web and FoLT of TU Darmstadt with Docker.
- Docker
- Docker-Compose
- Use this repository as template and fork your own repository
- Configure the Dockerfile (see Configuration for more information):
- Run the docker-compose file with
docker-compose up
- Go to localhost:8080
You have to specify if you want to use NLP4Web or FoLT and Jupyter-Lab or Jupyter-Notebook.
For this, the Dockerfile must be edited.
NLP4Web
If you use this template for NLP4Web, comment
# RUN pip3 install -r requirements_folt.txt && python -m nltk.downloader all
and comment out
RUN pip3 install -r requirements_nlp4web.txt
FoLT
If you use this template for FoLT, comment out
RUN pip3 install -r requirements_folt.txt && python -m nltk.downloader all
and comment
# RUN pip3 install -r requirements_nlp4web.txt
Jupyer-Lab
If you want to use Jupyter-Lab (default and recommend), comment out
CMD ["jupyter-lab", "--notebook-dir=/mnt/notebook", "--allow-root", "--no-browser", "--ip=*", "--port=8080", "--NotebookApp.token=''", "--NotebookApp.password=''"]
and comment
# CMD ["jupyter-notebook", "--notebook-dir=/mnt/notebook", "--allow-root", "--no-browser", "--ip=*", "--port=8080", "--NotebookApp.token=''", "--NotebookApp.password=''"]
Jupyter-Notebook
If you want to use Jupyter-Notebook, comment
# CMD ["jupyter-lab", "--notebook-dir=/mnt/notebook", "--allow-root", "--no-browser", "--ip=*", "--port=8080", "--NotebookApp.token=''", "--NotebookApp.password=''"]
and comment out
CMD ["jupyter-notebook", "--notebook-dir=/mnt/notebook", "--allow-root", "--no-browser", "--ip=*", "--port=8080", "--NotebookApp.token=''", "--NotebookApp.password=''"]
Edit the requirements_*.txt
and add python libaries. Then rebuild the docker compose with docker-compose up --build
.
Alternatively, you can create your own requirements.txt
. Remember to specify your Dockerfile to use this requirements.txt
.
Made by nclskm.
No guarantee of completeness or runnability. Feel free to contribute if you've any improvements.