new clojure install

This commit is contained in:
Brian Seymour 2021-03-12 14:41:43 -06:00
parent 6ff766d90b
commit ac44a5c373
3 changed files with 6 additions and 7 deletions

View File

@ -17,7 +17,7 @@ apt-get install -y \
nano wget build-essential pkg-config libxml2-dev \
libsqlite3-dev mono-complete curl cmake libpython2.7-dev \
ruby libtinfo-dev unzip git openssl libssl-dev sbcl libevent-dev \
ninja-build
ninja-build maven
# install python2
# final binary: /opt/python2/Python-2.7.17/python
@ -315,10 +315,9 @@ source /opt/.profile
# final binary: /opt/clojure/bin/clojure
# get version: /opt/clojure/bin/clojure -version
cd /opt && mkdir clojure && cd clojure
curl -O https://download.clojure.org/install/linux-install-1.10.2.796.sh
chmod +x linux-install-1.10.2.796.sh
./linux-install-1.10.2.796.sh --prefix /opt/clojure
echo 'export PATH=$PATH:/opt/clojure/bin' >> /opt/.profile
git clone https://github.com/clojure/clojure.git
cd clojure
mvn -Plocal -Dmaven.test.skip=true package
# create runnable users and apply limits
for i in {1..150}; do

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$1
timeout -s KILL 10 xargs -a args.args -d '\n' clojure -Sdeps '{:mvn/local-repo "/opt/.m2/repository"}' -M code.code < stdin.stdin
timeout -s KILL 10 xargs -a args.args -d '\n' java -jar /opt/clojure/clojure/clojure.jar code.code < stdin.stdin

View File

@ -22,7 +22,7 @@ lxc-attach --clear-env -n piston -- /bin/bash -l -c "g++ --version"
echo '---'
echo 'clojure'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "clojure -version"
echo '1.10.2'
echo '---'
echo 'crystal'