From b003bffa4c6ec84ed6ef166b8400edc53becd70b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20B=C3=B6hm?= Date: Thu, 23 Dec 2021 22:23:40 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20=20renamed=20to=20init=5Fpackages?= =?UTF-8?q?=20instead=20of=20init=5Fpy=20\n=20changed=20Readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- README.md | 3 ++- src/init/{init_py.jl => init_packages.jl} | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) rename src/init/{init_py.jl => init_packages.jl} (81%) diff --git a/Dockerfile b/Dockerfile index 8e22fe0..e46f30d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,8 +20,8 @@ RUN conda env create environment.yml # End -> Install Your Python Deppendencies Part # Start -> Install Julia [deps] -RUN julia src/init/init_py.jl -RUN rm src/init/init_py.jl +RUN julia src/init/init_packages.jl +RUN rm src/init/init_packages.jl # End -> Install Julia [deps] EXPOSE 3001 ENTRYPOINT [ "julia" ] diff --git a/README.md b/README.md index 78ab770..c99eada 100644 --- a/README.md +++ b/README.md @@ -46,4 +46,5 @@ 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. Run by cmd "julia src/main.jl" \ No newline at end of file +2. Install all Julia packages in src/init/init_packages.jl by adding "Pkg.add("PackageName") +3. Run by cmd "julia src/main.jl" \ No newline at end of file diff --git a/src/init/init_py.jl b/src/init/init_packages.jl similarity index 81% rename from src/init/init_py.jl rename to src/init/init_packages.jl index f7457c0..f1a2fc5 100644 --- a/src/init/init_py.jl +++ b/src/init/init_packages.jl @@ -1,5 +1,6 @@ using Pkg ENV["PYTHON"] = "/root/miniconda3/envs/condy/bin/python3" +#Pkg.add("anotherPackageHere") Pkg.add("PyCall") Pkg.build("PyCall") Pkg.instantiate()