Skip to content

Commit

Permalink
Run in CometMock container
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Sep 18, 2023
1 parent 94cd182 commit d4be15f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions Dockerfile-test
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# import simd from ibc-go
FROM ghcr.io/cosmos/simapp:v0.47 AS simapp-builder

FROM golang:1.20-alpine as cometmock-builder

Expand All @@ -19,11 +20,7 @@ ADD . /CometMock
WORKDIR /CometMock
RUN go build -o /usr/local/bin/cometmock ./cometmock

FROM ghcr.io/cosmos/simapp:v0.47
RUN apk update
RUN apk add --no-cache which iputils procps-ng tmux net-tools htop jq gcompat

COPY --from=cometmock-builder /usr/local/bin/cometmock /usr/local/bin/cometmock

COPY . /CometMock

COPY --from=simapp-builder /usr/bin/simd /usr/local/bin/simd
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ test-docker:

# Start a container and execute the test command inside
docker rm cometmock-test-instance || true
docker run --name cometmock-test-instance --workdir /CometMock cometmock-test simd --help
# docker run --name cometmock-test-instance --workdir /CometMock cometmock-test go test -timeout 600s ./e2e-tests -test.v
docker run --name cometmock-test-instance --workdir /CometMock cometmock-test go test -timeout 600s ./e2e-tests -test.v

0 comments on commit d4be15f

Please sign in to comment.