You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Status
Ready for review
## What's changed?
- Bump docker postgres to v17
- Add a healthcheck to the db container and ensure the api depends on
that
- Move the bundle and node_moduels to volumes for easier installs,
automate install & db migrations via the entrypoints
- Add an example override and update docs for dev containers
- Force copilot to be installed to prevent corrupted state resulting in
error: `Cannot find module
'/root/.vscode-server/extensions/github.copilot-chat-0.33.1/dist/tikTokenizerWorker.js'`
## Steps to perform after deploying to production
- Run `docker compose down -v --remove-orphans` to remove the volumes
(especially postgres)
- Run `docker compose build` to upgrade postgres
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Upgrade to Postgres 17 with healthchecks, add persistent
bundle/node_modules volumes with automated installs via new entrypoints,
and enhance dev-container config and docs.
>
> - **Docker/Compose**:
> - Upgrade database image to `postgres:17` and client to
`postgresql-client-17`.
> - Add DB `healthcheck` and make `api` depend on healthy DB.
> - Mount `bundle-data` and `node_modules` as named volumes; add tmpfs
for `tmp/pids` and `tmp/cache`.
> - **Entrypoints**:
> - New `bin/docker-entrypoint.sh` and `bin/docker-debug-entrypoint.sh`
run in strict mode, auto-run `bundle install`/`yarn install`, prepare
DB, and start Rails (debug variant uses `rdbg`).
> - **Dev Container**:
> - Add GitHub Copilot extensions in `.devcontainer/devcontainer.json`.
> - Provide `.devcontainer/docker-compose.yml` override and
`docker-compose.override.yml.example` for using the `dev-container`
target.
> - **Docs**:
> - Update `README.md` with dev-container usage and gem install
guidance.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
565e417. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Adrian Lansdown <adrian.lansdown@raspberrypi.org>
0 commit comments