Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This will be an ongoing PR to be able to at least unofficially support podman, so that we can close #113
The goal is to be able to run the whole test suite locally (maybe in the future also have the test suit running here in Github)
Current steps:
podman machine init -v "$(pwd)"/scripts/testing:/mnt/testing./scripts/testacc_setup.shDOCKER_HOST=unix:///Users/username/.local/share/containers/podman/machine/podman-machine-default/podman.sock TF_LOG=DEBUG TF_ACC=1 go test -v ./internal/provider -timeout 360s -run TestAccDockerContainerIssues:
Podman complains about our self-signed certificates for our local registriesWe created ax509: certificate relies on legacy Common Name field, use SANs insteadregistries.confinside the podman VM to "whitelist" our insecure registry (see for exact commands https://gist.github.com/doytsujin/836701deb5e5521712628e575ea22c64)Test Suite:
TestAccDockerConfig: Apparently the service is not supported by podman:Podman does not support service: /v1.41/configs/createMany failing tests, often due to the same error as above
One failing test:
TestAccDockerImage_name_attr_changedue to force replacements ofnetwork_modeandpid_modeNumber of different errors
TestAccDockerPlugin: It seems to me that docker plugins are not supported in podmanSome working tests, but many tests fail due to
Bad Request for API route and version, e.g.TestAccDockerRegistryImageResource_whitelistDockerignoreTestAccDockerService: Seems not to be supported by Podman:Podman does not support service: /v1.41/services/createOne failing test:
TestAccDockerTag_no_local_image