Skip to content

Commit 3cb1a24

Browse files
authored
Merge pull request #3072 from simonbaird/add-conforma-executable-symlink
Add conforma executable symlink in container images
2 parents cbe2bbe + e3e739c commit 3cb1a24

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ COPY hack/reduce-snapshot.sh /usr/local/bin
8080
# OpenShift preflight check requires a license
8181
COPY --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
8487
USER 1001
8588

Dockerfile.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ COPY hack/reduce-snapshot.sh /usr/local/bin
8181
# OpenShift preflight check requires a license
8282
COPY --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
8588
USER 1001
8689

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)