You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ha...@apache.org on 2021/12/20 08:07:35 UTC

[skywalking-swck] branch image-user created (now e4f4897)

This is an automated email from the ASF dual-hosted git repository.

hanahmily pushed a change to branch image-user
in repository https://gitbox.apache.org/repos/asf/skywalking-swck.git.


      at e4f4897  Update release images to set numeric user id

This branch includes the following new commits:

     new e4f4897  Update release images to set numeric user id

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[skywalking-swck] 01/01: Update release images to set numeric user id

Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hanahmily pushed a commit to branch image-user
in repository https://gitbox.apache.org/repos/asf/skywalking-swck.git

commit e4f489783c080e9ff5e34ab3bdbc7d02fe5a1945
Author: Hongtao Gao <ha...@gmail.com>
AuthorDate: Mon Dec 20 08:06:03 2021 +0000

    Update release images to set numeric user id
    
    Signed-off-by: Hongtao Gao <ha...@gmail.com>
---
 build/images/Dockerfile.release     | 8 ++++----
 build/images/Dockerfile.release-bin | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/build/images/Dockerfile.release b/build/images/Dockerfile.release
index 9ee1d33..3d4068b 100644
--- a/build/images/Dockerfile.release
+++ b/build/images/Dockerfile.release
@@ -49,9 +49,9 @@ RUN set -eux; \
     rm -rf /tmp/*
 
 FROM gcr.io/distroless/static:nonroot
-WORKDIR /tmp
-COPY --from=builder --chown=nonroot:nonroot /swck/bin/manager-linux-amd64 /manager
-COPY --from=builder --chown=nonroot:nonroot /swck/bin/adapter-linux-amd64 /adapter
-USER nonroot:nonroot
+WORKDIR /
+COPY --from=builder --chown=65532:65532 /swck/bin/manager-linux-amd64 /manager
+COPY --from=builder --chown=65532:65532 /swck/bin/adapter-linux-amd64 /adapter
+USER 65532:65532
 
 ENTRYPOINT ["/manager"]
diff --git a/build/images/Dockerfile.release-bin b/build/images/Dockerfile.release-bin
index 2e507ef..a13e1ea 100644
--- a/build/images/Dockerfile.release-bin
+++ b/build/images/Dockerfile.release-bin
@@ -14,8 +14,8 @@
 # limitations under the License.
 
 FROM gcr.io/distroless/static:nonroot
-COPY --chown=nonroot:nonroot bin/manager-linux-amd64 /manager
-COPY --chown=nonroot:nonroot bin/adapter-linux-amd64 /adapter
-USER nonroot:nonroot
+COPY --chown=65532:65532 bin/manager-linux-amd64 /manager
+COPY --chown=65532:65532 bin/adapter-linux-amd64 /adapter
+USER 65532:65532
 
 ENTRYPOINT ["/manager"]