github.com/line/ostracon@v1.0.10-0.20230328032236-7f20145f065d/test/docker/Dockerfile (about)

     1  FROM golang:1.18
     2  
     3  # Grab deps (jq, hexdump, xxd, killall)
     4  RUN apt-get update && \
     5    apt-get install -y --no-install-recommends \
     6    jq bsdmainutils vim-common psmisc netcat curl
     7  
     8  # Setup ostracon repo
     9  ENV REPO $GOPATH/src/github.com/line/ostracon
    10  ENV GOBIN $GOPATH/bin
    11  WORKDIR $REPO
    12  
    13  # Copy in the code
    14  # TODO: rewrite to only copy Makefile & other files?
    15  COPY . $REPO
    16  
    17  # Install the vendored dependencies
    18  # docker caching prevents reinstall on code change!
    19  # XXX Should remove "make tools": https://github.com/line/ostracon/commit/c6e0d20d4bf062921fcc1eb5b2399447a7d2226e#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
    20  #RUN make tools
    21  
    22  # install ABCI CLI
    23  RUN make install_abci
    24  
    25  # install ostracon
    26  RUN make install
    27  
    28  RUN ostracon testnet \
    29    --config $REPO/test/docker/config-template.toml \
    30    --node-dir-prefix="mach" \
    31    --v=4 \
    32    --populate-persistent-peers=false \
    33    --o=$REPO/test/p2p/data
    34  
    35  # Now copy in the code
    36  # NOTE: this will overwrite whatever is in vendor/
    37  COPY . $REPO
    38  
    39  # expose the volume for debugging
    40  VOLUME $REPO
    41  
    42  EXPOSE 26656
    43  EXPOSE 26657