Skip to content

Commit

Permalink
update go version
Browse files Browse the repository at this point in the history
  • Loading branch information
YukiOnishi1129 committed Dec 17, 2024
1 parent 21c848d commit b45e774
Show file tree
Hide file tree
Showing 14 changed files with 72 additions and 34 deletions.
4 changes: 2 additions & 2 deletions batch-service/cmd/article-company-crawler/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22-alpine3.18 AS go-builder
FROM golang:1.23.4-alpine3.21 AS go-builder

RUN apk update && apk add git

Expand All @@ -18,7 +18,7 @@ RUN go mod download \
&& go build -o main /app/cmd/article-company-crawler/main.go


FROM alpine:3.18
FROM alpine:3.21
WORKDIR /app
COPY --from=go-builder /app/main .

Expand Down
4 changes: 2 additions & 2 deletions batch-service/cmd/article-site-and-summary-crawler/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22-alpine3.18 AS go-builder
FROM golang:1.23.4-alpine3.21 AS go-builder

RUN apk update && apk add git

Expand All @@ -18,7 +18,7 @@ RUN go mod download \
&& go build -o main /app/cmd/article-site-and-summary-crawler/main.go


FROM alpine:3.18
FROM alpine:3.21
WORKDIR /app
COPY --from=go-builder /app/main .

Expand Down
4 changes: 2 additions & 2 deletions batch-service/cmd/migrate-seed/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22-alpine3.18 AS go-builder
FROM golang:1.23.4-alpine3.21 AS go-builder

RUN apk update && apk add git

Expand All @@ -18,7 +18,7 @@ RUN go mod download \
&& go build -o main /app/cmd/migrate-seedr/main.go


FROM alpine:3.18
FROM alpine:3.21
WORKDIR /app
COPY --from=go-builder /app/main .

Expand Down
4 changes: 2 additions & 2 deletions batch-service/cmd/trend-article-crawler/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22-alpine3.18 AS go-builder
FROM golang:1.23.4-alpine3.21 AS go-builder

RUN apk update && apk add git

Expand All @@ -17,7 +17,7 @@ COPY ./batch-service/internal ./internal
RUN go mod download \
&& go build -o main /app/cmd/trend-article-crawler/main.go

FROM alpine:3.18
FROM alpine:3.21
WORKDIR /app
COPY --from=go-builder /app/main .

Expand Down
2 changes: 1 addition & 1 deletion batch-service/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/YukiOnishi1129/techpicks/batch-service

go 1.22.0
go 1.23.4

require (
cloud.google.com/go/firestore v1.15.0
Expand Down
4 changes: 2 additions & 2 deletions micro-service/bookmark-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22-alpine3.18 AS go-builder
FROM golang:1.23.4-alpine3.21 AS go-builder

RUN apk update && apk add git

Expand All @@ -9,7 +9,7 @@ COPY ./micro-service/bookmark-service ./
RUN go mod download \
&& go build -o main /app/cmd/main.go

FROM alpine:3.18
FROM alpine:3.21
WORKDIR /app
COPY --from=go-builder /app/main .

Expand Down
2 changes: 1 addition & 1 deletion micro-service/bookmark-service/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22.2-alpine3.18
FROM golang:1.23.4-alpine3.21

RUN apk update && apk add git

Expand Down
4 changes: 2 additions & 2 deletions micro-service/bookmark-service/go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
module github.com/YukiOnishi1129/techpicks/micro-service/bookmark-service

go 1.22.2
go 1.23.4

require (
github.com/friendsofgo/errors v0.9.2
github.com/golang/mock v1.6.0
github.com/google/go-cmp v0.6.0
github.com/google/uuid v1.6.0
github.com/joho/godotenv v1.5.1
Expand Down Expand Up @@ -36,7 +37,6 @@ require (
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/gofrs/uuid v4.4.0+incompatible // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/klauspost/compress v1.17.4 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
Expand Down
4 changes: 2 additions & 2 deletions micro-service/favorite-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22-alpine3.18 AS go-builder
FROM golang:1.23.4-alpine3.21 AS go-builder

RUN apk update && apk add git

Expand All @@ -9,7 +9,7 @@ COPY ./micro-service/favorite-service ./
RUN go mod download \
&& go build -o main /app/cmd/main.go

FROM alpine:3.18
FROM alpine:3.21
WORKDIR /app
COPY --from=go-builder /app/main .

Expand Down
2 changes: 1 addition & 1 deletion micro-service/favorite-service/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22.2-alpine3.18
FROM golang:1.23.4-alpine3.21

RUN apk update && apk add git

Expand Down
18 changes: 9 additions & 9 deletions micro-service/favorite-service/go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
module github.com/YukiOnishi1129/techpicks/micro-service/favorite-service

go 1.22.2
go 1.23.4

require (
github.com/friendsofgo/errors v0.9.2
github.com/golang/mock v1.6.0
github.com/google/go-cmp v0.6.0
github.com/google/uuid v1.6.0
github.com/joho/godotenv v1.5.1
github.com/lib/pq v1.10.9
github.com/testcontainers/testcontainers-go v0.33.0
github.com/testcontainers/testcontainers-go/modules/postgres v0.33.0
github.com/volatiletech/null/v8 v8.1.2
github.com/volatiletech/sqlboiler/v4 v4.16.2
github.com/volatiletech/strmangle v0.0.6
google.golang.org/grpc v1.66.0
google.golang.org/protobuf v1.34.2
)

require (
Expand All @@ -29,10 +37,6 @@ require (
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/gofrs/uuid v4.2.0+incompatible // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/joho/godotenv v1.5.1 // indirect
github.com/klauspost/compress v1.17.4 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
Expand All @@ -50,8 +54,6 @@ require (
github.com/shoenig/go-m1cpu v0.1.6 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/testcontainers/testcontainers-go v0.33.0 // indirect
github.com/testcontainers/testcontainers-go/modules/postgres v0.33.0 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/volatiletech/inflect v0.0.1 // indirect
Expand All @@ -67,6 +69,4 @@ require (
golang.org/x/text v0.16.0 // indirect
golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240827150818-7e3bb234dfed // indirect
google.golang.org/grpc v1.66.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
)
Loading

0 comments on commit b45e774

Please sign in to comment.