Old Slave Script

This script was used to initialize OpenLMIS Slaves. Currently everything is pre-installed on the AMI, so this it is not necessary. It is placed here for reference:

# OLD AMI: ami-759bc50a # The new one has Docker & Compose pre-installed # It also has ubuntu added to the Docker group sudo apt-get update -y #echo 'Waiting for dpkg' #while sudo fuser /var/{lib/{dpkg,apt/lists},cache/apt/archives}/lock >/dev/null 2>&1; do # echo 'Waiting' # sleep 1 #done echo "Installing JDK" sudo apt-get install -y openjdk-8-jre-headless echo "Installing packages" sudo apt-get -y install git git-lfs zip echo "Running Git LFS script" curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash echo "create var/www/html" sudo mkdir -p /var/www/html/ echo "allowing ubuntu user to access /var/www/html" sudo chown -R ubuntu:ubuntu /var/www/html/ ####### OLD CODE ######### #sudo add-apt-repository -y ppa:webupd8team/java #sudo apt-get update #echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections #echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections #sudo apt-get -y install oracle-java8-installer #JAVA 8 IS NO LONGER AVAILABLE FROM PPA :C #yes | sudo add-apt-repository ppa:linuxuprising/java #sudo apt update #echo oracle-java12-installer shared/accepted-oracle-license-v1-2 select true | sudo /usr/bin/debconf-set-selections #echo oracle-java12-installer shared/accepted-oracle-licence-v1-2 boolean true | sudo /usr/bin/debconf-set-selections #yes | sudo apt-get install oracle-java12-installer #echo oracle-java12-installer shared/accepted-oracle-license-v1-2 select true | sudo /usr/bin/debconf-set-selections #echo oracle-java12-installer shared/accepted-oracle-licence-v1-2 boolean true | sudo /usr/bin/debconf-set-selections #sudo apt-get install oracle-java12-set-default #sudo apt-get -y install python-pip #sudo pip install --upgrade pip #sudo pip install docker-compose #echo "adding ubuntu user to docker group" #sudo usermod -aG docker ubuntu #echo "Downloading docker compose" #sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose #echo "Making docker compose executable" #sudo curl -sSL https://get.docker.com/ | sh #sudo apt-get -y install docker.io docker-compose

OpenLMIS: the global initiative for powerful LMIS software