Added manim module

This commit is contained in:
2022-10-09 21:02:49 -07:00
parent e42d845d5a
commit 67b30b37cb
5 changed files with 49 additions and 8 deletions

View File

@ -48,10 +48,7 @@ RUN apt-get update --yes && \
# pandoc: convert notebooks to html
# texlive-*: for nbconvert
pandoc \
texlive \
texlive-xetex \
texlive-fonts-recommended \
texlive-plain-generic \
texlive-full \
# Misc dependencies
# build-essential: for cython
# cm-super, dvipng: for latex labels

View File

@ -45,20 +45,27 @@ echo ""
printf "Building base image...\n"
docker build \
--quiet=$is_quiet \
--build-arg PYTHON_VERSION=3.9 \
-t betalupi/jupyter-inter-0 \
$root_dir/base
printf "Done. \n\n"
build_image false octave
build_image false r
build_image false julia
#build_image false haskell (BROKEN)
#build_image false sage (BROKEN)
build_image false plugins
build_image false pymodules
# Manim will not install under python 3.10.
# 3.9 works (see arguments for base above)
build_image false manim
# Rename final image
docker image tag betalupi/jupyter-inter-(math $img_idx) git.betalupi.com/mark/jupyter
docker image rm betalupi/jupyter-inter-(math $img_idx)

View File

@ -0,0 +1,31 @@
ARG BASE_CONTAINER=betalupi/jupyter-base
FROM $BASE_CONTAINER
LABEL maintainer="Mark <mark@betalupi.com>"
USER root
RUN apt-get update --yes && apt-get install --yes --no-install-recommends \
# Manim dependencies
libcairo2-dev \
libpango1.0-dev \
ffmpeg \
dvisvgm \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/*
USER $NB_UID
# Manim will not install under python 3.10
# as of 2022-10-09
RUN mamba install --yes \
"manim" \
&& \
# Cleanup
mamba clean --all -f -y && \
npm cache clean --force && \
jupyter lab clean && \
rm -rf "/home/${NB_USER}/.cache/yarn" && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

View File

@ -2,7 +2,7 @@ ARG BASE_CONTAINER=betalupi/jupyter-base
FROM $BASE_CONTAINER
LABEL maintainer="Mark <mark@betalupi.com>"
USER ${NB_UID}
USER $NB_UID
RUN mamba install --yes \
# Python packages
@ -41,6 +41,7 @@ RUN mamba install --yes \
"xlrd" \
"tensorflow" \
"pytest" \
"ipython" \
&& \
# Cleanup
mamba clean --all -f -y && \