add swift support
This commit is contained in:
parent
e31862c65e
commit
1fe251cb49
|
@ -70,6 +70,7 @@ func Execute(res http.ResponseWriter, req *http.Request) {
|
||||||
"python", "python2", "python3",
|
"python", "python2", "python3",
|
||||||
"r",
|
"r",
|
||||||
"ruby",
|
"ruby",
|
||||||
|
"swift",
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if the supplied language is supported
|
// check if the supplied language is supported
|
||||||
|
|
|
@ -73,6 +73,9 @@ case "$lang" in
|
||||||
"java")
|
"java")
|
||||||
bin=java
|
bin=java
|
||||||
;;
|
;;
|
||||||
|
"swift")
|
||||||
|
bin=swift
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "invalid language"
|
echo "invalid language"
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -13,7 +13,10 @@ lxc-attach -n piston
|
||||||
export PATH=/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
|
export PATH=/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
|
||||||
sed -i 's/http:\/\/archive.ubuntu.com\/ubuntu/http:\/\/mirror.math.princeton.edu\/pub\/ubuntu/' /etc/apt/sources.list
|
sed -i 's/http:\/\/archive.ubuntu.com\/ubuntu/http:\/\/mirror.math.princeton.edu\/pub\/ubuntu/' /etc/apt/sources.list
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get -y install tzdata nano dpkg-dev build-essential python python3 ruby nodejs golang php7.2 r-base mono-complete nasm openjdk-8-jdk
|
apt-get -y install ubuntu-make
|
||||||
|
apt-get -y install git tzdata nano dpkg-dev build-essential python python3 ruby nodejs golang php7.2 r-base mono-complete nasm openjdk-8-jdk
|
||||||
|
umake swift
|
||||||
|
|
||||||
|
|
||||||
# create users and apply limits
|
# create users and apply limits
|
||||||
for i in {1..150}; do
|
for i in {1..150}; do
|
||||||
|
|
Loading…
Reference in New Issue