Skip to content

Commit eabcc1f

Browse files
committed
Bake conflict mode default into image and simplify compose usage
1 parent 4a5a0eb commit eabcc1f

5 files changed

Lines changed: 13 additions & 17 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ docker build -t capo-to-keys:dev -f dockerfile .
3737
docker run --rm -it \
3838
--name capo-to-keys \
3939
-p 4506:4506 \
40-
-e OUTPUT_CONFLICT_MODE=suffix \
4140
-v "$(pwd)/appdata/config/capotokeys:/data" \
4241
capo-to-keys:dev
4342
```
@@ -56,7 +55,7 @@ docker compose up -d
5655

5756
Default image reference in that file:
5857

59-
- `ghcr.io/reprodev/capo2keys_private:latest`
58+
- `ghcr.io/reprodev/capotokeys:v1.0`
6059

6160
If the package is private, authenticate first:
6261

@@ -170,3 +169,6 @@ GHCR setup details: `docs/GHCR_SETUP.md`
170169

171170
MIT — see `LICENSE`.
172171

172+
173+
174+

docker-compose.ghcr.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
services:
22
capotokeys:
3-
image: ghcr.io/reprodev/capo2keys_private:latest
3+
image: ghcr.io/reprodev/capotokeys:v1.0
44
container_name: capotokeys
55
ports:
66
- "4506:4506"
7-
environment:
8-
OUTPUT_CONFLICT_MODE: suffix
9-
WEB_HOST: 0.0.0.0
10-
WEB_PORT: 4506
117
volumes:
128
- ./appdata/config/capotokeys:/data
139
restart: unless-stopped

docker-compose.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
container_name: capotokeys
55
ports:
66
- "4506:4506"
7-
environment:
8-
OUTPUT_CONFLICT_MODE: suffix
9-
WEB_HOST: 0.0.0.0
10-
WEB_PORT: 4506
117
volumes:
128
- ./appdata/config/capotokeys:/data
139
restart: unless-stopped

dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:bookworm-slim
1+
FROM debian:bookworm-slim
22

33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
python3 \
@@ -22,7 +22,8 @@ COPY templates/ /app/templates/
2222
# All generated files are written to: /data/outputs
2323
ENV DATA_DIR=/data \
2424
WEB_HOST=0.0.0.0 \
25-
WEB_PORT=4506
25+
WEB_PORT=4506 \
26+
OUTPUT_CONFLICT_MODE=suffix
2627

2728
# Declare persistent volume for outputs
2829
VOLUME ["/data"]

docs/GHCR_SETUP.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Tags produced include:
3232
Image path format:
3333

3434
- `ghcr.io/<owner>/<repo>:<tag>`
35-
- For this repo: `ghcr.io/reprodev/capo2keys_private:<tag>`
35+
- For this repo: `ghcr.io/reprodev/capotokeys:<tag>`
3636

3737
## 3) Make Image Pullable From Compose
3838

@@ -57,9 +57,10 @@ docker compose -f docker-compose.ghcr.yml up -d
5757

5858
For non-release testing from `dev`, use:
5959

60-
- `ghcr.io/reprodev/capo2keys_private:dev`
60+
- `ghcr.io/reprodev/capotokeys:dev`
6161

6262
For stable release usage, prefer:
6363

64-
- `ghcr.io/reprodev/capo2keys_private:latest`
65-
- or explicit version tags like `ghcr.io/reprodev/capo2keys_private:v1.0.0`
64+
- `ghcr.io/reprodev/capotokeys:latest`
65+
- or explicit version tags like `ghcr.io/reprodev/capotokeys:v1.0.0`
66+

0 commit comments

Comments
 (0)