File tree 3 files changed +10
-3
lines changed 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 28
28
value : 5d
29
29
- name : dockerfile
30
30
value : Dockerfile.monitor
31
+ - name : prefetch-input
32
+ value : ' {"type": "gomod", "path": "./src/runtime"}'
31
33
pipelineSpec :
32
34
description : |
33
35
This pipeline is ideal for building container images from a Containerfile while reducing network traffic.
99
101
description : Skip checks against built image
100
102
name : skip-checks
101
103
type : string
102
- - default : " false "
104
+ - default : " true "
103
105
description : Execute the build with network isolation
104
106
name : hermetic
105
107
type : string
Original file line number Diff line number Diff line change 25
25
value : quay.io/redhat-user-workloads/ose-osc-tenant/osc-monitor:{{revision}}
26
26
- name : dockerfile
27
27
value : Dockerfile.monitor
28
+ - name : prefetch-input
29
+ value : ' {"type": "gomod", "path": "./src/runtime"}'
28
30
pipelineSpec :
29
31
description : |
30
32
This pipeline is ideal for building container images from a Containerfile while reducing network traffic.
96
98
description : Skip checks against built image
97
99
name : skip-checks
98
100
type : string
99
- - default : " false "
101
+ - default : " true "
100
102
description : Execute the build with network isolation
101
103
name : hermetic
102
104
type : string
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ COPY ./VERSION /workdir/VERSION
5
5
COPY ./.git /workdir/.git
6
6
COPY ./src/runtime /workdir/src/runtime
7
7
WORKDIR /workdir/src/runtime
8
- RUN CGO_ENABLED=1 GOFLAGS=-tags=strictfipsruntime make monitor
8
+ # Using the "SKIP_GO_VERSION_CHECK" flag to skip version checcking, because it
9
+ # requires yq, which then gets installed at build time.
10
+ # In a hermetic build environment, this is causing failure.
11
+ RUN SKIP_GO_VERSION_CHECK=true CGO_ENABLED=1 GOFLAGS=-tags=strictfipsruntime make monitor
9
12
10
13
# Add only required capabilities for the monitor
11
14
RUN chmod u-s kata-monitor
You can’t perform that action at this time.
0 commit comments