Pkg: not sure whats going on

roh_codeur
Sat, 11 Nov 2023 10:45:42 +0000
General Usage

Hi

I have a dockerfile with the below lines:

WORKDIR /data/code/Olorin/
ENV JULIA_PROJECT="/data/code/Olorin/"
RUN cd /data/code/Olorin/ && \
    julia --project="/data/code/Olorin" -e 'using Pkg; Pkg.instantiate()' > /tmp/pkg_instantiate.log 2>&1
RUN ["julia", "-e", "using Pkg; Pkg.instantiate()"]

it doesn’t install packages. the log file has the below lines. If I logon to the server manually and check, I can see that it has activated the project, but not downloaded/installed any packages

  Installing known registries into `~/.julia`
  No Changes to `/data/code/Olorin/Project.toml`
  No Changes to `/data/code/Olorin/Manifest.toml`

if, I however, run the below command manually or as part of shell file:

cd /data/code/Olorin/
julia -e 'using Pkg; Pkg.instantiate()'

I can see it installs all packages. I am very confused! can someone help with this

Ta!

8 posts - 4 participants