Skip to content

Commit

Permalink
fixing deps, but activating project in the wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
gottacatchenall committed Oct 11, 2023
1 parent 9a59db4 commit e38e4a7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 6 additions & 1 deletion runners/julia-dockerfile
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions scripts/helloWorld/helloJulia.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using JSON
using EvoTrees

println("Hello World")
outputFolder = ARGS[1]
Expand Down

0 comments on commit e38e4a7

Please sign in to comment.