mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 03:06:26 +02:00
handle network, run code as different user than compilation
This commit is contained in:
parent
c94c7577fb
commit
7891b676eb
17 changed files with 30 additions and 24 deletions
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
rm -f /var/lib/lxc/piston/rootfs/home/ubuntu/*
|
||||
cp -f executors/* /var/lib/lxc/piston/rootfs/home/ubuntu
|
||||
mkdir -p /var/lib/lxc/piston/rootfs/exec
|
||||
rm -f /var/lib/lxc/piston/rootfs/exec/*
|
||||
cp -f executors/* /var/lib/lxc/piston/rootfs/exec
|
||||
chmod 700 /var/lib/lxc/piston/rootfs/exec/*
|
||||
|
||||
lxc-start -n piston -d
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue