-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create standalone Julia environment (#24)
* Create standalone Julia environment * Add packages that were accidentally removed * Include DataFrames and DisplaAs * Fix Dockerfile * Add back SyntacticModels * Expand install.jl to include new dependencies * Remove content from precompile * Everything is seperate, but still works together --------- Co-authored-by: Matthew Printz <[email protected]>
- Loading branch information
1 parent
ea9ee7b
commit afabb8d
Showing
9 changed files
with
1,391 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM julia:1.9 | ||
|
||
RUN apt update && \ | ||
apt install -y clang jupyter && \ | ||
apt clean -y | ||
|
||
ENV JULIA_DEPOT_PATH=/usr/local/julia | ||
ENV JULIA_PROJECT=/ | ||
|
||
WORKDIR / | ||
COPY Project.toml Project.toml | ||
COPY Manifest.toml Manifest.toml | ||
RUN julia -e 'using Pkg; Pkg.instantiate()' | ||
COPY install.jl install.jl | ||
COPY precompile.jl precompile.jl | ||
RUN ./install.jl docker | ||
RUN julia -e 'using Pkg; using IJulia; IJulia.installkernel("Julia ASKEM"; julia=`julia --project=/ --threads=4 -J/ASKEM-Sysimage.so`)' | ||
|
||
EXPOSE 8888 | ||
EXPOSE 1234 | ||
|
||
# CMD julia -JASKEM-Sysimage.so --threads=4 -e 'using Pkg; Pkg.activate("/"); using Pluto; Pluto.run(;host="0.0.0.0", port=1234, launch_browser=true)' | ||
CMD jupyter notebook --ip 0.0.0.0 --allow-root --no-browser |
Oops, something went wrong.