From e38e4a7fcadb10f8623540b48fce756e3ea23ac8 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 11 Oct 2023 10:02:36 -0400 Subject: [PATCH] fixing deps, but activating project in the wrong place --- compose.yml | 6 +++--- runners/julia-dockerfile | 7 ++++++- scripts/helloWorld/helloJulia.jl | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/compose.yml b/compose.yml index 678494f0..525750f4 100755 --- a/compose.yml +++ b/compose.yml @@ -54,9 +54,9 @@ services: runner-julia: container_name: biab-runner-julia image: geobon/bon-in-a-box:runner-julia - # build: - # context: ./runners - # dockerfile: julia-dockerfile + build: + context: ./runners + dockerfile: julia-dockerfile command: sh # Avoids launching julia session that will not be used. tty: true # Needed to keep the container alive, waiting for requests. volumes: diff --git a/runners/julia-dockerfile b/runners/julia-dockerfile index f07769e4..cf95372c 100644 --- a/runners/julia-dockerfile +++ b/runners/julia-dockerfile @@ -1,6 +1,11 @@ FROM julia:1.9.3 # Pre-compiling Julia dependencies -RUN julia -e 'pwd(); using Pkg; Pkg.add.(["SpeciesDistributionToolkit", "Dates", "Clustering", "JSON", "CSV", "DataFrames", "StatsBase", "EvoTrees", "MultivariateStats" ]); Pkg.instantiate();' +# RUN julia -e 'pwd(); using Pkg; Pkg.add.(["SpeciesDistributionToolkit", "Dates", "Clustering", "JSON", "CSV", "DataFrames", "StatsBase", "EvoTrees", "MultivariateStats" ]); Pkg.instantiate();' + + RUN date +"%Y-%m-%d %R" > /version.txt +COPY Project.toml /root/Project.toml +COPY instantiate.jl /root/instantiate.jl +RUN julia --project=. /root/instantiate.jl \ No newline at end of file diff --git a/scripts/helloWorld/helloJulia.jl b/scripts/helloWorld/helloJulia.jl index 158cb83d..d0039968 100644 --- a/scripts/helloWorld/helloJulia.jl +++ b/scripts/helloWorld/helloJulia.jl @@ -1,4 +1,5 @@ using JSON +using EvoTrees println("Hello World") outputFolder = ARGS[1]