File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,6 +80,9 @@ COPY hack/reduce-snapshot.sh /usr/local/bin
8080# OpenShift preflight check requires a license
8181COPY --from=build /build/LICENSE /licenses/LICENSE
8282
83+ # Make it possible to use the "conforma" command instead of "ec" if you prefer
84+ RUN ln -s /usr/local/bin/ec /usr/local/bin/conforma
85+
8386# OpenShift preflight check requires a non-root user
8487USER 1001
8588
Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ COPY hack/reduce-snapshot.sh /usr/local/bin
8181# OpenShift preflight check requires a license
8282COPY --from=build /build/LICENSE /licenses/LICENSE
8383
84+ # Make it possible to use the "conforma" command instead of "ec" if you prefer
85+ RUN ln -s /usr/local/bin/ec /usr/local/bin/conforma
86+
8487# OpenShift preflight check requires a non-root user
8588USER 1001
8689
Original file line number Diff line number Diff line change @@ -70,6 +70,10 @@ dist-container: clean
7070 --platform $(BUILD_LOCAL_PLATFORM ) \
7171 --build-arg BUILD_SUFFIX=local \
7272 --build-arg BUILD_LIST=$(BUILD_LOCAL_ARCH ) \
73+ --volume " $( GOCACHE_DIR) " :/go/cache:Z \
74+ --volume " $( GOMODCACHE_DIR) " :/go/mod:Z \
75+ --env GOCACHE=/go/cache \
76+ --env GOMODCACHE=/go/mod \
7377 .
7478
7579# For local debugging of the above
You can’t perform that action at this time.
0 commit comments