diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d610960..630bad8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,19 +3,18 @@ stages: variables: DOCKER_IMAGE: $DOCKER_REGISTRY/cwshed:latest + DOCKER_HOST: unix:///var/run/docker.sock build: stage: build - image: docker:28.5 - services: - - docker:28.5-dind + image: docker:29.6.1-cli script: # Docker Registry - echo "$DOCKER_PASSWORD" | docker login $DOCKER_REGISTRY -u "$DOCKER_USERNAME" --password-stdin - # Docker- + # Docker build over the mounted host socket - docker build -t $DOCKER_IMAGE . - # Docker- + # Push the resulting image - docker push $DOCKER_IMAGE only: - main diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..27a76ea --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,16 @@ +# AGENTS.md + +## Scope +- This repository currently contains a single GitLab CI pipeline in [`.gitlab-ci.yml`](./.gitlab-ci.yml). + +## Working Rules +- Keep changes minimal and focused on the CI file unless new project files are intentionally being added. +- Prefer the host Docker socket path `unix:///var/run/docker.sock` for image build/push jobs instead of `docker:dind`. +- If the runner setup changes, update the CI file and this document together. + +## Validation +- For YAML-only changes, prefer a targeted syntax check and a diff review. +- Do not add unnecessary local build artifacts or temporary files to the repository. + +## Notes +- The GitLab runner must expose `/var/run/docker.sock` inside the job container for the pipeline to work. diff --git a/MEMORY.md b/MEMORY.md new file mode 100644 index 0000000..7730636 --- /dev/null +++ b/MEMORY.md @@ -0,0 +1,5 @@ +# MEMORY + +- The repository is currently CI-only and centered around `.gitlab-ci.yml`. +- Docker builds are expected to run through the mounted host socket at `unix:///var/run/docker.sock`. +- Current CI image: `docker:29.6.1-cli`. diff --git a/structure_and_data.md b/structure_and_data.md new file mode 100644 index 0000000..bdf9fd3 --- /dev/null +++ b/structure_and_data.md @@ -0,0 +1,13 @@ +# Structure and Data + +## Repository Layout +- [`.gitlab-ci.yml`](./.gitlab-ci.yml): single-stage GitLab pipeline that builds and pushes the `cwshed` Docker image. +- [`AGENTS.md`](./AGENTS.md): repo-specific instructions for future coding agents. + +## Runtime / Deployment +- GitLab CI runs the build job. +- The job now talks to Docker through `unix:///var/run/docker.sock` instead of a `docker:dind` service. +- The GitLab runner must mount the host socket into the job container. + +## Change Log +- 2026-06-27: updated the Docker CI image to `docker:29.6.1-cli` and switched the pipeline from TCP dind to the Unix socket path.