This commit is contained in:
nyan404 committed 2026-06-27 22:08:04 +03:00
1 parent 4d014a8b20
commit 6d4ac08d02
3 files changed
+14 -3

No files matched your search

+4 -2
View File
@@ -1,7 +1,8 @@
# AGENTS.md # AGENTS.md
## Scope ## Scope
- This repository currently contains a single GitLab CI pipeline in [`.gitlab-ci.yml`](./.gitlab-ci.yml). - This repository packages a static web app with Nginx and a GitLab CI pipeline.
- Key files: [`.gitlab-ci.yml`](./.gitlab-ci.yml), [`Dockerfile`](./Dockerfile), [`nginx.conf`](./nginx.conf), and [`web/`](./web).
## Working Rules ## Working Rules
- Keep changes minimal and focused on the CI file unless new project files are intentionally being added. - Keep changes minimal and focused on the CI file unless new project files are intentionally being added.
@@ -9,7 +10,8 @@
- If the runner setup changes, update the CI file and this document together. - If the runner setup changes, update the CI file and this document together.
## Validation ## Validation
- For YAML-only changes, prefer a targeted syntax check and a diff review. - For CI-only changes, prefer a targeted YAML parse and a diff review.
- For image/runtime changes, check the `Dockerfile` and Nginx config together with the CI job.
- Do not add unnecessary local build artifacts or temporary files to the repository. - Do not add unnecessary local build artifacts or temporary files to the repository.
## Notes ## Notes
+3 -1
View File
@@ -1,5 +1,7 @@
# MEMORY # MEMORY
- The repository is currently CI-only and centered around `.gitlab-ci.yml`. - The repository packages a static site under `web/` with an Nginx-based `Dockerfile`.
- The GitLab pipeline builds and pushes `cwshed:latest` from `.gitlab-ci.yml`.
- Docker builds are expected to run through the mounted host socket at `unix:///var/run/docker.sock`. - 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`. - Current CI image: `docker:29.6.1-cli`.
- The runner host at `root@10.3.1.168` is `docker-host-1`; its GitLab Runner is `ryzen-runner-dind` and needs `/var/run/docker.sock` bind-mounted for this repo's CI job.
+7
View File
@@ -2,12 +2,19 @@
## Repository Layout ## Repository Layout
- [`.gitlab-ci.yml`](./.gitlab-ci.yml): single-stage GitLab pipeline that builds and pushes the `cwshed` Docker image. - [`.gitlab-ci.yml`](./.gitlab-ci.yml): single-stage GitLab pipeline that builds and pushes the `cwshed` Docker image.
- [`Dockerfile`](./Dockerfile): Nginx-based runtime image that copies the static site into `/usr/share/nginx/html`.
- [`nginx.conf`](./nginx.conf): custom Nginx config for serving the static app.
- [`web/`](./web): static frontend assets shipped into the container.
- [`AGENTS.md`](./AGENTS.md): repo-specific instructions for future coding agents. - [`AGENTS.md`](./AGENTS.md): repo-specific instructions for future coding agents.
- [`MEMORY.md`](./MEMORY.md): durable notes about the current CI/runtime decision.
## Runtime / Deployment ## Runtime / Deployment
- GitLab CI runs the build job. - 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 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. - The GitLab runner must mount the host socket into the job container.
- The resulting image is `cwshed:latest` in `$DOCKER_REGISTRY`.
- Remote runner host: `root@10.3.1.168` (`docker-host-1`), GitLab Runner `ryzen-runner-dind`, Docker executor, with `/var/run/docker.sock` bind-mounted into the job container.
## Change Log ## 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. - 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.
- 2026-06-27: updated the GitLab Runner config on `docker-host-1` to mount `/var/run/docker.sock`, then restarted `gitlab-runner`.