#!/bin/bash # Equella site details PORT="8080" ADMIN_URL="http://localhost:$PORT/admin/" CONTAINER_NAME="oeq" # DB details DBUSERNAME="db_username" DBPASSWORD="db_password" DBHOST="ip_of_the_db_host" DBPORT="5432" DBNAME="equella" DB_CONNECTION_URL="jdbc:postgresql://$DBHOST:$DBPORT/$DBNAME" # Clone openequella git clone https://github.com/openequella/openEQUELLA.git openequella # Download installer into openequella/docker dir cd openequella/docker wget https://github.com/openequella/openEQUELLA/releases/download/2020.1.3/equella-installer-2020.1.3.zip # Build docker image docker build -t apereo/oeq-install-2020.1.3 . --build-arg OEQ_INSTALL_FILE=equella-installer-2020.1.3.zip --build-arg OEQ_INSTALL_ZIP_ROOT_DIR=equella-installer-2020.1.3 # Create container docker run -d --net=host -t --name $CONTAINER_NAME -e EQ_HTTP_PORT=$PORT -e EQ_ADMIN_URL=$ADMIN_URL -e EQ_HIBERNATE_CONNECTION_URL=$DB_CONNECTION_URL -e EQ_HIBERNATE_CONNECTION_USERNAME=$DBUSERNAME -e EQ_HIBERNATE_CONNECTION_PASSWORD=$DBPASSWORD apereo/oeq-install-2020.1.3 docker start $CONTAINER_NAME