Skip to content

Commit

Permalink
solana-test-validator: Expose ports explicitly
Browse files Browse the repository at this point in the history
Docker on macOS doesn't support the `--net=host` option, so we have
to expose and map all validator ports explicitly.
  • Loading branch information
vadorovsky committed May 30, 2023
1 parent d945634 commit 8129156
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions solana-test-validator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,39 @@ ARG BASE_IMAGE=ghcr.io/lightprotocol/devcontainer:main

FROM ${BASE_IMAGE}

# RPC JSON
EXPOSE 8899/tcp
# RPC pubsub
EXPOSE 8900/tcp
# entrypoint
EXPOSE 8001/tcp
# (future) bank service
EXPOSE 8901/tcp
# bank service
EXPOSE 8902/tcp
# faucet
EXPOSE 9900/tcp
# tvu
EXPOSE 8000/udp
# gossip
EXPOSE 8001/udp
# tvu_forwards
EXPOSE 8002/udp
# tpu
EXPOSE 8003/udp
# tpu_forwards
EXPOSE 8004/udp
# retransmit
EXPOSE 8005/udp
# repair
EXPOSE 8006/udp
# serve_repair
EXPOSE 8007/udp
# broadcast
EXPOSE 8008/udp
# tpu_vote
EXPOSE 8009/udp

COPY entrypoint.sh /home/node/.local/light-protocol/bin/entrypoint.sh

ENTRYPOINT ["/home/node/.local/light-protocol/bin/entrypoint.sh"]

0 comments on commit 8129156

Please sign in to comment.