Use this template to:
- create a new Julia project
- with Docker
- and Docker-Compose
- and your custom Python environment.
All you have to do is to install Docker and Docker-Compose:
To start the project, you have to run the following command in your favorite terminal: docker-compose up -d
- Docker pulls and creates a Container by using "Julia:latest" from Docker Hub.
- based on which python-packages you put in your enviroment.yml a python enviroment gets created
To end the project, you have to run the following command in your favorite terminal: docker-compose down --remove-orphans
You don't have to remove the containers, because they will be removed automatically. Also the --remove-orphans option is useful if you want to remove all the containers, that exist after your build the same project multiple times. By having --remove-orphans you save your ram.
Download the package Unpack the zip Change the folder name to your project name. enviroments.yml: -> put your python packages in here docker-compose.yml: -> Change the port -> "julia-docker" to a different docker image name if you want -> change ports in the "ports" section -> add whatever you need, like environment variables, volumes, etc.
- Install all requirements (Your Python version [Default 3.7] and packages)-> cmd in the same folder where the enviroment.yml is and "conda activate condaDockerEnvironment"
- Install all Julia packages in src/init/init_packages.jl by adding "Pkg.add("PackageName")
- Run by cmd "julia src/main.jl"