Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
·
<a href="https://camcore.au/status">CamCore Status</a>
·
<a href="https://camcore.au/help">Help Centre</a>
<a href="https://camcore.au/help">Help centre</a>
·
<a href="https://github.com/seerr-team/seerr">Upstream Seerr</a>
</p>
Expand All @@ -38,8 +38,8 @@ CamCore-specific changes are intentionally kept narrow so upstream fixes can con
| Container | `ghcr.io/team-camcore/seerr` |
| Email sender | `Requests | CamCore Media <help@camcore.au>` |
| Support | `https://camcore.au/support` |
| Help Centre | `https://camcore.au/help` |
| Service status | `https://camcore.au/status` |
| Help centre | `https://camcore.au/help` |
| CamCore Status | `https://camcore.au/status` |
| Time zone | `Australia/Melbourne` |

## CamCore customisation
Expand Down Expand Up @@ -100,7 +100,7 @@ The CamCore production image is built for:
linux/amd64
```

`latest` and `camcore` are only published after the CamCore validation job succeeds. The SHA tag provides an immutable version for rollback and troubleshooting.
All three tags are published only after the CamCore validation job succeeds. `latest` and `camcore` move with every build; production is pinned to the immutable `develop-<sha>` tag, which is also the rollback target. Production deployments are made under an approved Change in YouTrack.

## Updating the existing service

Expand All @@ -121,7 +121,7 @@ See [CamCore Deployment](./docs/camcore-deployment.md) for the full deployment,
```yaml
services:
seerr:
image: ghcr.io/team-camcore/seerr:latest
image: ghcr.io/team-camcore/seerr:develop-<sha>
init: true
container_name: seerr
restart: unless-stopped
Expand All @@ -140,7 +140,7 @@ services:
retries: 3
```

Replace the example host path with the exact config-folder path already used by the current container.
Replace `develop-<sha>` with the build being deployed, and the example host path with the exact config-folder path already used by the current container.

## Development

Expand Down
65 changes: 44 additions & 21 deletions docs/camcore-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
This fork publishes the CamCore-branded Cameron-Media Requests image to:

```text
ghcr.io/team-camcore/seerr:latest
ghcr.io/team-camcore/seerr
```

The CamCore production image is built for `linux/amd64`.

Production runs on Neptune and is **pinned to an immutable `develop-<sha>` tag**, not `latest`. Every production deployment needs an approved Change in YouTrack (OPS project) before it starts. The current running version, rollback image and host paths are recorded in the Knowledge Base article *CMA-A-20 Seerr and Media Requests*.

## Release model

A push to `develop` does not publish the CamCore image until the fork has passed its validation job. The CamCore workflow runs formatting, linting, type checking and unit tests before the AMD64 container is built and pushed.
Expand All @@ -20,7 +22,7 @@ ghcr.io/team-camcore/seerr:camcore
ghcr.io/team-camcore/seerr:develop-<sha>
```

The SHA tag provides an immutable rollback target for each successful build.
Deploy the `develop-<sha>` tag. It never changes, so the running version only moves when the Compose file is edited under a Change, and it is the rollback target for that build. `latest` and `camcore` move on every successful build to `develop`; do not run production on them.

## Preserve the existing configuration

Expand All @@ -36,11 +38,18 @@ Only the container image needs to change.

## Before updating

1. Back up the existing host folder that is mapped to `/app/config`.
2. Record the current image tag or digest.
3. Record the current port mapping, environment variables, network and reverse-proxy destination.
4. Confirm that the existing config folder is writable by UID and GID `1000:1000`.
5. Confirm the CamCore image workflow completed successfully for the version being deployed.
1. Confirm the Change for this deployment is approved and record its evidence there.
2. Confirm the CamCore image workflow completed successfully for the version being deployed.
3. Record the running image and its ID (the rollback point):

```sh
docker inspect seerr --format 'image={{.Config.Image}} id={{.Image}}'
```

4. Confirm the Compose file still describes the running container. Its `image:` line must match the `image=` value above. If it does not, stop and record the drift in the Change before going further.
5. Record the current port mapping, environment variables, network and reverse-proxy destination.
6. Back up the existing host folder that is mapped to `/app/config`.
7. Confirm that the existing config folder is writable by UID and GID `1000:1000`.

Example permission repair when required:

Expand All @@ -52,12 +61,12 @@ docker run --rm \

## Docker Compose

Keep the current service definition and change only the `image` value when moving between CamCore builds.
Keep the current service definition and change only the `image` value when moving between CamCore builds. Use the immutable tag of the build being deployed.

```yaml
services:
seerr:
image: ghcr.io/team-camcore/seerr:latest
image: ghcr.io/team-camcore/seerr:develop-<sha>
init: true
container_name: seerr
restart: unless-stopped
Expand All @@ -78,13 +87,27 @@ services:

Replace `/path/to/existing/seerr/config` with the exact host path already used by the current container.

Update the container with:
Keep a copy of the Compose file before editing it, then pull the image and recreate only the `seerr` service:

```sh
docker compose pull
docker compose up -d
docker pull ghcr.io/team-camcore/seerr:develop-<sha>
docker compose up -d --pull never seerr
```

`--pull never` makes Compose use the image already pulled, so the recreate cannot fetch a different build.

## Neptune (production)

The production container runs on Neptune as the Compose project `seerr`. The Compose file path, config folder path and current image are recorded in *CMA-A-20 Seerr and Media Requests*.

The `ghcr.io/team-camcore/seerr` package is private and, as at 20 November 2026, Neptune has no GHCR login, so `docker pull` on the host fails with `unauthorized`. Pull the image through Portainer instead (Neptune environment → Images, `ghcr.io` registry), then confirm its digest on the host:

```sh
docker image inspect ghcr.io/team-camcore/seerr:develop-<sha> --format '{{index .RepoDigests 0}}'
```

Then recreate with `docker compose up -d --pull never seerr` from the Compose project folder. Change the container through its Compose file, not through Portainer's recreate, so the file keeps describing what is running. The pull credential is tracked under OPS-1531.

## Synology Container Manager

When updating through Synology Container Manager:
Expand Down Expand Up @@ -154,19 +177,19 @@ After deployment, confirm:

## Rollback

Prefer an immutable CamCore SHA tag when rolling back the application image:
Roll back to the immutable tag recorded as the rollback point in the Change:

```text
ghcr.io/team-camcore/seerr:develop-<sha>
ghcr.io/team-camcore/seerr:develop-<previous sha>
```

To roll back without losing configuration:

1. Stop the current CamCore container.
2. Restore the previous known-good image tag or digest.
3. Keep the same `/app/config` volume mapping.
4. Recreate the container.
5. Verify requests, integrations and email notifications.
1. Set the Compose `image:` line back to the previous `develop-<sha>` tag. Keep the same `/app/config` volume mapping.
2. If that image is no longer on the host, pull it first (through Portainer on Neptune).
3. Recreate the container with `docker compose up -d --pull never seerr`.
4. Verify requests, integrations and email notifications.
5. Record the rollback in the Change.

If a database migration prevents an image-only rollback, stop the container and restore the config-folder backup taken before the update.

Expand All @@ -177,5 +200,5 @@ CamCore branding changes should remain separate from upstream functionality wher
1. merge upstream into the CamCore fork;
2. review conflicts in the CamCore branding and email template files carefully;
3. allow validation to complete before publishing/deploying the resulting image;
4. verify the live service after deployment;
5. record material changes in CamCore Operations.
4. deploy the resulting `develop-<sha>` image under a Change and verify the live service;
5. use a merge commit, not a squash, so later upstream syncs stay clean.
Loading