Repository navigation
Description
Motivation
The project root currently contains a large number of Docker-related and build-related files: four docker-compose*.yml files, the Dockerfile, and three PowerShell build scripts (build.ps1, build-steps.ps1, build-package.ps1). This clutters the root directory alongside the application's core files (composer.json, package.json, spark, etc.) and makes it harder to see the project's actual structure at a glance.
This issue proposes moving these files into dedicated subdirectories — for example tools/Docker/ for the Docker-related files and tools/Build/ for the PowerShell scripts — while keeping everything fully functional.
Why this needs care
None of these files are hard-required to live in the root by the underlying tools, but several of them rely on root placement implicitly today, and moving them naively will break local development, deployment, or the build scripts:
docker compose upwith no-fflag only auto-discovers adocker-compose.ymlin the current working directory.INSTALL.mdcurrently documents this bare command, so movingdocker-compose.ymlrequires either updating the documented command to pass an explicit-f tools/Docker/docker-compose.yml, or providing a wrapper.include:directives inside the compose files (docker-compose.ymlincludesdocker/docker-mysql.yml;docker-compose.nginx.ymlincludesdocker-compose.phpmyadmin.yml, which includesdocker-compose.dev.yml) use paths relative to the including file's location. These will need to be updated to reflect the files' new locations.- Bind mounts and build context in
docker-compose.dev.yml(build.context: ., volume.:/app) and indocker-compose.yml(source: ./.env) are resolved relative to the compose file's own directory, not the caller's working directory. After a move, these need to point back at the repository root (e.g.../..), since the application still needs the full repo as the build context and the real root.envfile. docker buildwith no-fflag looks for./Dockerfileinside the build context. If theDockerfilemoves, thedockerfile:key indocker-compose.dev.yml(or thedocker build -fflag) must be updated explicitly. The build context itself must remain the repository root regardless, since the Dockerfile doesCOPY . /app.- PowerShell build scripts currently assume they're invoked with the repository root as the working directory (per their own header comments), and rely on that for relative
composer install/npm install/npm runcommands as well as a../env/<folder-name>/.envrestore step that depends onGet-Locationbeing the repo root. If these scripts move into a subfolder, they should explicitlySet-Locationback to the repository root (e.g. via$PSScriptRoot) at the top of the script, rather than relying on the caller's current directory.
Proposed approach
- Move the docker-compose files,
Dockerfile, and the existingdocker/subfolder into a consolidatedtools/Docker/directory, adjusting allinclude:paths,context:/dockerfile:keys, and bind-mount sources accordingly so they resolve back to the repository root. - Move
build.ps1,build-steps.ps1, andbuild-package.ps1intotools/Build/, adding an explicit working-directory change back to the repository root at the top of each script so they still work regardless of where they're invoked from. - Update
INSTALL.md,BUILD.md, and any other documentation referencingdocker-compose up,docker build, or the build scripts to reflect the new paths. - Verify end-to-end that
docker compose -f tools/Docker/docker-compose.yml up, the dev/nginx/phpmyadmin compose variants, and each PowerShell script still work correctly from a clean checkout before merging.
The end goal is a cleaner project root with no change in behavior for anyone deploying via Docker or running the build scripts.
Activity
fix: update distribution-archive glob to relocated tools/Docker path (#…
fix: point Build Docker Image job at relocated tools/Docker/Dockerfile (
fix: correct indentation of Build Docker Image step in build-release.…
fix(docker): resolve nginx/build script paths from their own location (…