Switch from docker to podman
Far less invasive, needs fewer permissions, etc.
This commit is contained in:
parent
dd4abacc8a
commit
edc9fd8384
3 changed files with 12 additions and 11 deletions
|
|
@ -20,6 +20,7 @@
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgs.go
|
pkgs.go
|
||||||
pkgs.lefthook
|
pkgs.lefthook
|
||||||
|
pkgs.podman-compose
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 will checkout testdata from separate repository into git submodule.
|
||||||
checkout-testdata:
|
checkout-testdata:
|
||||||
|
|
@ -10,11 +10,11 @@ checkout-testdata:
|
||||||
checkout-latest-testdata: checkout-testdata
|
checkout-latest-testdata: checkout-testdata
|
||||||
cd ./testdata && git fetch && git checkout master && git pull
|
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.
|
# 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.
|
# On the first run this action might take couple of minutes. Podman temp data are stored in .podman directory.
|
||||||
docker-compose-up:
|
podman-compose-up:
|
||||||
docker compose up
|
podman compose up
|
||||||
|
|
||||||
init-all:
|
init-all:
|
||||||
go run ./init/init.go -testsuite 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=northwind -path=./.gentestdata/
|
||||||
jet -dsn=postgres://jet:jet@localhost:26257/jetdb?sslmode=disable -schema=test_sample -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:
|
cleanup:
|
||||||
docker compose down --volumes
|
podman compose down --volumes
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:14.1
|
image: docker.io/library/postgres:14.1
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=jet
|
- POSTGRES_USER=jet
|
||||||
|
|
@ -12,7 +12,7 @@ services:
|
||||||
- ./testdata/init/postgres:/docker-entrypoint-initdb.d
|
- ./testdata/init/postgres:/docker-entrypoint-initdb.d
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql/mysql-server:8.0.27
|
image: docker.io/library/mysql/mysql-server:8.0.27
|
||||||
command: ['--default-authentication-plugin=mysql_native_password', '--log_bin_trust_function_creators=1']
|
command: ['--default-authentication-plugin=mysql_native_password', '--log_bin_trust_function_creators=1']
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -25,7 +25,7 @@ services:
|
||||||
- ./testdata/init/mysql:/docker-entrypoint-initdb.d
|
- ./testdata/init/mysql:/docker-entrypoint-initdb.d
|
||||||
|
|
||||||
mariadb:
|
mariadb:
|
||||||
image: mariadb:11.4
|
image: docker.io/library/mariadb:11.4
|
||||||
command: ['--default-authentication-plugin=mysql_native_password', '--log_bin_trust_function_creators=1']
|
command: ['--default-authentication-plugin=mysql_native_password', '--log_bin_trust_function_creators=1']
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -38,7 +38,7 @@ services:
|
||||||
- ./testdata/init/mysql:/docker-entrypoint-initdb.d
|
- ./testdata/init/mysql:/docker-entrypoint-initdb.d
|
||||||
|
|
||||||
cockroach:
|
cockroach:
|
||||||
image: cockroachdb/cockroach-unstable:v23.1.0-rc.2
|
image: docker.io/library/cockroachdb/cockroach-unstable:v23.1.0-rc.2
|
||||||
environment:
|
environment:
|
||||||
- COCKROACH_USER=jet
|
- COCKROACH_USER=jet
|
||||||
- COCKROACH_PASSWORD=jet
|
- COCKROACH_PASSWORD=jet
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue