Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhoublue committed Feb 18, 2024
1 parent 8694e6a commit 7ed9325
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ build_local_controller_image:
#---------

define BUILD_BASE_IMAGE
IMAGE_DIR=` dirname $(DOCKERFILE_PATH) ` \
IMAGE_DIR=` dirname $(DOCKERFILE_PATH) ` ; \
sed -i '2 a \ARG TARGETPLATFORM' $(DOCKERFILE_PATH) ; \
sed -i '2 a \ARG BUILDPLATFORM' $(DOCKERFILE_PATH) ; \
TAG=` git ls-tree --full-tree HEAD -- $${IMAGE_DIR} | awk '{ print $$3 }' ` ; \
Expand Down
11 changes: 6 additions & 5 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@

1. copy repo `cp -rf rocktemplate/* YourRepoName && cp rocktemplate/.gitignore YourRepoName && cp rocktemplate/.github YourRepoName `

replace all 'rocktemplate' to 'YourRepoName'
replace all 'rocktemplate' to 'yourRepoName'
replace all 'Rocktemplate' to 'YourRepoName'

replace all 'spidernet-io' and 'spidernet.io' to 'YourOrigin'
注意保持 github.com/spidernet-io/e2eframework

replace all 'Copyright 2022' to be the right time

Expand All @@ -15,11 +17,10 @@
3. in a linux machine, update api/v1/openapi.yaml and `make update_openapi_sdk`

4. redefine CRD in pkg/k8s/v1
rename directory name 'pkg/k8s/apis/rocktemplate.spidernet.io'
replace all 'mybook' to 'YourCRDName'
and `make update_crd_sdk`, and write code in pkg/mybookManager

rename directory name 'pkg/k8s/apis/rocktemplate.spidernet.io'
rename pkg/mybookManager and replace all 'mybook' with your CRD name in this directory
replace all 'mybook' and 'Mybook' to 'YourCRDName'
and `make update_crd_sdk`, and write code in pkg/mybookManager

rm charts/crds/rocktemplate.spidernet.io_mybooks.yaml

Expand Down
2 changes: 1 addition & 1 deletion images/agent-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0

ARG GOLANG_IMAGE=docker.io/library/golang:1.21.7
ARG UBUNTU_IMAGE=docker.io/library/ubuntu:22.10
ARG UBUNTU_IMAGE=docker.io/library/ubuntu:24.04

#========= build gops ===============
FROM --platform=${TARGETPLATFORM} ${GOLANG_IMAGE} as gops-cni-builder
Expand Down
2 changes: 1 addition & 1 deletion images/agent-base/build-gops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -o pipefail
set -o nounset

# https://github.com/google/gops
gops_version="v0.3.25"
gops_version="v0.3.28"

mkdir -p /go/src/github.com/google
cd /go/src/github.com/google
Expand Down
2 changes: 1 addition & 1 deletion images/controller-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0

ARG GOLANG_IMAGE=docker.io/library/golang:1.21.7
ARG UBUNTU_IMAGE=docker.io/library/ubuntu:22.10
ARG UBUNTU_IMAGE=docker.io/library/ubuntu:24.04

#========= build gops ===============
FROM --platform=${TARGETPLATFORM} ${GOLANG_IMAGE} as gops-cni-builder
Expand Down
2 changes: 1 addition & 1 deletion images/controller-base/build-gops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -o pipefail
set -o nounset

# https://github.com/google/gops
gops_version="v0.3.25"
gops_version="v0.3.28"

mkdir -p /go/src/github.com/google
cd /go/src/github.com/google
Expand Down

0 comments on commit 7ed9325

Please sign in to comment.