-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update image structure based on design doc updates
- Loading branch information
Showing
7 changed files
with
100 additions
and
107 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,14 @@ | ||
# Read the Docs - ubuntu20-conda47 | ||
FROM readthedocs/build:ubuntu20-base | ||
|
||
# Install Conda | ||
# Note: 4.7.12.1 drastically increases memory usage | ||
ENV RTD_CONDA_VERSION 4.6.14 | ||
# Define Python versions to be installed via asdf | ||
ENV RTD_PYTHON_VERSION miniconda3-4.7.12 | ||
|
||
WORKDIR /home/docs | ||
# Labels for external usage | ||
LABEL python.version=$RTD_PYTHON_VERSION | ||
|
||
# Install supported Python versions | ||
RUN pyenv install miniconda3-$RTD_CONDA_VERSION && \ | ||
pyenv global miniconda3-$RTD_CONDA_VERSION | ||
|
||
WORKDIR /tmp | ||
|
||
ENV RTD_MAMBA_VERSION 0.8.2 | ||
RUN pyenv local miniconda3-$RTD_CONDA_VERSION && \ | ||
pyenv exec conda install --channel conda-forge mamba==$RTD_MAMBA_VERSION | ||
|
||
WORKDIR /home/docs | ||
|
||
# Adding labels for external usage | ||
LABEL conda.version=$RTD_CONDA_VERSION | ||
RUN asdf install python $RTD_PYTHON_VERSION && \ | ||
asdf global python $RTD_PYTHON_VERSION | ||
|
||
CMD ["/bin/bash"] |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Read the Docs - ubuntu20-mamba410 | ||
FROM readthedocs/build:ubuntu20-base | ||
|
||
# Define Python versions to be installed via asdf | ||
ENV RTD_PYTHON_VERSION mambaforge-4.10.1-5 | ||
|
||
# Labels for external usage | ||
LABEL python.version=$RTD_PYTHON_VERSION | ||
|
||
# Install supported Python versions | ||
RUN asdf install python $RTD_PYTHON_VERSION && \ | ||
asdf global python $RTD_PYTHON_VERSION | ||
|
||
CMD ["/bin/bash"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
# Read the Docs - ubuntu20-py27 | ||
FROM readthedocs/build:ubuntu20-base | ||
|
||
# Define Python versions to be installed via pyenv | ||
ENV RTD_PYTHON_VERSION_27 2.7.18 | ||
# Define Python versions to be installed via asdf | ||
ENV RTD_PYTHON_VERSION 2.7.18 | ||
ENV RTD_PIP_VERSION 20.0.1 | ||
ENV RTD_SETUPTOOLS_VERSION 44.0.0 | ||
ENV RTD_VIRTUALENV_VERSION 16.7.9 | ||
|
||
# Install supported Python versions | ||
RUN pyenv install $RTD_PYTHON_VERSION_27 && \ | ||
pyenv global $RTD_PYTHON_VERSION_27 | ||
# Labels for external usage | ||
LABEL python.version=$RTD_PYTHON_VERSION | ||
LABEL python.pip=$RTD_PIP_VERSION | ||
LABEL python.setuptools=$SETUPTOOLS_VERSION | ||
LABEL python.virtualenv=$VIRTUALENV_VERSION | ||
|
||
WORKDIR /tmp | ||
# Install supported Python versions | ||
RUN asdf install python $RTD_PYTHON_VERSION && \ | ||
asdf global python $RTD_PYTHON_VERSION | ||
|
||
# Python2 dependencies are hardcoded because Python2 is | ||
# deprecated. Updating them to their latest versions may raise | ||
# incompatibility issues. | ||
RUN pyenv local $RTD_PYTHON_VERSION_27 && \ | ||
pyenv exec pip install --no-cache-dir -U pip==20.0.1 && \ | ||
pyenv exec pip install --no-cache-dir -U setuptools==44.0.0 && \ | ||
pyenv exec pip install --no-cache-dir virtualenv==16.7.9 | ||
|
||
# Adding labels for external usage | ||
LABEL python.version_27=$PYTHON_VERSION_27 | ||
RUN pip install --no-cache-dir -U pip==$RTD_PIP_VERSION && \ | ||
pip install --no-cache-dir -U setuptools==$RTD_SETUPTOOLS_VERSION && \ | ||
pip install --no-cache-dir virtualenv==$RTD_VIRTUALENV_VERSION | ||
|
||
CMD ["/bin/bash"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Read the Docs - ubuntu20-py39 | ||
FROM readthedocs/build:ubuntu20-base | ||
|
||
# Define Python versions to be installed via asdf | ||
ENV RTD_PYTHON_VERSION 3.8.11 | ||
ENV RTD_PIP_VERSION 21.2.4 | ||
ENV RTD_SETUPTOOLS_VERSION 57.4.0 | ||
ENV RTD_VIRTUALENV_VERSION 20.7.2 | ||
|
||
# Labels for external usage | ||
LABEL python.version=$RTD_PYTHON_VERSION | ||
LABEL python.pip=$RTD_PIP_VERSION | ||
LABEL python.setuptools=$SETUPTOOLS_VERSION | ||
LABEL python.virtualenv=$VIRTUALENV_VERSION | ||
|
||
# Install supported Python versions | ||
RUN asdf install python $RTD_PYTHON_VERSION && \ | ||
asdf global python $RTD_PYTHON_VERSION | ||
|
||
RUN pip install --no-cache-dir -U pip==$RTD_PIP_VERSION && \ | ||
pip install --no-cache-dir -U setuptools==$RTD_SETUPTOOLS_VERSION && \ | ||
pip install --no-cache-dir virtualenv==$RTD_VIRTUALENV_VERSION | ||
|
||
CMD ["/bin/bash"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,24 @@ | ||
# Read the Docs - ubuntu20-py39 | ||
FROM readthedocs/build:ubuntu20-base | ||
|
||
ENV RTD_PYTHON_VERSION_39 3.9.0 | ||
# Define Python versions to be installed via asdf | ||
ENV RTD_PYTHON_VERSION 3.9.6 | ||
ENV RTD_PIP_VERSION 21.2.4 | ||
ENV RTD_SETUPTOOLS_VERSION 57.4.0 | ||
ENV RTD_VIRTUALENV_VERSION 20.7.2 | ||
|
||
# Install supported Python versions | ||
RUN pyenv install $RTD_PYTHON_VERSION_39 && \ | ||
pyenv global $RTD_PYTHON_VERSION_39 | ||
|
||
WORKDIR /tmp | ||
|
||
ENV RTD_PIP_VERSION 21.0.1 | ||
ENV RTD_SETUPTOOLS_VERSION 45.1.0 | ||
ENV RTD_VIRTUALENV_VERSION 20.4.3 | ||
|
||
RUN pyenv local $RTD_PYTHON_VERSION_39 && \ | ||
pyenv exec pip install --no-cache-dir -U pip==$RTD_PIP_VERSION && \ | ||
pyenv exec pip install --no-cache-dir -U setuptools==$RTD_SETUPTOOLS_VERSION && \ | ||
pyenv exec pip install --no-cache-dir virtualenv==$RTD_VIRTUALENV_VERSION | ||
|
||
# Adding labels for external usage | ||
LABEL python.version_39=$PYTHON_VERSION_39 | ||
# Labels for external usage | ||
LABEL python.version=$RTD_PYTHON_VERSION | ||
LABEL python.pip=$RTD_PIP_VERSION | ||
LABEL python.setuptools=$SETUPTOOLS_VERSION | ||
LABEL python.virtualenv=$VIRTUALENV_VERSION | ||
|
||
# Install supported Python versions | ||
RUN asdf install python $RTD_PYTHON_VERSION && \ | ||
asdf global python $RTD_PYTHON_VERSION | ||
|
||
RUN pip install --no-cache-dir -U pip==$RTD_PIP_VERSION && \ | ||
pip install --no-cache-dir -U setuptools==$RTD_SETUPTOOLS_VERSION && \ | ||
pip install --no-cache-dir virtualenv==$RTD_VIRTUALENV_VERSION | ||
|
||
CMD ["/bin/bash"] |