system-tests: add Dockerfile

This commit is contained in:
André Roth
2024-02-04 22:47:49 +01:00
parent a71186bcc3
commit a69aa7c533
3 changed files with 35 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
rm -rf /tmp/aptly*
rm -rf /home/test/.*
rm -rf /home/test/aptly-fixture-*
usermod -u `stat -c %u /app` aptly
chown -R `stat -c %u /app` /var/lib/aptly
mkdir -p /home/runner
chown -R `stat -c %u /app` /home/runner
exec su - aptly -c "cd /app; go mod tidy; HOME=/home/runner make system-test"