remove **everything** in preparations for v3

This commit is contained in:
Thomas Hobson 2021-02-18 18:32:26 +13:00
parent b9ef21cbea
commit c5f3305c23
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
103 changed files with 1 additions and 3179 deletions

View file

@ -1,12 +0,0 @@
ab -c 30 -n 1000 \
https://emkc.org/api/v1/piston/versions
ab -c 30 -n 1000 \
-p benchmark_payload.txt \
-T 'application/json' \
https://emkc.org/api/v1/piston/execute
time for i in {1..100}; do
timeout -s KILL 3 lxc-attach --clear-env -n piston -- /bin/bash -l -c "runuser runner1 /bin/bash -c 'ls -l '"
done

View file

@ -1,6 +0,0 @@
{
"language": "python",
"source": "print('test')",
"stdin": "",
"args": []
}

View file

@ -1,14 +0,0 @@
# create and start container
lxc-create -t download -n piston -- --dist ubuntu --release bionic --arch amd64
./start
# open a shell to the container
./shell
# run everything located in container/install.sh
# leave container
exit
# optionally run tests
./test_all_lxc

View file

@ -1,24 +0,0 @@
# make piston image
lxc-clone -KMP /mnt/piston_image piston piston
sed -i 's/\/mnt\/piston_image/\/var\/lib\/lxc/' piston/config
tar -czf piston.tar.gz piston/
# restore piston image
cd /var/lib/lxc
tar -xzf piston.tar.gz
```
# get piston image
cd /var/lib/lxc
wget whatever url
tar -xzf piston.tar.gz
sed -i "s/virtbr0/$(ip a | grep br0: | cut -d' ' -f2 | sed 's/://gi')/" piston/config
# start piston
cd /path/to/piston/lxc
./start
```

View file

@ -1,13 +0,0 @@
[Unit]
Description=Piston
[Service]
Type=simple
User=root
Environment=PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/go/bin
WorkingDirectory=/root/piston/api
ExecStart=/root/piston/api/start
Restart=on-failure
[Install]
WantedBy=multi-user.target