Skip to content

Commit a86c783

Browse files
committed
chore(builder): upgrade codename to bookworm
1 parent e19932f commit a86c783

20 files changed

Lines changed: 189 additions & 172 deletions

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ RUN export GO111MODULE=on \
66
&& CGO_ENABLED=0 init-stack go build -ldflags "${LDFLAGS}" -o /usr/local/bin/boot boot.go
77

88

9-
FROM registry.drycc.cc/drycc/base:bullseye
9+
FROM registry.drycc.cc/drycc/base:bookworm
1010

1111
ENV DRYCC_UID=1001 \
1212
DRYCC_GID=1001 \
1313
DRYCC_HOME_DIR=/workspace \
14-
MC_VERSION="2022.08.28.20.08.11" \
14+
MC_VERSION="2023.06.15.15.08.26" \
1515
JQ_VERSION="1.6"
1616

1717
RUN groupadd drycc --gid ${DRYCC_GID} \

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ include versioning.mk
66
REPO_PATH := github.com/drycc/${SHORT_NAME}
77
DEV_ENV_IMAGE := ${DEV_REGISTRY}/drycc/go-dev
88
DEV_ENV_WORK_DIR := /opt/drycc/go/src/${REPO_PATH}
9-
DEV_ENV_PREFIX := docker run --rm -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR}
9+
DEV_ENV_PREFIX := docker run --rm -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR} --entrypoint testdata/bin/fake-k8s
1010
DEV_ENV_CMD := ${DEV_ENV_PREFIX} ${DEV_ENV_IMAGE}
1111
PLATFORM ?= linux/amd64,linux/arm64
1212

@@ -38,7 +38,7 @@ test-style:
3838
${DEV_ENV_CMD} lint
3939

4040
test-unit:
41-
${DEV_ENV_CMD} sh -c 'go test --race ./...'
41+
${DEV_ENV_CMD} go test --race ./...
4242

4343
test-cover:
4444
${DEV_ENV_CMD} test-cover.sh

boot.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ func main() {
111111
return fmt.Errorf("error getting config for %s [%s]", gitReceiveConfAppName, err)
112112
}
113113
cnf.CheckDurations()
114-
fs := sys.RealFS()
115114
env := sys.RealEnv()
116115
storageParams, err := conf.GetStorageParams(env)
117116
if err != nil {
@@ -124,7 +123,7 @@ func main() {
124123
return fmt.Errorf("error creating storage driver (%s)", err)
125124
}
126125

127-
if err := gitreceive.Run(cnf, fs, env, storageDriver); err != nil {
126+
if err := gitreceive.Run(cnf, env, storageDriver); err != nil {
128127
return fmt.Errorf("error running git receive hook [%s]", err)
129128
}
130129
return nil

go.mod

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
module github.com/drycc/builder
22

3-
go 1.19
3+
go 1.20
44

55
require (
6-
github.com/aws/aws-sdk-go v1.44.140
7-
github.com/distribution/distribution/v3 v3.0.0-20221111170714-3b8fbf975279
8-
github.com/drycc/controller-sdk-go v0.0.0-20221102064813-4fdd84374948
9-
github.com/drycc/pkg v0.0.0-20220830031116-26c11ff8667c
6+
github.com/aws/aws-sdk-go v1.44.284
7+
github.com/distribution/distribution/v3 v3.0.0-20230611135314-6a57630cf401
8+
github.com/drycc/controller-sdk-go v0.0.0-20230602065836-df0a0b2ab4b0
9+
github.com/drycc/pkg v0.0.0-20230619083908-711ad2e9f1b8
1010
github.com/kelseyhightower/envconfig v1.4.0
1111
github.com/pborman/uuid v1.2.1
12-
github.com/stretchr/testify v1.8.1
13-
github.com/urfave/cli/v2 v2.23.5
14-
golang.org/x/crypto v0.3.0
12+
github.com/stretchr/testify v1.8.4
13+
github.com/urfave/cli/v2 v2.25.7
14+
golang.org/x/crypto v0.10.0
1515
gopkg.in/yaml.v3 v3.0.1
16-
k8s.io/api v0.25.4
17-
k8s.io/apimachinery v0.25.4
18-
k8s.io/client-go v0.25.4
16+
k8s.io/api v0.27.3
17+
k8s.io/apimachinery v0.27.3
18+
k8s.io/client-go v0.27.3
1919
)
2020

2121
require (
2222
github.com/PuerkitoBio/purell v1.1.1 // indirect
2323
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
2424
github.com/beorn7/perks v1.0.1 // indirect
25-
github.com/cespare/xxhash/v2 v2.1.2 // indirect
25+
github.com/cespare/xxhash/v2 v2.2.0 // indirect
2626
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
2727
github.com/davecgh/go-spew v1.1.1 // indirect
2828
github.com/docker/go-metrics v0.0.1 // indirect
29-
github.com/emicklei/go-restful/v3 v3.8.0 // indirect
29+
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
3030
github.com/go-logr/logr v1.2.3 // indirect
31-
github.com/go-openapi/jsonpointer v0.19.5 // indirect
32-
github.com/go-openapi/jsonreference v0.19.5 // indirect
33-
github.com/go-openapi/swag v0.19.14 // indirect
31+
github.com/go-openapi/jsonpointer v0.19.6 // indirect
32+
github.com/go-openapi/jsonreference v0.20.1 // indirect
33+
github.com/go-openapi/swag v0.22.3 // indirect
3434
github.com/gogo/protobuf v1.3.2 // indirect
35-
github.com/golang/protobuf v1.5.2 // indirect
35+
github.com/golang/protobuf v1.5.3 // indirect
3636
github.com/google/gnostic v0.5.7-v3refs // indirect
37-
github.com/google/go-cmp v0.5.8 // indirect
37+
github.com/google/go-cmp v0.5.9 // indirect
3838
github.com/google/gofuzz v1.1.0 // indirect
39-
github.com/google/uuid v1.1.2 // indirect
39+
github.com/google/uuid v1.3.0 // indirect
4040
github.com/gorilla/mux v1.8.0 // indirect
4141
github.com/goware/urlx v0.3.2 // indirect
4242
github.com/jmespath/go-jmespath v0.4.0 // indirect
4343
github.com/josharian/intern v1.0.0 // indirect
4444
github.com/json-iterator/go v1.1.12 // indirect
45-
github.com/mailru/easyjson v0.7.6 // indirect
45+
github.com/mailru/easyjson v0.7.7 // indirect
4646
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
4747
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4848
github.com/modern-go/reflect2 v1.0.2 // indirect
@@ -55,20 +55,20 @@ require (
5555
github.com/russross/blackfriday/v2 v2.1.0 // indirect
5656
github.com/sirupsen/logrus v1.8.1 // indirect
5757
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
58-
golang.org/x/net v0.7.0 // indirect
59-
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
60-
golang.org/x/sys v0.5.0 // indirect
61-
golang.org/x/term v0.5.0 // indirect
62-
golang.org/x/text v0.7.0 // indirect
58+
golang.org/x/net v0.10.0 // indirect
59+
golang.org/x/oauth2 v0.6.0 // indirect
60+
golang.org/x/sys v0.9.0 // indirect
61+
golang.org/x/term v0.9.0 // indirect
62+
golang.org/x/text v0.10.0 // indirect
6363
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
6464
google.golang.org/appengine v1.6.7 // indirect
65-
google.golang.org/protobuf v1.28.0 // indirect
65+
google.golang.org/protobuf v1.29.1 // indirect
6666
gopkg.in/inf.v0 v0.9.1 // indirect
6767
gopkg.in/yaml.v2 v2.4.0 // indirect
68-
k8s.io/klog/v2 v2.70.1 // indirect
69-
k8s.io/kube-openapi v0.0.0-20220803162953-67bda5d908f1 // indirect
70-
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed // indirect
71-
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
68+
k8s.io/klog/v2 v2.90.1 // indirect
69+
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect
70+
k8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect
71+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
7272
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
73-
sigs.k8s.io/yaml v1.2.0 // indirect
73+
sigs.k8s.io/yaml v1.3.0 // indirect
7474
)

0 commit comments

Comments
 (0)