docker based tests

This commit is contained in:
Girish Ramakrishnan
2024-09-22 11:12:49 +02:00
parent 27f7bcd040
commit 9bb4c8127e
10 changed files with 37 additions and 21 deletions

10
test/entrypoint.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
set -eu
docker_gid=$(stat -c "%g" /run/docker.sock)
addgroup --gid ${docker_gid} --system docker
usermod -aG docker yellowtent
exec su yellowtent --command "$@"