change the username in the image that is aligned with the group name

This commit is contained in:
Shingo Omura 2022-10-21 10:18:30 +09:00
parent 5beae0c4dc
commit d59af27d69
No known key found for this signature in database

View File

@ -57,11 +57,11 @@ RUN ln -s agnhost agnhost-2
# this user and group is used in a E2E test case of # this user and group is used in a E2E test case of
# SupplementalGroups with pre-defined group in the image # SupplementalGroups with pre-defined group in the image
# - image-user(uid=1000) # - user-defined-in-image(uid=1000)
# - image-user belongs to group-defined-in-image(gid=50000) # - user-defined-in-image belongs to group-defined-in-image(gid=50000)
RUN adduser -u 1000 -D image-user && \ RUN adduser -u 1000 -D user-defined-in-image && \
addgroup -g 50000 group-defined-in-image && \ addgroup -g 50000 group-defined-in-image && \
addgroup image-user group-defined-in-image addgroup user-defined-in-image group-defined-in-image
ENTRYPOINT ["/agnhost"] ENTRYPOINT ["/agnhost"]
CMD ["pause"] CMD ["pause"]