docker: update dev env and documentation

This commit is contained in:
André Roth
2024-08-02 13:52:40 +02:00
parent 674f4f784b
commit 696b78f207
3 changed files with 129 additions and 54 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
# cleanup
rm -rf /app/tmp
rm -rf /tmp/aptly*
usermod -u `stat -c %u /app` aptly >/dev/null
chown -R `stat -c %u /app` /var/lib/aptly
# use same /home/runner dir as in github workflow
chown -R `stat -c %u /app` /home/runner
cmd=$@
if [ -z "$cmd" ]; then
cmd="bash"
fi
su aptly -c "cd /app; export HOME=/home/runner; export PATH=\$PATH:/app/build; $cmd"