add swift support

This commit is contained in:
Brian Seymour 2018-10-30 22:51:00 -05:00
parent e31862c65e
commit 1fe251cb49
3 changed files with 8 additions and 1 deletions

View File

@ -70,6 +70,7 @@ func Execute(res http.ResponseWriter, req *http.Request) {
"python", "python2", "python3",
"r",
"ruby",
"swift",
}
// check if the supplied language is supported

View File

@ -73,6 +73,9 @@ case "$lang" in
"java")
bin=java
;;
"swift")
bin=swift
;;
*)
echo "invalid language"
exit

View File

@ -13,7 +13,10 @@ lxc-attach -n piston
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
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
for i in {1..150}; do