Skip to content

Commit

Permalink
chore: disabled binary UID/GID check due to Docker/Podman divergence
Browse files Browse the repository at this point in the history
Signed-off-by: William Artero <git@artero.dev>
  • Loading branch information
wwmoraes committed Dec 4, 2023
1 parent 4f1ab5f commit 1b31728
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions container-structure-test.yaml
Expand Up @@ -3,8 +3,12 @@ fileExistenceTests:
- name: handler binary
path: /usr/local/bin/handler
shouldExist: true
gid: 20000
uid: 20000
## Docker and Podman differ on how they handle the ownership of binaries.
## Docker retains the source UID and GID; Podman ignores it, and reports the
## active UID:GID as per the last USER directive
## TODO fix binary owership
# gid: 0
# uid: 0
permissions: -rwxr-xr-x
isExecutableBy: any

Expand All @@ -13,7 +17,7 @@ metadataTest:
workdir: /
# entrypoint: []
exposedPorts:
- "8080"
- "8080"
labels:
- key: org.opencontainers.image.authors
value: ^([^<>]+? <[^@>]+@[^>]+>(, )?)+$
Expand Down

0 comments on commit 1b31728

Please sign in to comment.