mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
readme updates
This commit is contained in:
parent
8de614ee94
commit
80e0304424
3 changed files with 29 additions and 1 deletions
24
var/archive.txt
Normal file
24
var/archive.txt
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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
|
||||
```
|
|
@ -234,6 +234,10 @@ chmod -R o-w *
|
|||
rm -rf /home/ubuntu
|
||||
chmod 777 /tmp
|
||||
|
||||
# disable cron
|
||||
systemctl stop cron
|
||||
systemctl disable cron
|
||||
|
||||
# leave container
|
||||
exit
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue