Skip to content

Commit

Permalink
Move bee to /app folder (iotaledger#1224)
Browse files Browse the repository at this point in the history
  • Loading branch information
grtlr authored Mar 9, 2022
1 parent e170a66 commit b431dc2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
20 changes: 12 additions & 8 deletions bee-node/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,21 @@ EXPOSE 8081/tcp
# Autopeering
EXPOSE 14626/udp

COPY --chown=nonroot:nonroot --from=build /bee/target/production/bee /
COPY --chown=nonroot:nonroot --from=build /bee/target/production/bee /app/bee

# Copy the profiles
COPY --from=build /bee/bee-node/config.chrysalis-comnet.toml .
COPY --from=build /bee/bee-node/config.chrysalis-devnet.toml .
COPY --from=build /bee/bee-node/config.chrysalis-mainnet.toml .
COPY --from=build /bee/bee-node/config.chrysalis-comnet.toml /app/.
COPY --from=build /bee/bee-node/config.chrysalis-devnet.toml /app/.
COPY --from=build /bee/bee-node/config.chrysalis-mainnet.toml /app/.

COPY --from=build /bee/bee-node/config.chrysalis-comnet.json .
COPY --from=build /bee/bee-node/config.chrysalis-devnet.json .
COPY --from=build /bee/bee-node/config.chrysalis-mainnet.json .
COPY --from=build /bee/bee-node/config.chrysalis-comnet.json /app/.
COPY --from=build /bee/bee-node/config.chrysalis-devnet.json /app/.
COPY --from=build /bee/bee-node/config.chrysalis-mainnet.json /app/.

USER nonroot

ENTRYPOINT ["/bee"]
WORKDIR /app

ENTRYPOINT ["/app/bee"]

CMD ["--config", "config.chrysalis-mainnet.json"]
7 changes: 4 additions & 3 deletions bee-node/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ services:
stop_grace_period: 5m
tty: true # for colored logs
network_mode: host
working_dir: /app
command: ["--config", "config.chrysalis-mainnet.json"]
volumes:
- ../config.chrysalis-mainnet.json:/config.json
- ../storage:/storage
- ../snapshots:/snapshots
- ../storage:/app/storage
- ../snapshots:/app/snapshots
6 changes: 3 additions & 3 deletions documentation/docs/getting_started/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ We recommend that you run on host network to improve performance. Otherwise, yo

```sh
docker run \
-v $(pwd)/config.json:/config.json:ro \
-v $(pwd)/storage:/storage \
-v $(pwd)/snapshots:/snapshots \
-v $(pwd)/config.json:/app/config.json:ro \
-v $(pwd)/storage:/app/storage \
-v $(pwd)/snapshots:/app/snapshots \
--name bee\
--net=host \
--ulimit nofile=8192:8192 \
Expand Down

0 comments on commit b431dc2

Please sign in to comment.