Skip to content

Commit

Permalink
Use docker image and add make targets
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Jul 12, 2024
1 parent 8f1648a commit 46e0eac
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 135 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ install-zetae2e: go.sum
@go install -mod=readonly $(BUILD_FLAGS) ./cmd/zetae2e
.PHONY: install-zetae2e

solana:
@echo "Building solana docker image"
$(DOCKER) build -t solana-local -f contrib/localnet/solana/Dockerfile contrib/localnet/solana/

start-e2e-test: zetanode
@echo "--> Starting e2e test"
cd contrib/localnet/ && $(DOCKER) compose up -d
Expand All @@ -254,6 +258,11 @@ start-stress-test: zetanode
@echo "--> Starting stress test"
cd contrib/localnet/ && $(DOCKER) compose --profile stress -f docker-compose.yml up -d

start-solana-test: zetanode solana
@echo "--> Starting solana test"
export E2E_ARGS="--test-solana" && \
cd contrib/localnet/ && $(DOCKER) compose --profile solana -f docker-compose.yml up -d

###############################################################################
### Upgrade Tests ###
###############################################################################
Expand Down
4 changes: 3 additions & 1 deletion contrib/localnet/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,16 @@ services:
image: solana-local:latest
container_name: solana
hostname: solana
profiles:
- solana
- all
ports:
- "8899:8899"
networks:
mynetwork:
ipv4_address: 172.20.0.102
entrypoint: [ "/usr/bin/start-solana.sh" ]


eth:
image: ethereum/client-go:v1.10.26
container_name: eth
Expand Down
12 changes: 12 additions & 0 deletions contrib/localnet/solana/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM ghcr.io/zeta-chain/solana-docker:1.18.15

WORKDIR /data
COPY ./start-solana.sh /usr/bin/start-solana.sh
RUN chmod +x /usr/bin/start-solana.sh
COPY ./gateway.so .
COPY ./gateway-keypair.json .



ENTRYPOINT [ "bash" ]
CMD [ "/usr/bin/start-solana.sh" ]
134 changes: 0 additions & 134 deletions contrib/localnet/solana/Dockerfile.solana

This file was deleted.

0 comments on commit 46e0eac

Please sign in to comment.