Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaubennassar committed Jul 7, 2023
1 parent a5a4072 commit 662e9e5
Show file tree
Hide file tree
Showing 289 changed files with 14,309 additions and 13,884 deletions.
12 changes: 0 additions & 12 deletions .github/CODEOWNERS

This file was deleted.

31 changes: 0 additions & 31 deletions .github/ISSUE_TEMPLATE/bug.md

This file was deleted.

17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/feature.md

This file was deleted.

9 changes: 0 additions & 9 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

22 changes: 0 additions & 22 deletions .github/pull_request_template.md

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/push-docker-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
hermeznetwork/zkevm-node:develop
hermeznetwork/supernets2-node:develop
2 changes: 1 addition & 1 deletion .github/workflows/push-docker-tagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
hermeznetwork/zkevm-node:${{ github.ref_name }}
hermeznetwork/supernets2-node:${{ github.ref_name }}
64 changes: 0 additions & 64 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
matrix:
go-version: [ 1.19.x ]
goarch: [ "amd64" ]
e2e-group: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ]
e2e-group: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -supernets2-1 ]
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
52 changes: 0 additions & 52 deletions .github/workflows/test-from-prover.yml

This file was deleted.

6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN cd /src && make build

# CONTAINER FOR RUNNING BINARY
FROM alpine:3.16.0
COPY --from=build /src/dist/zkevm-node /app/zkevm-node
COPY --from=build /src/config/environments/public/public.node.config.toml /app/example.config.toml
COPY --from=build /src/dist/supernets2-node /app/supernets2-node
COPY --from=build /src/config/environments/local/local.node.config.toml /app/example.config.toml
EXPOSE 8123
CMD ["/bin/sh", "-c", "/app/zkevm-node run"]
CMD ["/bin/sh", "-c", "/app/supernets2-node run"]
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,35 @@ endif
GOBASE := $(shell pwd)
GOBIN := $(GOBASE)/dist
GOENVVARS := GOBIN=$(GOBIN) CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH)
GOBINARY := zkevm-node
GOBINARY := supernets2-node
GOCMD := $(GOBASE)/cmd

LDFLAGS += -X 'github.com/0xPolygonHermez/zkevm-node.Version=$(VERSION)'
LDFLAGS += -X 'github.com/0xPolygonHermez/zkevm-node.GitRev=$(GITREV)'
LDFLAGS += -X 'github.com/0xPolygonHermez/zkevm-node.GitBranch=$(GITBRANCH)'
LDFLAGS += -X 'github.com/0xPolygonHermez/zkevm-node.BuildDate=$(DATE)'
LDFLAGS += -X 'github.com/0xPolygon/supernets2-node.Version=$(VERSION)'
LDFLAGS += -X 'github.com/0xPolygon/supernets2-node.GitRev=$(GITREV)'
LDFLAGS += -X 'github.com/0xPolygon/supernets2-node.GitBranch=$(GITBRANCH)'
LDFLAGS += -X 'github.com/0xPolygon/supernets2-node.BuildDate=$(DATE)'

.PHONY: build
build: ## Builds the binary locally into ./dist
$(GOENVVARS) go build -ldflags "all=$(LDFLAGS)" -o $(GOBIN)/$(GOBINARY) $(GOCMD)

.PHONY: build-docker
build-docker: ## Builds a docker image with the node binary
docker build -t zkevm-node -f ./Dockerfile .
docker build -t supernets2-node -f ./Dockerfile .

.PHONY: build-docker-nc
build-docker-nc: ## Builds a docker image with the node binary - but without build cache
docker build --no-cache=true -t zkevm-node -f ./Dockerfile .
docker build --no-cache=true -t supernets2-node -f ./Dockerfile .

.PHONY: run-rpc
run-rpc: ## Runs all the services need to run a local zkEMV RPC node
docker-compose up -d zkevm-state-db zkevm-pool-db
docker-compose up -d supernets2-state-db supernets2-pool-db
sleep 2
docker-compose up -d zkevm-prover
docker-compose up -d supernets2-prover
sleep 5
docker-compose up -d zkevm-sync
docker-compose up -d supernets2-sync
sleep 2
docker-compose up -d zkevm-rpc
docker-compose up -d supernets2-rpc

.PHONY: stop
stop: ## Stops all services
Expand Down
Loading

0 comments on commit 662e9e5

Please sign in to comment.