-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade machine to support Python 3.9-3.12
- Loading branch information
1 parent
e0e3f08
commit 2532397
Showing
12 changed files
with
22,458 additions
and
2,211 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
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,43 @@ | ||
#compatability with Tensorflow 2.6.0 as per https://www.tensorflow.org/install/source#gpu | ||
ARG PYTHON_VERSION=3.12 | ||
ARG UBUNTU_VERSION=noble | ||
ARG POETRY_VERSION=1.6.1 | ||
ARG CUDA_VERSION=12.6.1-base-ubuntu24.04 | ||
|
||
FROM nvidia/cuda:$CUDA_VERSION | ||
ARG PYTHON_VERSION | ||
ARG POETRY_VERSION | ||
|
||
ENV POETRY_VENV=/opt/poetry-venv | ||
ENV PIP_DISABLE_PIP_VERSION_CHECK=on | ||
ENV TZ=America/New_York | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
RUN apt-get update && \ | ||
apt-get install --no-install-recommends -y software-properties-common && \ | ||
apt-get update && \ | ||
apt-get install --no-install-recommends -y \ | ||
python$PYTHON_VERSION \ | ||
python3-pip \ | ||
python3-venv \ | ||
git vim curl gdb ca-certificates gnupg2 tar make gcc libssl-dev zlib1g-dev libncurses5-dev \ | ||
libbz2-dev libreadline-dev libreadline6-dev libxml2-dev xz-utils libgdbm-dev libgdbm-compat-dev tk-dev dirmngr \ | ||
libxmlsec1-dev libsqlite3-dev libffi-dev liblzma-dev lzma lzma-dev uuid-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# make some useful symlinks that are expected to exist | ||
RUN ln -sfn /usr/bin/python${PYTHON_VERSION} /usr/bin/python3 & \ | ||
ln -sfn /usr/bin/python${PYTHON_VERSION} /usr/bin/python | ||
|
||
# Install poetry separated from system interpreter | ||
RUN python3 -m venv $POETRY_VENV \ | ||
&& $POETRY_VENV/bin/pip install -U pip setuptools \ | ||
&& $POETRY_VENV/bin/pip install poetry==${POETRY_VERSION} | ||
# Add `poetry` to PATH and configure | ||
ENV PATH="${PATH}:${POETRY_VENV}/bin" | ||
RUN poetry config virtualenvs.create true && \ | ||
poetry config virtualenvs.in-project true | ||
|
||
COPY ./.devcontainer/clearml.conf /root/clearml.conf | ||
|
||
CMD ["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
Oops, something went wrong.