Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

[*.py]
indent_style = space
indent_size = 4
max_line_length = 120

[*.go]
indent_style = tab
indent_size = 4

[*.{yml,yaml}]
indent_style = space
indent_size = 2

[*.{sh,bash}]
indent_style = space
indent_size = 2

[*.{toml,cfg,ini}]
indent_style = space
indent_size = 4

[*.{js,ts,json}]
indent_style = space
indent_size = 2

[*.{html,css}]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[Dockerfile*]
indent_style = space
indent_size = 4

[Makefile]
indent_style = tab

[justfile]
indent_style = space
indent_size = 4

[*.{tf,hcl}]
indent_style = space
indent_size = 2

[helm-deployments/**/*.yaml]
indent_style = space
indent_size = 2
3 changes: 2 additions & 1 deletion docker/c-cpp.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# syntax=docker/dockerfile:1
# C/C++ execution environment with Docker Hardened Images.
# Uses -dev variant because compilers and dev libraries must be available at runtime.

FROM dhi.io/debian-base:trixie
FROM dhi.io/debian-base:trixie-debian13-dev

ARG BUILD_DATE
ARG VERSION
Expand Down
3 changes: 2 additions & 1 deletion docker/d.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# syntax=docker/dockerfile:1
# D execution environment with Docker Hardened Images.
# Uses -dev variant because compilers must be available at runtime.

FROM dhi.io/debian-base:trixie
FROM dhi.io/debian-base:trixie-debian13-dev

ARG BUILD_DATE
ARG VERSION
Expand Down
3 changes: 2 additions & 1 deletion docker/fortran.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# syntax=docker/dockerfile:1
# Fortran execution environment with Docker Hardened Images.
# Uses -dev variant because compilers and dev libraries must be available at runtime.

FROM dhi.io/debian-base:trixie
FROM dhi.io/debian-base:trixie-debian13-dev

ARG BUILD_DATE
ARG VERSION
Expand Down
6 changes: 3 additions & 3 deletions docker/go.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

################################
# Stage 1: Build and download dependencies
FROM dhi.io/golang:1.25-debian13-dev AS builder
FROM dhi.io/golang:1.26-debian13-dev AS builder

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

Expand All @@ -26,7 +26,7 @@ RUN cd /tmp/gosetup && \

################################
# Stage 2: Prepare runtime directories
FROM dhi.io/golang:1.25-debian13-dev AS runtime-deps
FROM dhi.io/golang:1.26-debian13-dev AS runtime-deps

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

Expand All @@ -35,7 +35,7 @@ RUN mkdir -p /mnt/data /mnt/data/go-build && chown -R 65532:65532 /mnt/data

################################
# Stage 3: Minimal runtime image
FROM dhi.io/golang:1.25-debian13 AS final
FROM dhi.io/golang:1.26-debian13 AS final

ARG BUILD_DATE
ARG VERSION
Expand Down
4 changes: 2 additions & 2 deletions docker/php.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# PHP execution environment with Docker Hardened Images.

# PHP version configuration - single source of truth
ARG PHP_VERSION=8.4.17
ARG PHP_MAJOR=8.4
ARG PHP_VERSION=8.5.3
ARG PHP_MAJOR=8.5
ARG DEBIAN_VERSION=debian13

ARG BUILD_DATE
Expand Down
39 changes: 17 additions & 22 deletions docker/python.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,33 +83,34 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN mkdir -p /usr/lib/x86_64-linux-gnu /usr/lib/aarch64-linux-gnu && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
# Runtime libraries (counterparts to -dev packages in builder)
libxml2 \
libxslt1.1 \
libffi8 \
libssl3t64 \
# Core System Utilities
libgomp1 \
liblz4-1 \
# Image Processing (Pillow, OpenCV)
ffmpeg \
libjpeg62-turbo \
libpng16-16t64 \
libtiff6 \
libwebp7 \
libopenjp2-7 \
libfreetype6 \
liblcms2-2 \
libwebp7 \
libportaudio2 \
libpulse0 \
# External tools needed at runtime
# XML/HTML Processing (lxml, beautifulsoup4)
libxml2 \
libxslt1.1 \
# Cryptography (cryptography, PyOpenSSL)
libffi8 \
libssl3t64 \
# Font Support (Matplotlib, WordCloud)
libfreetype6 \
fontconfig \
# External Tools (Runtime executables)
poppler-utils \
tesseract-ocr \
pandoc \
ffmpeg \
flac \
antiword \
unrtf \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /mnt/data && chown 65532:65532 /mnt/data


################################
# Final stage - minimal runtime image
################################
Expand All @@ -129,13 +130,7 @@ LABEL org.opencontainers.image.title="KubeCodeRun Python Environment" \
COPY --from=runtime-deps /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu
COPY --from=runtime-deps /usr/lib/aarch64-linux-gnu /usr/lib/aarch64-linux-gnu
COPY --from=runtime-deps /usr/bin/pdftotext /usr/bin/pdftoppm /usr/bin/pdfinfo /usr/bin/
COPY --from=runtime-deps /usr/bin/tesseract /usr/bin/
COPY --from=runtime-deps /usr/bin/pandoc /usr/bin/
COPY --from=runtime-deps /usr/bin/ffmpeg /usr/bin/ffprobe /usr/bin/
COPY --from=runtime-deps /usr/bin/flac /usr/bin/
COPY --from=runtime-deps /usr/bin/antiword /usr/bin/
COPY --from=runtime-deps /usr/bin/unrtf /usr/bin/
COPY --from=runtime-deps /usr/share/tesseract-ocr /usr/share/tesseract-ocr

# Copy installed Python packages from builder
# DHI Python is installed in /opt/python, not /usr/local
Expand Down
4 changes: 2 additions & 2 deletions docker/r.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARG VCS_REF
################################
# Builder stage - install R and compile packages
################################
FROM dhi.io/debian-base:trixie AS builder
FROM dhi.io/debian-base:trixie-debian13-dev AS builder

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

Expand Down Expand Up @@ -40,7 +40,7 @@ RUN R -e "options(repos = c(CRAN = 'https://packagemanager.posit.co/cran/__linux
################################
# Final stage - runtime image
################################
FROM dhi.io/debian-base:trixie AS final
FROM dhi.io/debian-base:trixie-debian13-dev AS final

ARG BUILD_DATE
ARG VERSION
Expand Down
20 changes: 12 additions & 8 deletions docker/requirements/go.mod
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
module preload

go 1.25
go 1.26

require (
github.com/gorilla/mux v1.8.1
github.com/davidbyttow/govips/v2 v2.16.0
github.com/fatih/color v1.18.0
github.com/gin-gonic/gin v1.11.0
github.com/sirupsen/logrus v1.9.4
github.com/gocarina/gocsv v0.0.0-20240520201108-78e41c74b4b1
github.com/google/uuid v1.6.0
github.com/shopspring/decimal v1.4.0
gonum.org/v1/gonum v0.17.0
github.com/gorilla/mux v1.8.1
github.com/montanaflynn/stats v0.7.1
github.com/xuri/excelize/v2 v2.10.0
github.com/shopspring/decimal v1.4.0
github.com/sirupsen/logrus v1.9.4
github.com/spf13/cobra v1.10.2
github.com/fatih/color v1.18.0
github.com/gocarina/gocsv v0.0.0-20240520201108-78e41c74b4b1
github.com/tidwall/gjson v1.18.0
github.com/unidoc/unioffice/v2 v2.8.0
github.com/xuri/excelize/v2 v2.10.0
github.com/yuin/goldmark v1.7.16
gonum.org/v1/gonum v0.17.0
gopkg.in/yaml.v3 v3.0.1
)
66 changes: 45 additions & 21 deletions docker/requirements/nodejs.txt
Original file line number Diff line number Diff line change
@@ -1,34 +1,58 @@
# Node.js global packages
# One package per line for npm install -g
# Node.js packages
# One package per line: npm install -g <package>

lodash
# Core utilities
archiver
axios
moment
uuid
chalk
commander
express
fs-extra
csv-parser
json2csv
papaparse
archiver
yauzl
pdf-lib
crypto-js
date-fns
fs-extra
lodash
luxon
uuid
validator
crypto-js
zod

# Web scraping & parsing
cheerio

# Data processing
papaparse
mathjs
ml-matrix
simple-statistics
sharp

# File formats - Office documents
exceljs
xlsx
pptxgenjs
mammoth

# File formats - Other
js-yaml
marked
pdf-lib

# Images
jimp
sharp

# Compression
yauzl

# TypeScript (recommended local + global)
typescript
ts-node
xlsx
exceljs
luxon
zod
@types/node

# Web frameworks
express
handlebars
cheerio
marked

# UI libraries
jquery
jquery-ui-dist
three
p5
37 changes: 18 additions & 19 deletions docker/requirements/python-analysis.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
# Math, science, and analysis packages

scipy>=1.11
scikit-learn>=1.3
statsmodels>=0.14
sympy>=1.12
mpmath>=1.3
numba>=0.58
llvmlite>=0.41
numexpr>=2.8
networkx>=3.2
lifelines>=0.27
autograd>=1.6
autograd-gamma>=0.5
formulaic>=1.0
patsy>=0.5
kiwisolver>=1.4
joblib>=1.3
threadpoolctl>=3.2
# Math, science, and analysis
autograd-gamma>=0.5.0
autograd>=1.7.0
formulaic>=1.0.2
joblib>=1.4.2
kiwisolver>=1.4.7
lifelines>=0.30.0
llvmlite>=0.44.0
mpmath>=1.3.0
networkx>=3.4.2
numba>=0.61.0
numexpr>=2.10.2
patsy>=1.0.1
scikit-learn>=1.7.2
scipy>=1.16.1
statsmodels>=0.14.4
sympy>=1.13.3
threadpoolctl>=3.5.0
36 changes: 17 additions & 19 deletions docker/requirements/python-core.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
# Core data processing packages
# These are the most stable and form the foundation

cloudpickle>=3.0
lz4>=4.3.0
numpy>=1.24
pandas>=2.0
openpyxl>=3.1
xlrd>=2.0
XlsxWriter>=3.1
pyarrow>=14.0
tabulate>=0.9
six>=1.16
packaging>=23.0
python-dateutil>=2.8
pytz>=2024.1
tzdata>=2024.1
pendulum>=3.0
pydantic>=2.5
# Core data processing
cloudpickle>=3.1.0
lz4>=4.3.3
numpy>=2.2.1
pandas>=3.0.0
openpyxl>=3.1.5
xlrd>=2.0.1
XlsxWriter>=3.2.0
pyarrow>=18.1.0
tabulate>=0.9.0
six>=1.17.0
packaging>=24.2
python-dateutil>=2.9.0
pytz>=2025.1
tzdata>=2025.2
pendulum>=3.0.0
pydantic>=2.10.6
Loading
Loading