Last active
December 18, 2023 11:57
-
-
Save SimonDanisch/e2314f44090d771096ebb2b1a54df575 to your computer and use it in GitHub Desktop.
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
docker build . -t glmakie:latest |
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
ARG IMAGE=nvidia/cuda:12.1.1-devel-ubuntu22.04 | |
FROM $IMAGE | |
ARG JULIA_RELEASE=1.9 | |
ARG JULIA_VERSION=1.9.4 | |
# julia | |
RUN apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive \ | |
apt-get install --yes --no-install-recommends \ | |
# basic stuff | |
xorg-dev mesa-utils xvfb libgl1 freeglut3-dev \ | |
curl ca-certificates nano && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* | |
RUN curl -s -L https://julialang-s3.julialang.org/bin/linux/x64/${JULIA_RELEASE}/julia-${JULIA_VERSION}-linux-x86_64.tar.gz | \ | |
tar -C /usr/local -x -z --strip-components=1 -f - | |
# system-wide packages | |
COPY Project.toml /usr/local/share/julia/environments/v${JULIA_RELEASE}/ | |
ENV JULIA_DEPOT_PATH=/usr/local/share/julia | |
ENV DISPLAY=:0 | |
RUN xvfb-run -s '-screen 0 1024x768x24' julia -e 'using Pkg; Pkg.instantiate(); Pkg.precompile()' | |
CMD xvfb-run -s '-screen 0 1024x768x24' julia |
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
[deps] | |
GLMakie = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a" |
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
docker run -it -t glmakie:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment