mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-09 19:46:27 +02:00
update readme and test output
This commit is contained in:
parent
d07d98c955
commit
32452894c5
3 changed files with 54 additions and 43 deletions
24
var/notes.txt
Normal file
24
var/notes.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
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue