Switch from docker to podman

Far less invasive, needs fewer permissions, etc.
This commit is contained in:
Eli Ribble 2026-05-14 15:46:06 +00:00
parent dd4abacc8a
commit edc9fd8384
No known key found for this signature in database
3 changed files with 12 additions and 11 deletions

View file

@ -1,6 +1,6 @@
setup: checkout-testdata docker-compose-up
setup: checkout-testdata podman-compose-up
# checkout-testdata will checkout testdata from separate repository into git submodule.
checkout-testdata:
@ -10,11 +10,11 @@ checkout-testdata:
checkout-latest-testdata: checkout-testdata
cd ./testdata && git fetch && git checkout master && git pull
# docker-compose-up will download docker image for each of the databases listed in docker-compose.yaml file, and then it will initialize
# podman-compose-up will download podman image for each of the databases listed in podman-compose.yaml file, and then it will initialize
# database with testdata retrieved in previous step.
# On the first run this action might take couple of minutes. Docker temp data are stored in .docker directory.
docker-compose-up:
docker compose up
# On the first run this action might take couple of minutes. Podman temp data are stored in .podman directory.
podman-compose-up:
podman compose up
init-all:
go run ./init/init.go -testsuite all
@ -73,6 +73,6 @@ jet-gen-cockroach:
jet -dsn=postgres://jet:jet@localhost:26257/jetdb?sslmode=disable -schema=northwind -path=./.gentestdata/
jet -dsn=postgres://jet:jet@localhost:26257/jetdb?sslmode=disable -schema=test_sample -path=./.gentestdata/
# docker-compose-cleanup will stop and remove test containers, volumes, and images.
# podman-compose-cleanup will stop and remove test containers, volumes, and images.
cleanup:
docker compose down --volumes
podman compose down --volumes