Skip to content

Commit

Permalink
chore: avoid second axon init in docker-compose (#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flouse committed Sep 6, 2023
1 parent 7f89123 commit 283195b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ RUN set -eux; \

RUN cd /build && cargo build --release

# TODO: update the parent image
FROM debian:bookworm-20211011-slim

FROM debian:bookworm-20230612-slim
WORKDIR /app

RUN set -eux; \
Expand Down
11 changes: 3 additions & 8 deletions devtools/chain/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,16 @@ version: '3.8'

services:
axon:
# TODO: update this image to ghcr.io/axonweb3/axon:dev
image: ghcr.io/flouse/axon:dev
image: ghcr.io/axonweb3/axon:dev
ports:
- 8000:8000
- 127.0.0.1:8100:8100
volumes:
- ./config.toml:/app/config.toml
- ./default.db-options:/app/default.db-options
- ./specs/single_node/:/app/single_node_spec/
- ./:/app/devtools/chain
networks:
- axon-net
restart: unless-stopped
command: |
/app/axon init --config=/app/config.toml --chain-spec=/app/single_node_spec/chain-spec.toml
/app/axon run --config=/app/config.toml
# CMD: see https://github.com/axonweb3/axon/blob/b89083/devtools/docker/docker-entrypoint.sh

explorer:
container_name: blockscan
Expand Down

0 comments on commit 283195b

Please sign in to comment.