Podman Desktop E2E playwright test execution image
The repository structure:
lib
folder contains platform specific (windows/runner.ps1
,darwin/runner.sh
) execution scripts that are shipped usingdeliverest
image into a target host machineContainerfile
is a build image configuration file that accepts--build-args
:OS
to determine the platform for which the particulat image is being builtMakefile
build instructions for building the image usingContainerfile
and pushing it into image registrybuilder.sh
script that executes makefile for Windows and Mac OS platforms
In order to push an image, user needs to be logged in before executing building scipts.
# Running the image on windows
podman run --rm -d --name pde2e-runner-run \
-e TARGET_HOST=$(cat host) \
-e TARGET_HOST_USERNAME=$(cat username) \
-e TARGET_HOST_KEY_PATH=/data/id_rsa \
-e TARGET_FOLDER=pd-e2e-runner \
-e TARGET_RESULTS=results \
-e OUTPUT_FOLDER=/data \
-e DEBUG=true \
-v $PWD:/data:z \
-v $PWD/secrets.txt:/opt/pde2e-runner/secrets.txt:z \
quay.io/odockal/pde2e-runner:v0.0.3-windows \
pd-e2e-runner/runner.ps1 \
-targetFolder pd-e2e-runner \
-resultsFolder results \
-fork containers \
-branch main
-npmTarget "test:e2e:smoke" \
-podmanPath "C:\tools\podman\podman-4.9.0\bin" \
-initialize 0 \
-rootful 1 \
-start 1 \
-envVars 'TEST_MACHINE=true,MY_ENV_VAR="some string",ENV_NUMBER=3' \
-secretFile secrets.txt \
-scriptPaths 'podman_rootless.ps1,setup_compose.ps1' \
-runAsAdmin 1
# Running the image on Mac OS
podman run --rm -d --name pde2e-runner-run \
-e TARGET_HOST=$(cat host) \
-e TARGET_HOST_USERNAME=$(cat username) \
-e TARGET_HOST_KEY_PATH=/data/id_rsa \
-e TARGET_FOLDER=pd-e2e \
-e TARGET_RESULTS=results \
-e OUTPUT_FOLDER=/data \
-e DEBUG=true \
-v $PWD:/data:z \
quay.io/odockal/pde2e-runner:v0.0.1-darwin \
pd-e2e/runner.sh \
--targetFolder pd-e2e-runner \
--resultsFolder results \
--fork containers \
--branch main \
--npmTarget "test:e2e" \
--podmanPath "$(cat results/podman-location.log)" \
--initialize 1 \
--rootful 1 \
--start 1
podman logs -f pde2e-podman-run