mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 04:56:30 +02:00
Add privileged flags where needed
This commit is contained in:
parent
b3cc3c14e8
commit
6b02d120fd
4 changed files with 10 additions and 6 deletions
|
@ -23,20 +23,21 @@ fetch_packages(){
|
|||
mkdir build
|
||||
# Start a piston container
|
||||
docker run \
|
||||
--privileged \
|
||||
-v "$PWD/build":'/piston/packages' \
|
||||
--tmpfs /piston/jobs \
|
||||
-dit \
|
||||
-p $port:2000 \
|
||||
--name builder_piston_instance \
|
||||
ghcr.io/engineer-man/piston
|
||||
|
||||
|
||||
# Ensure the CLI is installed
|
||||
cd ../cli
|
||||
npm i
|
||||
cd -
|
||||
|
||||
# Evalulate the specfile
|
||||
../cli/index.js -u "http://127.0.0.1:$port" ppman spec $1
|
||||
../cli/index.js -u "http://127.0.0.1:$port" ppman spec $1
|
||||
}
|
||||
|
||||
build_container(){
|
||||
|
@ -61,4 +62,4 @@ fetch_packages $SPEC_FILE
|
|||
build_container $TAG
|
||||
|
||||
echo "Start your custom piston container with"
|
||||
echo "$ docker run --tmpfs /piston/jobs -dit -p 2000:2000 $TAG"
|
||||
echo "$ docker run --privileged --tmpfs /piston/jobs -dit -p 2000:2000 $TAG"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue