File tree 3 files changed +12
-12
lines changed
3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
IMAGE_NAME =golang:1.18
2
- export GOPROXY?=https ://proxy.golang.org
2
+ CONTAINER_ENGINE? = $( shell command -v docker 2>/dev/null || command -v podman 2>/dev/null)
3
3
4
4
default : \
5
5
generate \
@@ -10,19 +10,19 @@ reset-docs:
10
10
generate :
11
11
go run ./generator/app.go
12
12
13
- generate-dockerized :
14
- docker run --rm -e WHAT -e GOPROXY - v $(shell pwd) :/go/src/app:Z $(IMAGE_NAME ) make -C /go/src/app generate
13
+ generate-containerized :
14
+ $( CONTAINER_ENGINE ) run --rm -e WHAT -v $(shell pwd) :/go/src/app $(IMAGE_NAME ) make -C /go/src/app generate
15
15
16
16
verify :
17
17
@hack/verify.sh
18
18
19
- verify-dockerized :
20
- docker run --rm -v $(shell pwd) :/go/src/app:Z $(IMAGE_NAME ) make -C /go/src/app verify
19
+ verify-containerized :
20
+ $( CONTAINER_ENGINE ) run --rm -v $(shell pwd) :/go/src/app $(IMAGE_NAME ) make -C /go/src/app verify
21
21
22
22
test :
23
23
go test -v ./generator/...
24
24
25
- test-dockerized :
26
- docker run --rm -v $(shell pwd) :/go/src/app:Z $(IMAGE_NAME ) make -C /go/src/app test
25
+ test-containerized :
26
+ $( CONTAINER_ENGINE ) run --rm -v $(shell pwd) :/go/src/app $(IMAGE_NAME ) make -C /go/src/app test
27
27
28
- .PHONY : default reset-docs generate generate-dockerized verify test test-dockerized
28
+ .PHONY : default reset-docs generate generate-containerized verify verify-containerized test test-containerized
Original file line number Diff line number Diff line change 1
1
# SIG Doc builder
2
2
3
3
This folder contains scripts to automatically generate documentation about the
4
- different Special Interest Groups (SIGs), Working Groups (WGs)
4
+ different Special Interest Groups (SIGs), Working Groups (WGs)
5
5
and Committees of Kubernetes. The authoritative
6
6
source for SIG information is the [ ` sigs.yaml ` ] ( /sigs.yaml ) file in the project root.
7
7
All updates must be done there.
@@ -49,9 +49,9 @@ To (re)build documentation for all the SIGs in a go environment, run:
49
49
``` bash
50
50
make generate
51
51
```
52
- or to run this inside a docker container:
52
+ or to run this inside a container:
53
53
``` bash
54
- make generate-dockerized
54
+ make generate-containerized
55
55
```
56
56
57
57
To build docs for one SIG, run one of these commands:
Original file line number Diff line number Diff line change 32
32
# Excluded check patterns are always skipped.
33
33
EXCLUDED_PATTERNS=(
34
34
" verify-all.sh" # this script calls the make rule and would cause a loop
35
- " verify-*-dockerized .sh" # Don't run any scripts that intended to be run dockerized
35
+ " verify-*-containerized .sh" # Don't run any scripts that intended to be run containerized
36
36
)
37
37
38
38
EXCLUDED_CHECKS=$( ls ${EXCLUDED_PATTERNS[@]/#/ ${KUBE_ROOT} \/ hack\/ } 2> /dev/null || true)
You can’t perform that action at this time.
0 commit comments