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
6 changes: 3 additions & 3 deletions packages/loopover-miner/docker-compose.miner.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker-compose for gittensory-miner (AMS) fleet mode (#5177).
# docker-compose for loopover-miner (AMS) fleet mode (#5177).
#
# Runs the miner as a long-lived CLI worker instead of a hand-assembled `docker run`. Build context is the
# MONOREPO ROOT (../..) because the Dockerfile needs the full workspace on disk before `npm ci` — see the
Expand All @@ -24,8 +24,8 @@ services:
build:
context: ../..
dockerfile: packages/loopover-miner/Dockerfile
image: gittensory-miner:latest
# ENTRYPOINT is `gittensory-miner`; `run` is the continuous fleet-worker loop.
image: loopover-miner:latest
# ENTRYPOINT is `loopover-miner`; `run` is the continuous fleet-worker loop.
command: ["run"]
restart: unless-stopped
# Operator-supplied secrets/config (GITHUB_TOKEN, optional provider keys). Copy the .example, fill it in,
Expand Down
7 changes: 7 additions & 0 deletions test/unit/miner-docker-compose.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ describe("docker-compose.miner.yml (#5177)", () => {
expect(miner.command).toContain("run");
});

it("tags the built image with the post-rename name (loopover-miner:latest)", () => {
// Regression for #5935: the image tag must match the Dockerfile's `loopover-miner` ENTRYPOINT and the name
// every other fleet-mode doc uses (DEPLOYMENT.md, k8s/miner-deployment.yaml), not the pre-rename
// `gittensory-miner:latest`, so `docker images` cross-references from those docs actually resolve.
expect(compose.services.miner.image).toBe("loopover-miner:latest");
});

it("persists state on a named volume and restarts unless stopped", () => {
const miner = compose.services.miner;
expect(miner.restart).toBe("unless-stopped");
Expand Down