mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-07 18:56:26 +02:00
remove **everything** in preparations for v3
This commit is contained in:
parent
b9ef21cbea
commit
c5f3305c23
103 changed files with 1 additions and 3179 deletions
|
@ -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
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"language": "python",
|
||||
"source": "print('test')",
|
||||
"stdin": "",
|
||||
"args": []
|
||||
}
|
|
@ -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
|
|
@ -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
|
||||
```
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue