Skip to content

Commit

Permalink
precompile -> resolve pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mhamdi committed Dec 8, 2024
1 parent 4fedf5b commit d0edd67
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Codes/Julia/Part-3/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ DIRS=$(ls -la | grep '^d' | awk '{print $9}' | grep -v '^\.')
for dir in $DIRS; do
cd ${WORKING_DIR}$dir
rm Manifest.toml
sed '/^ImageShow/d' Project.toml > tmp && cat tmp > Project.toml && rm tmp
sed '/^Image/d' Project.toml > tmp && cat tmp > Project.toml && rm tmp
# sed -i '/^Image/d' Project.toml
# awk '!/^Image/' Project.toml > ${WORKING_DIR}/temp && mv ${WORKING_DIR}/temp ${WORKING_DIR}/Project.toml
julia -e 'import Pkg; Pkg.activate("."); Pkg.instantiate(); Pkg.resolve(); Pkg.precompile()'
julia -e 'import Pkg; Pkg.activate("."); Pkg.instantiate(); Pkg.precompile(); Pkg.resolve();'
done
4 changes: 2 additions & 2 deletions Docker/Dockerfile-1
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ COPY ./Codes/Julia/Datasets ./datasets/
COPY ./Codes/Julia/Part-1/Project.toml .

#= Activate environment and add IJulia kernel, Pluto and JupyterLab IDE =#
RUN julia -e 'import Pkg; Pkg.activate("."); Pkg.instantiate(); ; Pkg.resolve(); Pkg.precompile()'
RUN julia -e 'import Pkg; Pkg.add(["Conda", "IJulia", "Pluto"]); Pkg.precompile()'
RUN julia -e 'import Pkg; Pkg.activate("."); Pkg.instantiate(); Pkg.precompile(); Pkg.resolve();'
RUN julia -e 'import Pkg; Pkg.add(["Conda", "IJulia", "Pluto"]); Pkg.precompile(); Pkg.resolve();'
RUN julia -e 'import Conda; Conda.add("JupyterLab")'

#= Expose ports =#
Expand Down
4 changes: 2 additions & 2 deletions Docker/Dockerfile-2
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ COPY ./Codes/Julia/Datasets ./datasets/
COPY ./Codes/Julia/Part-2/Project.toml .

#= Activate environment and add IJulia kernel, Pluto and JupyterLab IDE =#
RUN julia -e 'import Pkg; Pkg.activate("."); Pkg.instantiate(); Pkg.resolve(); Pkg.precompile()'
RUN julia -e 'import Pkg; Pkg.add(["Conda", "IJulia", "Pluto"]); Pkg.precompile()'
RUN julia -e 'import Pkg; Pkg.activate("."); Pkg.instantiate(); Pkg.precompile(); Pkg.resolve();'
RUN julia -e 'import Pkg; Pkg.add(["Conda", "IJulia", "Pluto"]); Pkg.precompile(); Pkg.resolve();'
RUN julia -e 'import Conda; Conda.add("JupyterLab")'

#= Expose ports =#
Expand Down
4 changes: 2 additions & 2 deletions Docker/Dockerfile-3
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ ENV JULIA_DEPOT_PATH=/root/.julia
WORKDIR /workspace

#= Copy TOML files (deps, ver, pkg, UUID) =#
COPY ./Codes/Julia/Part-3/. .
COPY ./Codes/Julia/Part-3/. ./
RUN sh -x script.sh

#= Expose ports =#
EXPOSE 1234 2468

RUN julia -e 'import Pkg; Pkg.add(["Conda", "IJulia", "Pluto"]); Pkg.resolve(); Pkg.precompile()'
RUN julia -e 'import Pkg; Pkg.add(["Conda", "IJulia", "Pluto"]); Pkg.precompile(); Pkg.resolve();'
RUN julia -e 'import Conda; Conda.add("JupyterLab")'

#= Default command =#
Expand Down

0 comments on commit d0edd67

Please sign in to comment.