From 6d4ac08d029bb0e7a22aec8a7c2cf266c439e8b8 Mon Sep 17 00:00:00 2001 From: Nyan404 Date: Sat, 27 Jun 2026 22:08:04 +0300 Subject: [PATCH] CI FIX --- AGENTS.md | 6 ++++-- MEMORY.md | 4 +++- structure_and_data.md | 7 +++++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 27a76ea..fab5847 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,7 +1,8 @@ # AGENTS.md ## 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 - 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. ## 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. ## Notes diff --git a/MEMORY.md b/MEMORY.md index 7730636..c36d4af 100644 --- a/MEMORY.md +++ b/MEMORY.md @@ -1,5 +1,7 @@ # 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`. - 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. diff --git a/structure_and_data.md b/structure_and_data.md index bdf9fd3..bf74d2f 100644 --- a/structure_and_data.md +++ b/structure_and_data.md @@ -2,12 +2,19 @@ ## Repository Layout - [`.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. +- [`MEMORY.md`](./MEMORY.md): durable notes about the current CI/runtime decision. ## 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. +- 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 - 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`.