Skip to content

Commit

Permalink
add autoclaim service to the docker (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
ARR552 committed Sep 26, 2024
1 parent 3e0724f commit 39b8dc4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN cd /src && make build
FROM alpine:3.16.0
COPY --from=build /src/dist/zkevm-bridge /app/zkevm-bridge
COPY --from=build /src/dist/test-deploy-claimcompressor /app/test-deploy-claimcompressor
COPY --from=build /src/dist/zkevm-autoclaimer /app/zkevm-autoclaimer
COPY --from=build /src/test/vectors /app/test/vectors
EXPOSE 8080
EXPOSE 9090
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,19 @@ GO_BINARY := zkevm-bridge
GO_CMD := $(GO_BASE)/cmd
GO_DEPLOY_SCRIPT := $(GO_BASE)/test/scripts/deployclaimcompressor
GO_DEPLOY_SCRIPT_BINARY := test-deploy-claimcompressor
GO_DEPLOY_AUTOCLAIMER := $(GO_BASE)/autoclaimservice
GO_DEPLOY_AUTOCLAIMER_BINARY := zkevm-autoclaimer

LINT := $$(go env GOPATH)/bin/golangci-lint run --timeout=5m -E whitespace -E gosec -E gci -E misspell -E gomnd -E gofmt -E goimports --exclude-use-default=false --max-same-issues 0
BUILD := $(GO_ENV_VARS) go build -ldflags "all=$(LDFLAGS)" -o $(GO_BIN)/$(GO_BINARY) $(GO_CMD)
BUILDSCRIPTEPLOY := $(GO_ENV_VARS) go build -o $(GO_BIN)/$(GO_DEPLOY_SCRIPT_BINARY) $(GO_DEPLOY_SCRIPT)
BUILDAUTOCLAIMER := $(GO_ENV_VARS) go build -o $(GO_BIN)/$(GO_DEPLOY_AUTOCLAIMER_BINARY) $(GO_DEPLOY_AUTOCLAIMER)

.PHONY: build
build: ## Build the binary locally into ./dist
$(BUILD)
$(BUILDSCRIPTEPLOY)
$(BUILDAUTOCLAIMER)

.PHONY: lint
lint: ## runs linter
Expand Down

0 comments on commit 39b8dc4

Please sign in to comment.