Skip to content

Commit

Permalink
Adjust previous commit history(#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangsorang committed Nov 16, 2023
2 parents b2047b1 + df5256e commit 1fac96d
Show file tree
Hide file tree
Showing 603 changed files with 13,617 additions and 16,805 deletions.
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
FROM golang:1.19.7-alpine3.17 as builder
FROM --platform=$BUILDPLATFORM golang:1.21.1-alpine3.18 as builder
RUN apk add --no-cache gcc git make musl-dev

COPY ./go.mod /app/go.mod
COPY ./go.sum /app/go.sum
COPY ./Makefile /app/Makefile

COPY ./bindings /app/bindings
COPY ./op-node /app/op-node
COPY ./op-chain-ops /app/op-chain-ops
COPY ./op-service /app/op-service
#COPY ./op-signer /app/op-signer
COPY ./op-batcher /app/op-batcher
COPY ./op-bindings /app/op-bindings
COPY ./components /app/components
COPY ./utils /app/utils

COPY ./.git /app/.git
WORKDIR /app
RUN make build

FROM alpine:3.17 as runner
FROM alpine:3.18 as runner

RUN addgroup user && \
adduser -G user -s /bin/sh -h /home/user -D user

USER user
WORKDIR /home/user/

FROM alpine:3.17 as runner-with-kroma-log
FROM alpine:3.18 as runner-with-kroma-log

RUN addgroup user && \
adduser -G user -s /bin/sh -h /home/user -D user
Expand Down
16 changes: 9 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ LD_FLAGS_ARGS +=-X main.Meta=$(GIT_COMMIT)
LD_FLAGS := -ldflags "$(LD_FLAGS_ARGS)"

build:
GO111MODULE=on go build -v $(LD_FLAGS) -o bin/kroma-node ./components/node/cmd/main.go
GO111MODULE=on go build -v $(LD_FLAGS) -o bin/kroma-stateviz ./components/node/cmd/stateviz/main.go
GO111MODULE=on go build -v $(LD_FLAGS) -o bin/kroma-batcher ./components/batcher/cmd/main.go
GO111MODULE=on go build -v $(LD_FLAGS) -o bin/kroma-node ./op-node/cmd/main.go
GO111MODULE=on go build -v $(LD_FLAGS) -o bin/kroma-stateviz ./op-node/cmd/stateviz/main.go
GO111MODULE=on go build -v $(LD_FLAGS) -o bin/kroma-batcher ./op-batcher/cmd/main.go
GO111MODULE=on go build -v $(LD_FLAGS) -o bin/kroma-validator ./components/validator/cmd/main.go
.PHONY: build

Expand All @@ -17,10 +17,12 @@ clean:
.PHONY: clean

test:
go test ./bindings/...
go test ./op-bindings/...
go test ./op-batcher/...
go test ./op-node/...
go test ./components/...
go test ./utils/...
go test ./e2e/... -timeout 30m # requires a minimum of 30min in a CI
go test ./op-e2e/... -timeout 30m # requires a minimum of 30min in a CI
yarn test
.PHONY: test

Expand All @@ -30,8 +32,8 @@ lint:
.PHONY: lint

bindings:
make -C ./bindings
.PHONY: bindings
make -C ./op-bindings
.PHONY: op-bindings

contracts-snapshot:
@(cd ./packages/contracts && yarn gas-snapshot && yarn storage-snapshot)
Expand Down
3,333 changes: 0 additions & 3,333 deletions bindings/bindings/kromagovernor.go

This file was deleted.

25 changes: 0 additions & 25 deletions bindings/bindings/kromagovernor_more.go

This file was deleted.

3,291 changes: 0 additions & 3,291 deletions bindings/bindings/kromaguardiantoken.go

This file was deleted.

25 changes: 0 additions & 25 deletions bindings/bindings/kromaguardiantoken_more.go

This file was deleted.

2,382 changes: 0 additions & 2,382 deletions bindings/bindings/kromatimelock.go

This file was deleted.

25 changes: 0 additions & 25 deletions bindings/bindings/kromatimelock_more.go

This file was deleted.

31 changes: 0 additions & 31 deletions bindings/bindings/registry.go

This file was deleted.

160 changes: 0 additions & 160 deletions components/batcher/batch_submitter.go

This file was deleted.

Loading

0 comments on commit 1fac96d

Please sign in to comment.