mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
* Make RPC bind to localhost by default * Add CHANGELOG_PENDING entry * Allow testnet command to override RPC listen address * Update localnet test to bind RPC to 0.0.0.0 * Update p2p test to bind RPC to 0.0.0.0 * Remove rpc-laddr parameter * Update localnet to use config template with RPC listen address override * Use config template override method for RPC listen address * Build config template into localnode image * Build localnode image locally before starting localnet * Move testnet config overrides into templates * Revert deletion of config overrides * Remove extraneous config parameter overrides
46 lines
1.0 KiB
Docker
46 lines
1.0 KiB
Docker
FROM golang:1.12
|
|
|
|
# Add testing deps for curl
|
|
RUN echo 'deb http://httpredir.debian.org/debian testing main non-free contrib' >> /etc/apt/sources.list
|
|
|
|
# Grab deps (jq, hexdump, xxd, killall)
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
jq bsdmainutils vim-common psmisc netcat curl
|
|
|
|
# Setup tendermint repo
|
|
ENV REPO $GOPATH/src/github.com/tendermint/tendermint
|
|
ENV GOBIN $GOPATH/bin
|
|
WORKDIR $REPO
|
|
|
|
# Copy in the code
|
|
# TODO: rewrite to only copy Makefile & other files?
|
|
COPY . $REPO
|
|
|
|
# Install the vendored dependencies
|
|
# docker caching prevents reinstall on code change!
|
|
RUN make get_tools
|
|
|
|
# install ABCI CLI
|
|
RUN make install_abci
|
|
|
|
# install Tendermint
|
|
RUN make install
|
|
|
|
RUN tendermint testnet \
|
|
--config $REPO/test/docker/config-template.toml \
|
|
--node-dir-prefix="mach" \
|
|
--v=4 \
|
|
--populate-persistent-peers=false \
|
|
--o=$REPO/test/p2p/data
|
|
|
|
# Now copy in the code
|
|
# NOTE: this will overwrite whatever is in vendor/
|
|
COPY . $REPO
|
|
|
|
# expose the volume for debugging
|
|
VOLUME $REPO
|
|
|
|
EXPOSE 26656
|
|
EXPOSE 26657
|