Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: avoid second axon init in docker-compose #1403

Merged
merged 2 commits into from
Sep 6, 2023
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
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
KaoImin marked this conversation as resolved.
Show resolved Hide resolved
/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