Groovy on instantserver.io thanks to GVM
I recently came across InstantServer.io, a nice little service that allows you to instantiate an Ubuntu server for testing, for 35 minutes, on Amazon EC2. You click on the green button, and you’re given an account and a password, as well as the details to connect onto the machine through SSH.
Please note that the service seems to be victim of its success, as requesting a new server takes more and more time it seems.
I immediately thought about installing and launching Groovy on those remote servers, using GVM. However, there’s no “unzip” command installed, and there’s no JDK as well. So there are a few extra steps to be taken. I wanted to blog about the details (which I’m actually doing now!), but Tim Yates beat me to it with his detailed instructions!
So my task is now simplified, and I’ll simply copy the instructions here, thanks Tim!
Create an instant server at http://instantserver.io/
Log into it using the username/password they supply
Run:
sudo apt-get install unzip
And when that’s done, run:
sudo apt-get install openjdk-7-jre-headless export JAVA\_HOME=/usr/lib/jvm/java-7-openjdk-amd64
Then, install GVM:
curl -s get.gvmtool.net | bash
And source the GVM script:
source "/home/ubuntu/.gvm/bin/gvm-init.sh"
Install Groovy with GVM:
gvm install groovy
And test:
groovy -e "println 'Hello'"
Voilà !