Skip to content

Commit

Permalink
MAINT: New container with quantecon-book-theme==0.7.1 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcky committed Dec 20, 2023
1 parent 9725d9d commit 7e4153b
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
# 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/[email protected]
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
tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311-c
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ 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 |



## Older Containers

| 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) |
Expand Down
44 changes: 44 additions & 0 deletions cuda-12.1.0-anaconda-2023-09-py311-c/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions cuda-12.1.0-anaconda-2023-09-py311-c/environment.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7e4153b

Please sign in to comment.