$ sudo apt update
$ sudo apt upgrade -y
$ sudo apt install htop git
$ wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz
$ wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jre-8u131-linux-x64.tar.gz
$ sudo cp -avr jdk1.8.0_131 jre1.8.0_131 /opt
$ sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_131/bin/java 100
$ sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_131/bin/java 100
$ sudo update-alternatives --install /usr/bin/java java /opt/jre1.8.0_131/bin/java 100
$ sudo apt install maven
$ java -version
$ mvn -version
$ wget -qO- https://get.docker.com/ | sh
$ sudo usermod -aG docker ubuntu
$ logout
$ docker pull jenkins
Jenkins requires Maven but it is not a dependency
$ docker pull maven
$ mkdir temp
a new directory with non-root access is required
$ docker run -p 8080:8080 -p 50000:50000 -v /home/ubuntu/temp:/var/jenkins_home --detach jenkins
$ docker run -ti -v /home/ubuntu/temp:/home/info/ jenkins bash
$ java -version
$ cat /home/info/secrets/initialAdminPassword
$ docker pull cptactionhank/atlassian-jira
$ docker run --detach --publish 8081:8080 cptactionhank/atlassian-jira:latest
$ docker pull sonatype/nexus
$ docker pull zabbix/zabbix-server-mysql
$ git clone https://github.com/dsm23/testrepo
$ cd game-of-life
$ mvn install
$ cd gameoflife-web
$ mvn jetty:run
$ docker stop $(docker ps -a -q)
$ docker rm $(docker ps -a -q)
Commands for docker containers
$ sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update
$ sudo apt-get install ansible
$ docker pull cloudesire/tomcat:7-jre8
$ docker run --detach -p 8888:8080 -e TOMCAT_PASS="thispass" cloudesire/tomcat:7-jre8
then go to the url of the AWS Instance containing Tomcat then hit 'Manager App' then enter 'admin' as username and 'thispass' as password