test/docker: install abci apps first

This commit is contained in:
Ethan Buchman
2017-03-05 14:59:02 -05:00
parent 2037d2631a
commit 749df0536f
2 changed files with 9 additions and 4 deletions

View File

@@ -6,10 +6,16 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends \
jq bsdmainutils vim-common psmisc netcat
# Setup tendermint repo with vendored dependencies
# but without code - docker caching prevents reinstall on code change!
# Setup tendermint repo
ENV REPO $GOPATH/src/github.com/tendermint/tendermint
WORKDIR $REPO
# Install the apps
ADD scripts/install_abci_apps.sh install_abci_apps.sh
RUN bash install_abci_apps.sh
# Install the vendored dependencies before copying code
# docker caching prevents reinstall on code change!
ADD glide.yaml glide.yaml
ADD glide.lock glide.lock
ADD Makefile Makefile
@@ -19,7 +25,6 @@ RUN make get_vendor_deps
COPY . $REPO
RUN go install ./cmd/tendermint
RUN bash scripts/install_abci_apps.sh
# expose the volume for debugging
VOLUME $REPO