Skip to content

Commit 7a7abe3

Browse files
authored
Merge pull request #6 from optimism-java/ci
feat: add dockerfile
2 parents ab79219 + 1d88049 commit 7a7abe3

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-7
lines changed

Dockerfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM --platform=linux/amd64 golang:1.23 as builder
2+
3+
WORKDIR /app
4+
5+
COPY . .
6+
RUN go env -w GOPROXY=https://goproxy.cn,direct
7+
# RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build ./cmd/shisui/main.go
8+
RUN make shisui
9+
10+
11+
FROM --platform=linux/amd64 ubuntu:22.04
12+
13+
COPY --from=builder /app/build/bin/shisui /usr/local/bin/app
14+
15+
EXPOSE 8545 9009/udp
16+
17+
ENTRYPOINT [ "app" ]

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ shisui:
2121

2222
#? shisui-image: Build shisui image
2323
shisui-image:
24-
docker build -t ghcr.io/optimism-java/shisui:latest -f Dockerfile.portal .
24+
docker build -t ghcr.io/optimism-java/shisui:latest -f Dockerfile .
2525

2626
#? fmt: Ensure consistent code formatting.
2727
fmt:

internal/version/vcs.go

-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
package version
2323

2424
import (
25-
"fmt"
2625
"runtime/debug"
2726
"time"
2827
)
@@ -47,9 +46,6 @@ type VCSInfo struct {
4746

4847
// VCS returns version control information of the current executable.
4948
func VCS() (VCSInfo, bool) {
50-
fmt.Println("vcs")
51-
fmt.Println(gitCommit)
52-
fmt.Println(gitDate)
5349
if gitCommit != "" {
5450
// Use information set by the build script if present.
5551
return VCSInfo{Commit: gitCommit, Date: gitDate}, true

storage/pebble/storage.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package ethpepple
1+
package pepple
22

33
import (
44
"bytes"

storage/pebble/storage_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package ethpepple
1+
package pepple
22

33
import (
44
"testing"

0 commit comments

Comments
 (0)