├── cuda-12.6.0-anaconda-2024-10-py312-b ├── environment.yml └── Dockerfile ├── cuda-12.8.0-anaconda-2024-10-py312 ├── environment.yml └── Dockerfile ├── cuda-12.8.1-anaconda-2024-10-py312 ├── environment.yml └── Dockerfile ├── README.md ├── cuda-12.6.0-anaconda-2024-06-py311 ├── environment.yml └── Dockerfile ├── cuda-12.6.0-anaconda-2024-06-py312 ├── environment.yml └── Dockerfile ├── cuda-12.6.0-anaconda-2024-10-py312 ├── environment.yml └── Dockerfile └── .github └── workflows ├── build.yml └── _archive └── build.yml /cuda-12.6.0-anaconda-2024-10-py312-b/environment.yml: -------------------------------------------------------------------------------- 1 | name: quantecon 2 | channels: 3 | - default 4 | dependencies: 5 | - python=3.12 6 | - anaconda=2024.10 7 | - pip 8 | - pip: 9 | - jupyter-book==1.0.3 10 | - quantecon-book-theme==0.7.6 11 | - sphinx-tojupyter==0.3.0 12 | - sphinxext-rediraffe==0.2.7 13 | - sphinx-reredirects==0.1.4 14 | - sphinx-exercise==1.0.1 15 | - sphinx-proof==0.2.0 16 | - ghp-import==1.1.0 17 | - sphinxcontrib-youtube==1.3.0 #Version 1.3.0 is required as quantecon-book-theme is only compatible with sphinx<=5 18 | - sphinx-togglebutton==0.3.2 19 | - kaleido # generating static images support 20 | # Docker Requirements 21 | - pytz 22 | 23 | -------------------------------------------------------------------------------- /cuda-12.8.0-anaconda-2024-10-py312/environment.yml: -------------------------------------------------------------------------------- 1 | name: quantecon 2 | channels: 3 | - default 4 | dependencies: 5 | - python=3.12 6 | - anaconda=2024.10 7 | - pip 8 | - pip: 9 | - jupyter-book==1.0.3 10 | - quantecon-book-theme==0.7.6 11 | - sphinx-tojupyter==0.3.0 12 | - sphinxext-rediraffe==0.2.7 13 | - sphinx-reredirects==0.1.4 14 | - sphinx-exercise==1.0.1 15 | - sphinx-proof==0.2.0 16 | - ghp-import==1.1.0 17 | - sphinxcontrib-youtube==1.3.0 #Version 1.3.0 is required as quantecon-book-theme is only compatible with sphinx<=5 18 | - sphinx-togglebutton==0.3.2 19 | - kaleido # generating static images support 20 | # Docker Requirements 21 | - pytz 22 | 23 | -------------------------------------------------------------------------------- /cuda-12.8.1-anaconda-2024-10-py312/environment.yml: -------------------------------------------------------------------------------- 1 | name: quantecon 2 | channels: 3 | - default 4 | dependencies: 5 | - python=3.12 6 | - anaconda=2024.10 7 | - pip 8 | - pip: 9 | - jupyter-book==1.0.3 10 | - quantecon-book-theme==0.7.6 11 | - sphinx-tojupyter==0.3.0 12 | - sphinxext-rediraffe==0.2.7 13 | - sphinx-reredirects==0.1.4 14 | - sphinx-exercise==1.0.1 15 | - sphinx-proof==0.2.0 16 | - ghp-import==1.1.0 17 | - sphinxcontrib-youtube==1.3.0 #Version 1.3.0 is required as quantecon-book-theme is only compatible with sphinx<=5 18 | - sphinx-togglebutton==0.3.2 19 | - kaleido # generating static images support 20 | # Docker Requirements 21 | - pytz 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # lecture-python.docker 2 | 3 | Docker Container to Support Building Python Lecture Series 4 | 5 | ## In Testing 6 | 7 | | name | Description | 8 | |------|-------------| 9 | | cuda-12.8.1-anaconda-2024-10-py312 | CUDA 12.8.1 + CUDAnn, Anaconda 2024.10, Python 3.12, jupyter-book 1.0.3 (ubuntu-24.04) | 10 | 11 | ## Current Production Container 12 | 13 | | name | Description | 14 | |------|-------------| 15 | | cuda-12.6.0-anaconda-2024-10-py312-b | CUDA 12.6 + CUDAnn, Anaconda 2024.10, Python 3.12, jupyter-book 1.0.3 | 16 | 17 | ## Older Containers 18 | 19 | | name | Description | 20 | |------|-------------| 21 | | cuda-12.6.0-anaconda-2024-10-py312 | CUDA 12.6 + CUDAnn, Anaconda 2024.10, Python 3.12 | 22 | 23 | -------------------------------------------------------------------------------- /cuda-12.6.0-anaconda-2024-06-py311/environment.yml: -------------------------------------------------------------------------------- 1 | name: quantecon 2 | channels: 3 | - default 4 | dependencies: 5 | - python=3.11 6 | - anaconda=2024.06 7 | - pip 8 | - pip: 9 | - jupyter-book==0.15.1 10 | - quantecon-book-theme==0.7.1 11 | - sphinx-tojupyter==0.3.0 12 | - sphinxext-rediraffe==0.2.7 13 | - sphinx-reredirects==0.1.3 14 | - sphinx-exercise==0.4.1 15 | - ghp-import==1.1.0 16 | - sphinxcontrib-youtube==1.1.0 17 | - sphinx-togglebutton==0.3.1 18 | - array-to-latex 19 | - prettytable 20 | - kaleido 21 | - arviz 22 | # Docker Requirements 23 | - pytz 24 | # Docutils Issue (https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/322) 25 | - docutils==0.17.1 26 | 27 | -------------------------------------------------------------------------------- /cuda-12.6.0-anaconda-2024-06-py312/environment.yml: -------------------------------------------------------------------------------- 1 | name: quantecon 2 | channels: 3 | - default 4 | dependencies: 5 | - python=3.12 6 | - anaconda=2024.06 7 | - pip 8 | - pip: 9 | - jupyter-book==0.15.1 10 | - quantecon-book-theme==0.7.2 11 | - sphinx-tojupyter==0.3.0 12 | - sphinxext-rediraffe==0.2.7 13 | - sphinx-reredirects==0.1.3 14 | - sphinx-exercise==0.4.1 15 | - sphinx-proof==0.2.0 16 | - ghp-import==1.1.0 17 | - sphinxcontrib-youtube==1.1.0 18 | - sphinx-togglebutton==0.3.1 19 | - array-to-latex 20 | - prettytable 21 | - kaleido 22 | - arviz 23 | # Docker Requirements 24 | - pytz 25 | # Docutils Issue (https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/322) 26 | - docutils==0.17.1 27 | 28 | -------------------------------------------------------------------------------- /cuda-12.6.0-anaconda-2024-10-py312/environment.yml: -------------------------------------------------------------------------------- 1 | name: quantecon 2 | channels: 3 | - default 4 | dependencies: 5 | - python=3.12 6 | - anaconda=2024.10 7 | - pip 8 | - pip: 9 | - jupyter-book==0.15.1 10 | - quantecon-book-theme==0.7.2 11 | - sphinx-tojupyter==0.3.0 12 | - sphinxext-rediraffe==0.2.7 13 | - sphinx-reredirects==0.1.3 14 | - sphinx-exercise==0.4.1 15 | - sphinx-proof==0.2.0 16 | - ghp-import==1.1.0 17 | - sphinxcontrib-youtube==1.1.0 18 | - sphinx-togglebutton==0.3.1 19 | - array-to-latex 20 | - prettytable 21 | - kaleido 22 | - arviz 23 | # Docker Requirements 24 | - pytz 25 | # Docutils Issue (https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/322) 26 | - docutils==0.17.1 27 | 28 | -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build and Push Docker Containers to GitHub Container Registry 2 | 3 | on: 4 | push: 5 | branches: [main] 6 | 7 | env: 8 | IMAGE_NAME: lecture-python-container 9 | TAG: cuda-12.8.1-anaconda-2024-10-py312 10 | 11 | jobs: 12 | push_to_registry: 13 | name: Push Docker image to GitHub Containers 14 | permissions: 15 | packages: write 16 | contents: read 17 | runs-on: ubuntu-latest 18 | steps: 19 | - name: Check out the repo 20 | uses: actions/checkout@v4 21 | - name: Create more disk space on Ubuntu 22 | run: sudo rm -rf /usr/share/dotnet && sudo rm -rf /opt/ghc && sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY" 23 | - name: Build image 24 | run: | 25 | cd ${{ env.TAG }} 26 | docker build -t ghcr.io/quantecon/${{ env.IMAGE_NAME }}:${{ env.TAG }} . 27 | - name: Log in to registr y 28 | run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin 29 | - name: Build & Push Container 30 | run: | 31 | docker push ghcr.io/quantecon/${{ env.IMAGE_NAME }}:${{ env.TAG }} 32 | -------------------------------------------------------------------------------- /cuda-12.6.0-anaconda-2024-06-py311/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nvidia/cuda:12.6.0-devel-ubuntu22.04 2 | 3 | ENV DEBIAN_FRONTEND=noninteractive 4 | RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections 5 | 6 | # Install base utilities 7 | RUN apt-get update && \ 8 | apt-get install -y sudo 9 | 10 | # Install tzdata 11 | # ENV TZ=Etc/UTC 12 | # RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 13 | RUN apt-get install -y tzdata 14 | 15 | # Install developer tools 16 | RUN apt-get install -y build-essential && \ 17 | apt-get install -y wget && \ 18 | apt-get install -y git 19 | 20 | # Install LaTeX build system 21 | 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 22 | 23 | # Clean apt 24 | RUN sudo apt-get clean && \ 25 | rm -rf /var/lib/apt/lists/* 26 | 27 | # Install miniconda 28 | ENV CONDA_DIR /opt/conda 29 | RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ 30 | /bin/bash ~/miniconda.sh -b -p /opt/conda 31 | RUN rm -rf Miniconda3-latest-Linux-x86_64.sh 32 | 33 | # Put conda in path so we can use conda activate 34 | ENV PATH=$CONDA_DIR/bin:$PATH 35 | 36 | # Setup Environment 37 | COPY environment.yml . 38 | RUN conda env create -f environment.yml 39 | RUN echo "source activate quantecon" > ~/.bashrc 40 | ENV PATH /opt/conda/envs/quantecon/bin:$PATH 41 | ENV CONDA_DEFAULT_ENV quantecon 42 | 43 | # Install JAX 44 | RUN nvcc --version 45 | RUN pip install "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html 46 | # Note: always install jax[cuda] last to ensure proper CUDA+CUDANN version linking 47 | RUN pip install --upgrade "jax[cuda12_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html 48 | -------------------------------------------------------------------------------- /cuda-12.6.0-anaconda-2024-06-py312/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nvidia/cuda:12.6.0-devel-ubuntu22.04 2 | 3 | ENV DEBIAN_FRONTEND=noninteractive 4 | RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections 5 | 6 | # Install base utilities 7 | RUN apt-get update && \ 8 | apt-get install -y sudo 9 | 10 | # Install tzdata 11 | # ENV TZ=Etc/UTC 12 | # RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 13 | RUN apt-get install -y tzdata 14 | 15 | # Install developer tools 16 | RUN apt-get install -y build-essential && \ 17 | apt-get install -y wget && \ 18 | apt-get install -y git 19 | 20 | # Install LaTeX build system 21 | 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 22 | 23 | # Clean apt 24 | RUN sudo apt-get clean && \ 25 | rm -rf /var/lib/apt/lists/* 26 | 27 | # Install miniconda 28 | ENV CONDA_DIR /opt/conda 29 | RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ 30 | /bin/bash ~/miniconda.sh -b -p /opt/conda 31 | RUN rm -rf Miniconda3-latest-Linux-x86_64.sh 32 | 33 | # Put conda in path so we can use conda activate 34 | ENV PATH=$CONDA_DIR/bin:$PATH 35 | 36 | # Setup Environment 37 | COPY environment.yml . 38 | RUN conda env create -f environment.yml 39 | RUN echo "source activate quantecon" > ~/.bashrc 40 | ENV PATH /opt/conda/envs/quantecon/bin:$PATH 41 | ENV CONDA_DEFAULT_ENV quantecon 42 | 43 | # Install JAX 44 | RUN nvcc --version 45 | RUN pip install "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html 46 | # Note: always install jax[cuda] last to ensure proper CUDA+CUDANN version linking 47 | RUN pip install --upgrade "jax[cuda12_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html 48 | -------------------------------------------------------------------------------- /cuda-12.6.0-anaconda-2024-10-py312/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nvidia/cuda:12.6.0-devel-ubuntu22.04 2 | 3 | ENV DEBIAN_FRONTEND=noninteractive 4 | RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections 5 | 6 | # Install base utilities 7 | RUN apt-get update && \ 8 | apt-get install -y sudo 9 | 10 | # Install tzdata 11 | # ENV TZ=Etc/UTC 12 | # RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 13 | RUN apt-get install -y tzdata 14 | 15 | # Install developer tools 16 | RUN apt-get install -y build-essential && \ 17 | apt-get install -y wget && \ 18 | apt-get install -y git 19 | 20 | # Install LaTeX build system 21 | 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 22 | 23 | # Clean apt 24 | RUN sudo apt-get clean && \ 25 | rm -rf /var/lib/apt/lists/* 26 | 27 | # Install miniconda 28 | ENV CONDA_DIR /opt/conda 29 | RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ 30 | /bin/bash ~/miniconda.sh -b -p /opt/conda 31 | RUN rm -rf Miniconda3-latest-Linux-x86_64.sh 32 | 33 | # Put conda in path so we can use conda activate 34 | ENV PATH=$CONDA_DIR/bin:$PATH 35 | 36 | # Setup Environment 37 | COPY environment.yml . 38 | RUN conda env create -f environment.yml 39 | RUN echo "source activate quantecon" > ~/.bashrc 40 | ENV PATH /opt/conda/envs/quantecon/bin:$PATH 41 | ENV CONDA_DEFAULT_ENV quantecon 42 | 43 | # Install JAX 44 | RUN nvcc --version 45 | RUN pip install "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html 46 | # Note: always install jax[cuda] last to ensure proper CUDA+CUDANN version linking 47 | RUN pip install --upgrade "jax[cuda12_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html 48 | -------------------------------------------------------------------------------- /cuda-12.6.0-anaconda-2024-10-py312-b/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nvidia/cuda:12.6.0-devel-ubuntu22.04 2 | 3 | ENV DEBIAN_FRONTEND=noninteractive 4 | RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections 5 | 6 | # Install base utilities 7 | RUN apt-get update && \ 8 | apt-get install -y sudo 9 | 10 | # Install tzdata 11 | # ENV TZ=Etc/UTC 12 | # RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 13 | RUN apt-get install -y tzdata 14 | 15 | # Install developer tools 16 | RUN apt-get install -y build-essential && \ 17 | apt-get install -y wget && \ 18 | apt-get install -y git 19 | 20 | # Install LaTeX build system 21 | 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 22 | 23 | # Clean apt 24 | RUN sudo apt-get clean && \ 25 | rm -rf /var/lib/apt/lists/* 26 | 27 | # Install miniconda 28 | ENV CONDA_DIR /opt/conda 29 | RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ 30 | /bin/bash ~/miniconda.sh -b -p /opt/conda 31 | RUN rm -rf Miniconda3-latest-Linux-x86_64.sh 32 | 33 | # Put conda in path so we can use conda activate 34 | ENV PATH=$CONDA_DIR/bin:$PATH 35 | 36 | # Setup Environment 37 | COPY environment.yml . 38 | RUN conda env create -f environment.yml 39 | RUN echo "source activate quantecon" > ~/.bashrc 40 | ENV PATH /opt/conda/envs/quantecon/bin:$PATH 41 | ENV CONDA_DEFAULT_ENV quantecon 42 | 43 | # Install JAX 44 | RUN nvcc --version 45 | RUN pip install "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html 46 | # Note: always install jax[cuda] last to ensure proper CUDA+CUDANN version linking 47 | RUN pip install --upgrade "jax[cuda12_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html 48 | -------------------------------------------------------------------------------- /cuda-12.8.0-anaconda-2024-10-py312/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nvidia/cuda:12.8.0-cudnn-devel-ubuntu22.04 2 | 3 | ENV DEBIAN_FRONTEND=noninteractive 4 | RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections 5 | 6 | # Install base utilities 7 | RUN apt-get update && \ 8 | apt-get install -y sudo 9 | 10 | # Install tzdata 11 | # ENV TZ=Etc/UTC 12 | # RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 13 | RUN apt-get install -y tzdata 14 | 15 | # Install developer tools 16 | RUN apt-get install -y build-essential && \ 17 | apt-get install -y wget && \ 18 | apt-get install -y git 19 | 20 | # Install LaTeX build system 21 | 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 22 | 23 | # Clean apt 24 | RUN sudo apt-get clean && \ 25 | rm -rf /var/lib/apt/lists/* 26 | 27 | # Install miniconda 28 | ENV CONDA_DIR /opt/conda 29 | RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ 30 | /bin/bash ~/miniconda.sh -b -p /opt/conda 31 | RUN rm -rf Miniconda3-latest-Linux-x86_64.sh 32 | 33 | # Put conda in path so we can use conda activate 34 | ENV PATH=$CONDA_DIR/bin:$PATH 35 | 36 | # Setup Environment 37 | COPY environment.yml . 38 | RUN conda env create -f environment.yml 39 | RUN echo "source activate quantecon" > ~/.bashrc 40 | ENV PATH /opt/conda/envs/quantecon/bin:$PATH 41 | ENV CONDA_DEFAULT_ENV quantecon 42 | 43 | # Install JAX 44 | RUN nvcc --version 45 | RUN pip install "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html 46 | # Note: always install jax[cuda] last to ensure proper CUDA+CUDANN version linking 47 | RUN pip install --upgrade "jax[cuda12_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html 48 | -------------------------------------------------------------------------------- /cuda-12.8.1-anaconda-2024-10-py312/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nvidia/cuda:12.8.1-cudnn-devel-ubuntu24.04 2 | 3 | ENV DEBIAN_FRONTEND=noninteractive 4 | RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections 5 | 6 | # Install base utilities 7 | RUN apt-get update && \ 8 | apt-get install -y sudo 9 | 10 | # Install tzdata 11 | # ENV TZ=Etc/UTC 12 | # RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 13 | RUN apt-get install -y tzdata 14 | 15 | # Install developer tools 16 | RUN apt-get install -y build-essential && \ 17 | apt-get install -y wget && \ 18 | apt-get install -y git 19 | 20 | # Install LaTeX build system 21 | 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 22 | 23 | # Clean apt 24 | RUN sudo apt-get clean && \ 25 | rm -rf /var/lib/apt/lists/* 26 | 27 | # Install miniconda 28 | ENV CONDA_DIR /opt/conda 29 | RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ 30 | /bin/bash ~/miniconda.sh -b -p /opt/conda 31 | RUN rm -rf Miniconda3-latest-Linux-x86_64.sh 32 | 33 | # Put conda in path so we can use conda activate 34 | ENV PATH=$CONDA_DIR/bin:$PATH 35 | 36 | # Setup Environment 37 | COPY environment.yml . 38 | RUN conda env create -f environment.yml 39 | RUN echo "source activate quantecon" > ~/.bashrc 40 | ENV PATH /opt/conda/envs/quantecon/bin:$PATH 41 | ENV CONDA_DEFAULT_ENV quantecon 42 | 43 | # Install JAX 44 | RUN nvcc --version 45 | RUN pip install "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html 46 | # Note: always install jax[cuda] last to ensure proper CUDA+CUDANN version linking 47 | RUN pip install --upgrade "jax[cuda12_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html 48 | -------------------------------------------------------------------------------- /.github/workflows/_archive/build.yml: -------------------------------------------------------------------------------- 1 | name: Build and Push Docker Containers 2 | 3 | on: 4 | push: 5 | branches: [main] 6 | 7 | jobs: 8 | push_to_registry: 9 | name: Push Docker image to Docker Hub 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: Check out the repo 13 | uses: actions/checkout@v3 14 | 15 | - name: Log in to Docker Hub 16 | uses: docker/login-action@v2.1.0 17 | with: 18 | username: ${{ secrets.DOCKER_USERNAME }} 19 | password: ${{ secrets.DOCKER_PASSWORD }} 20 | 21 | # - name: Build & Push (py39-anaconda-2022-10-jb-0.12.1) 22 | # uses: docker/build-push-action@v3.2.0 23 | # with: 24 | # context: py39-anaconda-2022-10-jb-0.12.1 25 | # push: true 26 | # tags: mmcky/quantecon-lecture-python:py39-anaconda-2022-10-jb-0.12.1 27 | 28 | # - name: Build & Push (py39-anaconda-2022-10-jb-0.15.1) 29 | # uses: docker/build-push-action@v3.2.0 30 | # with: 31 | # context: py39-anaconda-2022-10-jb-0.15.1 32 | # push: true 33 | # tags: mmcky/quantecon-lecture-python:py39-anaconda-2022-10-jb-0.15.1 34 | 35 | # - name: Build & Push (cuda-12.1.0-anaconda-2023-03-py310) 36 | # uses: docker/build-push-action@v3.2.0 37 | # with: 38 | # context: cuda-12.1.0-anaconda-2023-03-py310 39 | # push: true 40 | # tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-03-py310 41 | 42 | # # Upgrade quantecon-book-theme==0.5.0 43 | # - name: Build & Push (cuda-12.1.0-anaconda-2023-03-py310-b) 44 | # uses: docker/build-push-action@v3.2.0 45 | # with: 46 | # context: cuda-12.1.0-anaconda-2023-03-py310-b 47 | # push: true 48 | # tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-03-py310-b 49 | 50 | # Upgrade quantecon-book-theme==0.5.1 51 | # - name: Build & Push (cuda-12.1.0-anaconda-2023-03-py310-c) 52 | # uses: docker/build-push-action@v3.2.0 53 | # with: 54 | # context: cuda-12.1.0-anaconda-2023-03-py310-c 55 | # push: true 56 | # tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-03-py310-c 57 | 58 | - name: Create more disk space 59 | run: sudo rm -rf /usr/share/dotnet && sudo rm -rf /opt/ghc && sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY" 60 | 61 | # # Upgrade quantecon-book-theme==0.5.3 62 | # - name: Build & Push (cuda-12.1.0-anaconda-2023-03-py310-d) 63 | # uses: docker/build-push-action@v3.2.0 64 | # with: 65 | # context: cuda-12.1.0-anaconda-2023-03-py310-d 66 | # push: true 67 | # tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-03-py310-d 68 | 69 | # - name: Build & Push (cuda-12.1.0-anaconda-2023-07-py310) 70 | # uses: docker/build-push-action@v3.2.0 71 | # with: 72 | # context: cuda-12.1.0-anaconda-2023-07-py310 73 | # push: true 74 | # tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-07-py310 75 | 76 | # - name: Build & Push (cuda-12.1.0-anaconda-2023-07-py310-b) 77 | # uses: docker/build-push-action@v3.2.0 78 | # with: 79 | # context: cuda-12.1.0-anaconda-2023-07-py310-b 80 | # push: true 81 | # tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-07-py310-b 82 | 83 | # - name: Build & Push (cuda-12.1.0-anaconda-2023-09-py311) 84 | # uses: docker/build-push-action@v3.2.0 85 | # with: 86 | # context: cuda-12.1.0-anaconda-2023-09-py311 87 | # push: true 88 | # tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311 89 | 90 | # - name: Build & Push (cuda-12.1.0-anaconda-2023-09-py311-b) 91 | # uses: docker/build-push-action@v3.2.0 92 | # with: 93 | # context: cuda-12.1.0-anaconda-2023-09-py311-b 94 | # push: true 95 | # tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311-b 96 | 97 | # - name: Build & Push (cuda-12.1.0-anaconda-2023-09-py311-c) 98 | # uses: docker/build-push-action@v3.2.0 99 | # with: 100 | # context: cuda-12.1.0-anaconda-2023-09-py311-c 101 | # push: true 102 | # tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311-c 103 | 104 | # - name: Build & Push (cuda-12.1.0-anaconda-2023-09-py311-d) 105 | # uses: docker/build-push-action@v3.2.0 106 | # with: 107 | # context: cuda-12.1.0-anaconda-2023-09-py311-d 108 | # push: true 109 | # tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311-d 110 | 111 | # - name: Build & Push (cuda-12.3.1-anaconda-2023-09-py311) 112 | # uses: docker/build-push-action@v3.2.0 113 | # with: 114 | # context: cuda-12.3.1-anaconda-2023-09-py311 115 | # push: true 116 | # tags: mmcky/quantecon-lecture-python:cuda-12.3.1-anaconda-2023-09-py311 117 | 118 | - name: Build & Push (cuda-12.3.1-anaconda-2024-02-py311) 119 | uses: docker/build-push-action@v3.2.0 120 | with: 121 | context: cuda-12.3.1-anaconda-2024-02-py311 122 | push: true 123 | tags: mmcky/quantecon-lecture-python:cuda-12.3.1-anaconda-2024-02-py311 124 | 125 | # - name: Build & Push (cuda-12.1.0-anaconda-2024-02-py311) 126 | # uses: docker/build-push-action@v3.2.0 127 | # with: 128 | # context: cuda-12.1.0-anaconda-2024-02-py311 129 | # push: true 130 | # tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2024-02-py311 --------------------------------------------------------------------------------