Adjusted all working routes, full docker pipeline verified, added extra validations for docker, reduced julia environment, tested run succesful

This commit is contained in:
Pixelguy14
2026-10-08 20:51:43 -06:00
parent 19fdd8af16
commit bab8f4d2a9
28 changed files with 290 additions and 499 deletions
+11 -5
View File
@@ -1,4 +1,6 @@
FROM nvidia/cuda:12.4.1-runtime-ubuntu22.04
# Fully-qualified base image (docker.io/...) so Podman/Buildah never prompts for a
# short-name registry. See "Troubleshooting" in README.md.
FROM docker.io/nvidia/cuda:12.4.1-runtime-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=UTC
@@ -18,9 +20,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# ============================================================
# Julia 1.11 (matches environment/Manifest.toml julia_version = "1.11.3")
# Julia 1.11 (matches environment/Manifest.toml julia_version = "1.11.7")
# ============================================================
RUN curl -fsSL https://julialang-s3.julialang.org/bin/linux/x64/1.11/julia-1.11.3-linux-x86_64.tar.gz \
RUN curl -fsSL https://julialang-s3.julialang.org/bin/linux/x64/1.11/julia-1.11.7-linux-x86_64.tar.gz \
| tar -xz -C /usr/local --strip-components=1
# ============================================================
@@ -40,12 +42,16 @@ COPY . .
# ============================================================
# Julia environment
# ============================================================
RUN julia --project=/app/environment -e 'using Pkg; Pkg.resolve(); Pkg.instantiate(); Pkg.precompile()'
# Instantiate from the committed Manifest.toml (no resolve: the lock is complete,
# and resolving against a fresh registry is fragile). No explicit precompile:
# GLMakie is a GUI-only dependency that fails to precompile headlessly, but the
# pipeline never loads it, so it must not fail the build.
RUN julia --project=/app/environment -e 'using Pkg; Pkg.instantiate()'
# ============================================================
# Environment variables
# ============================================================
ENV PYTHONPATH="/app/scripts/python:${PYTHONPATH}"
ENV PYTHONPATH="/app/scripts_python:${PYTHONPATH}"
ENV DISPLAY=:99
LABEL maintainer="MSI Julia-Python CNN"