Skip to content

Commit a68ecf4

Browse files
Merge pull request #154 from anyproto/improve-any-sync-tools
Improve any sync tools
2 parents 515ae4a + 130e0da commit a68ecf4

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Dockerfile-generateconfig-anyconf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# syntax=docker/dockerfile:1
2-
FROM golang:1.23-alpine
2+
FROM ghcr.io/anyproto/any-sync-tools
33
RUN apk add --no-cache bash yq
4-
RUN go install github.com/anyproto/any-sync-tools/anyconf@latest
54
WORKDIR /code
65
ENTRYPOINT ["bash", "/code/docker-generateconfig/anyconf.sh"]

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,11 @@ services:
239239
- any-sync-node-2
240240
- any-sync-node-3
241241
volumes:
242-
- "${STORAGE_DIR}:/code/storage:Z"
242+
- "${STORAGE_DIR}/docker-generateconfig/nodes.yml:/app/nodes.yml:Z"
243243
command: ["tail", "-f", "/dev/null"]
244244
stop_signal: SIGKILL
245245
tty: true
246246
healthcheck:
247-
test: any-sync-netcheck -c /code/storage/docker-generateconfig/nodes.yml 2>&1| grep -E 'netcheck\s+success'
247+
test: any-sync-netcheck -c nodes.yml 2>&1| grep -E 'netcheck\s+success'
248248
interval: 10s
249249
start_period: 5s

0 commit comments

Comments
 (0)