-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker.sh
More file actions
executable file
·24 lines (20 loc) · 791 Bytes
/
docker.sh
File metadata and controls
executable file
·24 lines (20 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
set -e
APP=$(realpath $(dirname $0))
if [ -d "$APP/bin" ]; then
git -C "$APP/bin" clean -fdx
if [ -d "$APP/bin/php-8.5" ]; then
git -C "$APP/bin/php-8.5" clean -fdx
fi
if [ -d "$APP/bin/pecl-event" ]; then
git -C "$APP/bin/pecl-event" clean -fdx
fi
if [ -d "$APP/bin/php-inotify" ]; then
git -C "$APP/bin/php-inotify" clean -fdx
fi
fi
docker run -d -p 5000:5000 --name threadtask-frameworks -v "$APP:/app" -it ubuntu:24.04
docker exec -it threadtask-frameworks /bin/apt update
docker exec -it threadtask-frameworks /bin/apt install -y git sudo curl net-tools ifstat sqlite3
docker exec -it threadtask-frameworks /bin/bash -c 'echo "ubuntu ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/ubuntu'
docker exec -it -u ubuntu threadtask-frameworks /app/run.sh