Skip to content

Commit

Permalink
update update-codegen-docker.sh (#4319)
Browse files Browse the repository at this point in the history
Signed-off-by: zhangzujian <[email protected]>
  • Loading branch information
zhangzujian authored Jul 19, 2024
1 parent b2aec92 commit 35fcef8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions hack/update-codegen-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
# set GOPROXY you like
GOPROXY=${GOPROXY:-"https://goproxy.cn"}

PROJECT_PACKAGE=github.com/kubeovn/kube-ovn
docker run -it --rm \
-v ${PWD}:/go/src/${PROJECT_PACKAGE}\
-v ${PWD}/hack/boilerplate.go.txt:/tmp/fake-boilerplate.txt \
-e PROJECT_PACKAGE=${PROJECT_PACKAGE} \
-e CLIENT_GENERATOR_OUT=${PROJECT_PACKAGE}/pkg/client \
-e APIS_ROOT=${PROJECT_PACKAGE}/pkg/apis \
-v ${PWD}:/app \
-e GOPROXY=${GOPROXY} \
ghcr.io/zhangzujian/kube-code-generator:v1.29.3
ghcr.io/zhangzujian/kube-code-generator:v0.2.1 \
--boilerplate-path ./hack/boilerplate.go.txt \
--apis-in ./pkg/apis \
--go-gen-out ./pkg/client

go mod tidy

0 comments on commit 35fcef8

Please sign in to comment.