Skip to content

MalteBoehm/julia_docker-compose_template

Repository files navigation

Purpose of this Template

Use this template to:

  • create a new Julia project
  • with Docker
  • and Docker-Compose
  • and your custom Python environment.

Requirements

All you have to do is to install Docker and Docker-Compose:

How to start?

To start the project, you have to run the following command in your favorite terminal: docker-compose up -d

What happens when you start?

  1. Docker pulls and creates a Container by using "Julia:latest" from Docker Hub.
  2. based on which python-packages you put in your enviroment.yml a python enviroment gets created

How to stop the docker?

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.

What you need to change before you start?

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.

How to use it without Docker?

  1. 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"
  2. Install all Julia packages in src/init/init_packages.jl by adding "Pkg.add("PackageName")
  3. Run by cmd "julia src/main.jl"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published