Skip to content

Commit

Permalink
docker: Expose all ports in Dockerfile, add back localnet.sh (solana-…
Browse files Browse the repository at this point in the history
…labs#16401)

* docker: Expose all ports in Dockerfile, add back localnet.sh

* Add documentation for where to find containers

* Obliterate script
  • Loading branch information
joncinque authored Apr 11, 2021
1 parent 1d2cae4 commit 448d5be
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docs/src/running-validator/validator-reqs.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@ especially for the case of running staked validators.

Running validator for live clusters (including mainnet-beta) inside Docker is
not recommended and generally not supported. This is due to concerns of general
docker's containerzation overhead and resultant performance degradation unless
Docker's containerzation overhead and resultant performance degradation unless
specially configured.

We use docker only for development purpose.
We use Docker only for development purposes. Docker Hub contains images for all
releases at [solanalabs/solana](https://hub.docker.com/r/solanalabs/solana).

## Software

Expand Down
30 changes: 29 additions & 1 deletion sdk/docker-solana/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,35 @@
FROM debian:buster

# JSON RPC port
# 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

RUN apt update && \
apt-get install -y bzip2 libssl-dev && \
Expand Down

0 comments on commit 448d5be

Please sign in to comment.