-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '377b12be2e670dddf3c948f16e3ddd860f5b094b' into sammeluc…
…h/merge-3.0-dev
- Loading branch information
Showing
258 changed files
with
4,808 additions
and
6,772 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
32 changes: 0 additions & 32 deletions
32
.pipelines/containerSourceData/base/Dockerfile-Base-Nonroot-Template
This file was deleted.
Oops, something went wrong.
22 changes: 21 additions & 1 deletion
22
.pipelines/containerSourceData/base/Dockerfile-Base-Template
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 |
---|---|---|
@@ -1,12 +1,32 @@ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
ARG BUILDER_IMAGE | ||
ARG BASE_IMAGE | ||
|
||
FROM $BASE_IMAGE | ||
FROM $BUILDER_IMAGE as builder | ||
|
||
ARG USERNAME=nonroot | ||
ARG USER_UID=65532 | ||
ARG USER_GID=$USER_UID | ||
|
||
RUN mkdir -p /staging/etc \ | ||
&& groupadd --gid $USER_GID $USERNAME \ | ||
&& useradd --gid $USER_GID $USERNAME --uid $USER_UID --create-home --comment "Nonroot User" \ | ||
# Copy user/group info to staging | ||
&& cp /etc/group /staging/etc/group \ | ||
&& cp /etc/passwd /staging/etc/passwd \ | ||
&& cp -r /home /staging/home | ||
|
||
FROM $BASE_IMAGE AS final | ||
|
||
ARG USER_UID=65532 | ||
ARG USER_GID=$USER_UID | ||
ARG EULA=@EULA_FILE@ | ||
|
||
COPY $EULA . | ||
|
||
COPY --from=builder /staging/etc/ /etc/ | ||
COPY --from=builder --chown=${USER_UID}:${USER_GID} /staging/home/ /home/ | ||
|
||
CMD [ "bash" ] |
31 changes: 0 additions & 31 deletions
31
.pipelines/containerSourceData/base/Dockerfile-Distroless-Nonroot-Template
This file was deleted.
Oops, something went wrong.
22 changes: 21 additions & 1 deletion
22
.pipelines/containerSourceData/base/Dockerfile-Distroless-Template
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 |
---|---|---|
@@ -1,10 +1,30 @@ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
ARG BUILDER_IMAGE | ||
ARG BASE_IMAGE | ||
|
||
FROM $BASE_IMAGE | ||
FROM $BUILDER_IMAGE as builder | ||
|
||
ARG USERNAME=nonroot | ||
ARG USER_UID=65532 | ||
ARG USER_GID=$USER_UID | ||
|
||
RUN mkdir -p /staging/etc \ | ||
&& groupadd --gid $USER_GID $USERNAME \ | ||
&& useradd --gid $USER_GID $USERNAME --uid $USER_UID --create-home --comment "Nonroot User" \ | ||
# Copy user/group info to staging | ||
&& cp /etc/group /staging/etc/group \ | ||
&& cp /etc/passwd /staging/etc/passwd \ | ||
&& cp -r /home /staging/home | ||
|
||
FROM $BASE_IMAGE AS final | ||
|
||
ARG USER_UID=65532 | ||
ARG USER_GID=$USER_UID | ||
ARG EULA=@EULA_FILE@ | ||
|
||
COPY $EULA . | ||
|
||
COPY --from=builder /staging/etc/ /etc/ | ||
COPY --from=builder --chown=${USER_UID}:${USER_GID} /staging/home/ /home/ |
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 |
---|---|---|
|
@@ -4,5 +4,3 @@ coreutils | |
gmp | ||
grep | ||
libselinux | ||
pcre | ||
pcre-libs |
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 |
---|---|---|
|
@@ -4,5 +4,3 @@ coreutils | |
gmp | ||
grep | ||
libselinux | ||
pcre | ||
pcre-libs |
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 |
---|---|---|
|
@@ -4,5 +4,3 @@ coreutils | |
gmp | ||
grep | ||
libselinux | ||
pcre | ||
pcre-libs |
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 |
---|---|---|
|
@@ -4,5 +4,3 @@ coreutils | |
gmp | ||
grep | ||
libselinux | ||
pcre | ||
pcre-libs |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.