diff --git a/Makefile b/Makefile index 2adb0c40..1a9b84ff 100644 --- a/Makefile +++ b/Makefile @@ -70,6 +70,10 @@ build-go: build-docker: ## Builds a docker image with the cdk binary docker build -t cdk -f ./Dockerfile . +.PHONY: build-mock-signer +build-mock-signer-docker: + docker build --progress=plain -t xlayer-signer -f ./signer/Dockerfile . + .PHONY: build-docker-nc build-docker-nc: ## Builds a docker image with the cdk binary - but without build cache docker build --no-cache=true -t cdk -f ./Dockerfile . diff --git a/test/docker-compose.yml b/test/docker-compose.yml index a280d675..c2985b68 100644 --- a/test/docker-compose.yml +++ b/test/docker-compose.yml @@ -89,3 +89,48 @@ services: - "postgres" - "-N" - "500" + + xlayer-mock-l1-network: + container_name: xlayer-mock-l1-network + image: zjg555543/geth:fork13-v0.0.3 + ports: + - 8545:8545 + - 8546:8546 + command: + - "--http" + - "--http.api" + - "admin,eth,debug,miner,net,txpool,personal,web3" + - "--http.addr" + - "0.0.0.0" + - "--http.corsdomain" + - "*" + - "--http.vhosts" + - "*" + - "--ws" + - "--ws.origins" + - "*" + - "--ws.addr" + - "0.0.0.0" + - "--dev" + - "--dev.period" + - "1" + - "--datadir" + - "/geth_data" + - "--syncmode" + - "full" + - "--rpc.allow-unprotected-txs" + + xlayer-signer: + container_name: xlayer-signer + restart: unless-stopped + image: xlayer-signer:latest # assuming you build docker image using `make build-mock-signer-docker` + ports: + - 7001:7001 + volumes: + - ../signer/signer.config.toml:/app/config.toml + - ./sequencer.keystore:/pk/sequencer.keystore + - ./aggregator.keystore:/pk/aggregator.keystore + command: + - "/bin/sh" + - "-c" + - "/app/xlayer-signer http -cfg /app/config.toml"