Skip to content

Commit d0920bf

Browse files
chore(relayer): fix relayer build (#21426)
Co-authored-by: David <david@taiko.xyz>
1 parent 3977c46 commit d0920bf

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG PACKAGE=eventindexer
22

3-
FROM golang:1.24.0 AS builder
3+
FROM golang:1.26.0 AS builder
44

55
ARG PACKAGE
66

packages/relayer/cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func main() {
3232

3333
app.Name = "Taiko Relayer"
3434
app.Usage = "The taiko relayer software command line interface"
35-
app.Copyright = "Copyright 2021-2024 Taiko Labs"
35+
app.Copyright = "Copyright 2021-2026 Taiko Labs"
3636
app.Description = "Bridge relayer implementation in Golang for Taiko protocol"
3737
app.Authors = []*cli.Author{{Name: "Taiko Labs", Email: "info@taiko.xyz"}}
3838
app.EnableBashCompletion = true

packages/relayer/pkg/repo/containers_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ func testMysql(t *testing.T) (db.DB, func(), error) {
3333
WaitingFor: wait.ForListeningPort("3306/tcp").WithStartupTimeout(2 * time.Minute),
3434
}
3535

36-
ctx := context.Background()
36+
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
37+
defer cancel()
3738

3839
mysqlC, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
3940
ContainerRequest: req,
@@ -45,7 +46,10 @@ func testMysql(t *testing.T) (db.DB, func(), error) {
4546
}
4647

4748
closeContainer := func() {
48-
err := mysqlC.Terminate(ctx)
49+
stopCtx, stopCancel := context.WithTimeout(context.Background(), 30*time.Second)
50+
defer stopCancel()
51+
52+
err := mysqlC.Terminate(stopCtx)
4953
if err != nil {
5054
t.Fatal(err)
5155
}

packages/taiko-client/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.24-alpine as builder
1+
FROM golang:1.26-alpine AS builder
22

33
RUN apk update && apk add --no-cache --update gcc musl-dev linux-headers git make build-base
44

0 commit comments

Comments
 (0)