github.com/evdatsion/aphelion-dpos-bft@v0.32.1/test/docker/Dockerfile (about)

     1  FROM golang:1.12
     2  
     3  # Add testing deps for curl
     4  RUN echo 'deb http://httpredir.debian.org/debian testing main non-free contrib' >> /etc/apt/sources.list
     5  
     6  # Grab deps (jq, hexdump, xxd, killall)
     7  RUN apt-get update && \
     8    apt-get install -y --no-install-recommends \
     9    jq bsdmainutils vim-common psmisc netcat curl
    10  
    11  # Setup tendermint repo
    12  ENV REPO $GOPATH/src/github.com/evdatsion/aphelion-dpos-bft
    13  ENV GOBIN $GOPATH/bin
    14  WORKDIR $REPO
    15  
    16  # Copy in the code
    17  # TODO: rewrite to only copy Makefile & other files?
    18  COPY . $REPO
    19  
    20  # Install the vendored dependencies
    21  # docker caching prevents reinstall on code change!
    22  RUN make get_tools
    23  
    24  # install ABCI CLI
    25  RUN make install_abci
    26  
    27  # install Tendermint
    28  RUN make install
    29  
    30  RUN tendermint testnet \
    31          --config $REPO/test/docker/config-template.toml \
    32          --node-dir-prefix="mach" \
    33          --v=4 \
    34          --populate-persistent-peers=false \
    35          --o=$REPO/test/p2p/data
    36  
    37  # Now copy in the code
    38  # NOTE: this will overwrite whatever is in vendor/
    39  COPY . $REPO
    40  
    41  # expose the volume for debugging
    42  VOLUME $REPO
    43  
    44  EXPOSE 26656
    45  EXPOSE 26657