You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strip down the containerfile to the bare minimum, the base image, the
build.sh script, and dependencies. Make the base image a build arg.
Make the installation of the dependencies optional based on a build arg.
This now makes it possible to more easily test and reuse the sambacc
test (and build) container image for different base OSes. For example:
```
podman build -t sambacc:mini36 --build-arg=SAMBACC_BASE_IMAGE=registry.fedoraproject.org/fedora:36 --build-arg=SAMBACC_MINIMAL=yes -f tests/container/Containerfile
podman run --rm -it sambacc:mini36
podman build -t sambacc:c9s -f tests/container/Containerfile
podman build -t sambacc:mini9 --build-arg=SAMBACC_MINIMAL=yes -f tests/container/Containerfile
podman build -t sambacc:fc37 --build-arg=SAMBACC_BASE_IMAGE=registry.fedoraproject.org/fedora:37 -f tests/container/Containerfile
```
Signed-off-by: John Mulligan <[email protected]>
0 commit comments