recogito - danwu960/MyDocument GitHub Wiki

According to url below, install prerequisites

#install java jdk

  • sudo apt update
  • sudo apt install default-jre
  • sudo apt install default-jdk #add JAVA_HOME variable into the system
  • sudo vi /etc/environment #add JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64" and save the file, run source /etc/environment, check by "echo $JAVA_HOME"
  • sudo update-alternatives --config java

#install sbt https://www.scala-sbt.org/1.x/docs/Installing-sbt-on-Linux.html

#choose the correct jdk version for running sbt

  • sudo update-alternatives --config java

#install nvm

#install postgresql9.6

  • https://wiki.postgresql.org/wiki/Apt
  • curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null
  • sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
  • sudo apt update
  • sudo apt install postgresql-9.6 #use postgresql, different distribution of postgresql the syntax varies
  • sudo -i -u postgres
  • psql
  • \q (and then exit with 'quite')
  • create user <username> with (option) password 'thepassword' createdb;
  • create database <dbname>;
  • grant <all> on database <databasename> to <username>;

#install elasticsearch, change the version in repository link

#configure elasticsearch

  • sudo vi /etc/elasticsearch/elasticsearch.yml

#edit network.host: localhost #uncommon http.port:9300

#install docker

#install nginx, and open ufw MAKE SURE OPEN SSH port 22!

  • configure server

#build docker image with Dockerfile downloaded in recogito, go to recogito directory

  • modify docker-compose.yml, volume/source files to relative path using .

  • modigy application.conf, change the DB connection url

  • sudo docker build -t recogito-master-2021-01-21 . (this name should be identical with the image definition in Dockerfile, the last dot is very important indicating the DOCKERFILE path)

  • system backup and maintain https://github.com/pelagios/recogito2/tree/main/ops/backup

⚠️ **GitHub.com Fallback** ⚠️