From 7e4153bd19f19d6529a6c960fdaf3cf3d14e502b Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 21 Dec 2023 09:52:06 +1100 Subject: [PATCH] MAINT: New container with quantecon-book-theme==0.7.1 upgrade --- .github/workflows/build.yml | 13 ++++-- README.md | 3 +- .../Dockerfile | 44 +++++++++++++++++++ .../environment.yml | 26 +++++++++++ 4 files changed, 82 insertions(+), 4 deletions(-) create mode 100644 cuda-12.1.0-anaconda-2023-09-py311-c/Dockerfile create mode 100644 cuda-12.1.0-anaconda-2023-09-py311-c/environment.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1244834..9c74180 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -87,9 +87,16 @@ jobs: # push: true # tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311 - - name: Build & Push (cuda-12.1.0-anaconda-2023-09-py311-b) + # - name: Build & Push (cuda-12.1.0-anaconda-2023-09-py311-b) + # uses: docker/build-push-action@v3.2.0 + # with: + # context: cuda-12.1.0-anaconda-2023-09-py311-b + # push: true + # tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311-b + + - name: Build & Push (cuda-12.1.0-anaconda-2023-09-py311-c) uses: docker/build-push-action@v3.2.0 with: - context: cuda-12.1.0-anaconda-2023-09-py311-b + context: cuda-12.1.0-anaconda-2023-09-py311-c push: true - tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311-b \ No newline at end of file + tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311-c \ No newline at end of file diff --git a/README.md b/README.md index f096a37..9a0cd74 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Docker Container to Support Building Python Lecture Series | name | Description | |------|-------------| -| cuda-12.1.0-anaconda-2023-09-py311-b | CUDA 12.1 + CUDAnn, Anaconda 2023.09, Python 3.11 (quantecon-book-theme==0.7.0) + sphinx-reredirect | +| cuda-12.1.0-anaconda-2023-09-py311-c | CUDA 12.1 + CUDAnn, Anaconda 2023.09, Python 3.11 (quantecon-book-theme==0.7.1 | @@ -14,6 +14,7 @@ Docker Container to Support Building Python Lecture Series | name | Description | |------|-------------| +| cuda-12.1.0-anaconda-2023-09-py311-b | CUDA 12.1 + CUDAnn, Anaconda 2023.09, Python 3.11 (quantecon-book-theme==0.7.0) + sphinx-reredirect | | cuda-12.1.0-anaconda-2023-09-py311 | CUDA 12.1 + CUDAnn, Anaconda 2023.09, Python 3.11 (quantecon-book-theme==0.6.0) | | cuda-12.1.0-anaconda-2023-07-py310-b | CUDA 12.1 + CUDAnn, Anaconda 2023.07, Python 3.10 (quantecon-book-theme==0.6.0) | | cuda-12.1.0-anaconda-2023-07-py310 | CUDA 12.1 + CUDAnn, Anaconda 2023.07, Python 3.10 (quantecon-book-theme==0.5.3) | diff --git a/cuda-12.1.0-anaconda-2023-09-py311-c/Dockerfile b/cuda-12.1.0-anaconda-2023-09-py311-c/Dockerfile new file mode 100644 index 0000000..884fd05 --- /dev/null +++ b/cuda-12.1.0-anaconda-2023-09-py311-c/Dockerfile @@ -0,0 +1,44 @@ +FROM nvidia/cuda:12.1.0-devel-ubuntu20.04 + +ENV DEBIAN_FRONTEND=noninteractive +RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections + +# Install base utilities +RUN apt-get update && \ + apt-get install -y sudo + +# Install tzdata +# ENV TZ=Etc/UTC +# RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone +RUN apt-get install -y tzdata + +# Install developer tools +RUN apt-get install -y build-essential && \ + apt-get install -y wget && \ + apt-get install -y git && \ + apt-get install -y python3-pip + +# Install LaTeX build system +RUN apt-get install -y texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra texlive-xetex latexmk xindy dvipng ghostscript cm-super + +# Clean apt +RUN sudo apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +# Install miniconda +ENV CONDA_DIR /opt/conda +RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ + /bin/bash ~/miniconda.sh -b -p /opt/conda +RUN rm -rf Miniconda3-latest-Linux-x86_64.sh + +# Put conda in path so we can use conda activate +ENV PATH=$CONDA_DIR/bin:$PATH + +# Setup Environment +COPY environment.yml . +RUN conda env create -f environment.yml +RUN echo "source activate quantecon" > ~/.bashrc +ENV PATH /opt/conda/envs/quantecon/bin:$PATH + +# Install JAX +RUN pip install --upgrade "jax[cuda12_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html diff --git a/cuda-12.1.0-anaconda-2023-09-py311-c/environment.yml b/cuda-12.1.0-anaconda-2023-09-py311-c/environment.yml new file mode 100644 index 0000000..f275d6c --- /dev/null +++ b/cuda-12.1.0-anaconda-2023-09-py311-c/environment.yml @@ -0,0 +1,26 @@ +name: quantecon +channels: + - default +dependencies: + - python=3.11 + - anaconda=2023.09 + - pip + - pip: + - jupyter-book==0.15.1 + - quantecon-book-theme==0.7.1 + - sphinx-tojupyter==0.3.0 + - sphinxext-rediraffe==0.2.7 + - sphinx-reredirects==0.1.3 + - sphinx-exercise==0.4.1 + - ghp-import==1.1.0 + - sphinxcontrib-youtube==1.1.0 + - sphinx-togglebutton==0.3.1 + - array-to-latex + - prettytable + - kaleido + - arviz + # Docker Requirements + - pytz + # Docutils Issue (https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/322) + - docutils==0.17.1 +