From 1fe251cb496ec22b41ff16810b46d8b030bedba7 Mon Sep 17 00:00:00 2001 From: Brian Seymour Date: Tue, 30 Oct 2018 22:51:00 -0500 Subject: [PATCH] add swift support --- api/main.go | 1 + lxc/execute | 3 +++ lxc/notes.txt | 5 ++++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/api/main.go b/api/main.go index 7f1e68a..22945dc 100644 --- a/api/main.go +++ b/api/main.go @@ -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 diff --git a/lxc/execute b/lxc/execute index 722423f..8e06dfd 100755 --- a/lxc/execute +++ b/lxc/execute @@ -73,6 +73,9 @@ case "$lang" in "java") bin=java ;; +"swift") + bin=swift + ;; *) echo "invalid language" exit diff --git a/lxc/notes.txt b/lxc/notes.txt index 685c40b..5124a35 100644 --- a/lxc/notes.txt +++ b/lxc/notes.txt @@ -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