From 2077d98b6de7406b144b93f3c9b2effea64cd66d Mon Sep 17 00:00:00 2001 From: gitgud5000 <17186026+gitgud5000@users.noreply.github.com> Date: Wed, 25 Jun 2025 14:35:12 -0400 Subject: [PATCH 1/3] Add CUDA 12.8.1 environment configuration and update Dockerfile and docker-compose settings --- .env | 33 +++++++++++++++++++++++++++++++++ build/Dockerfile | 8 ++++---- docker-compose.yaml | 23 +++++++++++------------ 3 files changed, 48 insertions(+), 16 deletions(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..cb3ce69 --- /dev/null +++ b/.env @@ -0,0 +1,33 @@ +# CUDA 12.8.1 Python environment configuration for RTX 5090 +IMAGE_BASE=ghcr.io/gitgud5000/base-image:v1-redo +IMAGE_TAG=py312 +PYTHON_VERSION=all +PYTHON_VENV_NAME=python_312 + +# Network configuration +DIRECT_ADDRESS=127.0.0.1 +DIRECT_ADDRESS_GET_WAN=false +WORKSPACE=/workspace +WORKSPACE_SYNC=false + +# Web configuration +WEB_ENABLE_AUTH=true +WEB_USER=user +WEB_PASSWORD=password + +# Service configuration +SERVERLESS=false +SSH_PORT_HOST=2222 +SERVICEPORTAL_PORT_HOST=1111 +SERVICEPORTAL_METRICS_PORT=21111 + +# Jupyter configuration +JUPYTER_PORT_HOST=8888 +JUPYTER_METRICS_PORT=28888 + +# Syncthing configuration +SYNCTHING_UI_PORT_HOST=8384 +SYNCTHING_TRANSPORT_PORT_HOST=22999 + +# CloudFlare tunnel configuration +CF_QUICK_TUNNELS=true diff --git a/build/Dockerfile b/build/Dockerfile index f5ffc6f..dbfdd8d 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,12 +1,12 @@ # For build automation - Allows building from any ai-dock base image -ARG IMAGE_BASE="ghcr.io/ai-dock/base-image:v2-cuda-12.1.1-base-22.04" +ARG IMAGE_BASE="ghcr.io/gitgud5000/base-image:v1-redo" FROM ${IMAGE_BASE} -LABEL org.opencontainers.image.source https://github.com/ai-dock/python +LABEL org.opencontainers.image.source https://github.com/gitgud5000/python -LABEL org.opencontainers.image.description "Python development environment in a cloud-first docker container" +LABEL org.opencontainers.image.description "Python development environment with CUDA 12.8.1 for RTX 5090" -LABEL maintainer="Rob Ballantyne " +LABEL maintainer="GitGud5000" ENV JUPYTER_VENV=$VENV_DIR/jupyter ENV JUPYTER_VENV_PYTHON=$JUPYTER_VENV/bin/python diff --git a/docker-compose.yaml b/docker-compose.yaml index 81bb604..2a70bc7 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,26 +1,25 @@ -version: "3.8" # Compose file build variables set in .env services: supervisor: build: context: ./build args: - IMAGE_BASE: ${IMAGE_BASE:-ghcr.io/ai-dock/base-image:v2-cuda-11.8.0-runtime-22.04} + IMAGE_BASE: ${IMAGE_BASE:-ghcr.io/gitgud5000/base-image:v1-redo} PYTHON_VERSION: ${PYTHON_VERSION:-all} PYTHON_VENV_NAME: ${PYTHON_VENV_NAME:-python_312} tags: - - "ghcr.io/ai-dock/python:${IMAGE_TAG:-all-v2-cuda-11.8.0-runtime-22.04}" + - "ghcr.io/gitgud5000/python:${IMAGE_TAG:-py312}" - image: ghcr.io/ai-dock/python:${IMAGE_TAG:-all-v2-cuda-11.8.0-runtime-22.04} + image: ghcr.io/gitgud5000/python:${IMAGE_TAG:-py312} - ## For Nvidia GPU's - You probably want to uncomment this - #deploy: - # resources: - # reservations: - # devices: - # - driver: nvidia - # count: all - # capabilities: [gpu] + ## For Nvidia GPU's - Enabled for RTX 5090 + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: all + capabilities: [gpu] devices: - "/dev/dri:/dev/dri" From 1b05c2c9fc2f11eac9486817f0f0fef7363db2f1 Mon Sep 17 00:00:00 2001 From: gitgud5000 <17186026+gitgud5000@users.noreply.github.com> Date: Wed, 13 Aug 2025 00:06:17 -0400 Subject: [PATCH 2/3] Update Python version in environment configuration to 3.12 --- .env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env b/.env index cb3ce69..a422e5b 100644 --- a/.env +++ b/.env @@ -1,7 +1,7 @@ # CUDA 12.8.1 Python environment configuration for RTX 5090 IMAGE_BASE=ghcr.io/gitgud5000/base-image:v1-redo IMAGE_TAG=py312 -PYTHON_VERSION=all +PYTHON_VERSION=3.12 PYTHON_VENV_NAME=python_312 # Network configuration From 3ad215142cc508084f81dfc8363a9969b3c8c207 Mon Sep 17 00:00:00 2001 From: gitgud5000 <17186026+gitgud5000@users.noreply.github.com> Date: Thu, 28 Aug 2025 08:10:30 -0400 Subject: [PATCH 3/3] Update CUDA version to 12.9.1 and adjust image tag in environment configuration --- .env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.env b/.env index a422e5b..3b30f9d 100644 --- a/.env +++ b/.env @@ -1,6 +1,6 @@ -# CUDA 12.8.1 Python environment configuration for RTX 5090 +# CUDA 12.9.1 Python environment configuration for RTX 5090 IMAGE_BASE=ghcr.io/gitgud5000/base-image:v1-redo -IMAGE_TAG=py312 +IMAGE_TAG=v2-py312 PYTHON_VERSION=3.12 PYTHON_VENV_NAME=python_312