forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fork: Modify Dockerfiles to support Gitlab builds
We require a small number of changes to the Dockerfiles to succesfully build within Gitlab.
- Loading branch information
1 parent
614546d
commit b8a3050
Showing
2 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,9 @@ RUN --mount=type=bind,readwrite,target=/go/src/github.com/cilium/cilium/images/r | |
|
||
FROM ${UBUNTU_IMAGE} AS rootfs | ||
|
||
# Datadog modification: to be able to run APT we need to be root, Cilium also need to run as root | ||
USER root | ||
|
||
# Change the number to force the generation of a new git-tree SHA. Useful when | ||
# we want to re-run 'apt-get upgrade' for stale images. | ||
ENV FORCE_BUILD=3 | ||
|
@@ -60,6 +63,5 @@ COPY --from=bpftool-dist /test /test | |
RUN /test/bin/cst -C /test/llvm | ||
RUN /test/bin/cst -C /test/bpftool | ||
|
||
FROM scratch | ||
LABEL maintainer="[email protected]" | ||
COPY --from=rootfs / / | ||
# Datadog modification: do not squash the layers to not lose GBI labels | ||
FROM rootfs |