test/images/agnhost: Adds a test user and group in the image for a E2E test case of SupplementalGroups with pre-defined group in the image

This commit is contained in:
Shingo Omura 2022-10-20 10:59:51 +09:00
parent 0a689af469
commit 5beae0c4dc
No known key found for this signature in database
2 changed files with 9 additions and 1 deletions

View File

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

View File

@ -1 +1 @@
2.42
2.43