mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-04 07:18:50 +00:00
Since the layout move /engine/ is the engine's source, but tools/docker/Dockerfile.src.dockerignore still carried the old /engine/ line (the built engine of setup.py), so the build context had no engine/ and `cmake -S engine` could not run. The list now names the folders .gitignore names for the built engines (/terminal/engine/, /terminal/engine-sycl/, /terminal/engine-cuda12/, /engine-sycl/, /engine-cuda12/) and the vendored llama.cpp at its new place (engine/third_party/llama.cpp, terminal/third_party/llama.cpp). There is no Dockerfile at the repository root, so the commands in docs/DOCKER.md and in the Dockerfile.src header now name it with -f tools/docker/Dockerfile.src (the ignore list next to it is only read then) and pass STRATA_COMMIT, which the Terminal stage needs because .git is not copied. The CUDA 12 example uses nvidia/cuda:12.9.2-devel-ubuntu24.04 (the tag exists) and no longer says BUILD_VISION=0: the picture reader is built for the same architectures as the engine, sm_60 / 61 / 70 included, and package_engine.py checks vision_archs against the package's archs; BUILD_VISION=0 stays documented as the opt-out. terminal/tests/terminal/test_docker_src_context.py reads the ignore list the way docker does and checks that no tracked file under engine/, tools/ or terminal/ is cut out, that the engine source is in, that the built-engine folders are out, and that every documented source build names the Dockerfile with -f. It fails on the old files and passes now. Based on the report and change of #6064 by rafal-prasal (credited in the release notes).
39 lines
992 B
Docker
39 lines
992 B
Docker
# Keep the image to the source only: everything generated is re-created on
|
|
# first start (inside the container or on the /terminal/data volume).
|
|
.git
|
|
|
|
# local Python environment (rebuilt in the image)
|
|
.venv/
|
|
__pycache__/
|
|
*.pyc
|
|
.pytest_cache/
|
|
|
|
# terminal/setup.py outputs and downloads (the built engine, packs, models, logs). Not /engine/: that is the engine's source
|
|
# (the built one goes to /terminal/engine/, .gitignore says the same), and a build without it cannot compile.
|
|
/terminal/engine/
|
|
/terminal/engine-sycl/
|
|
/terminal/engine-cuda12/
|
|
/engine-sycl/
|
|
/engine-cuda12/
|
|
/build/
|
|
/build*/
|
|
/dist/
|
|
/packs/
|
|
/mtp/
|
|
/models/
|
|
/Strata-data/
|
|
# the folders tools/docker/entrypoint.sh creates in a mounted terminal/data/ (a link to llama.cpp, the models, the keys): never part of a build (#3644)
|
|
/data/install/
|
|
/data/state/
|
|
/data/home/
|
|
/data/Strata-data/
|
|
engine/third_party/llama.cpp/
|
|
terminal/third_party/llama.cpp/
|
|
engine/third_party/*.zip
|
|
*.done
|
|
*.log
|
|
strata-*.json
|
|
strata-*.txt
|
|
run-*.sh
|
|
run-*.bat
|