Skip to content

eInfraCentral/eic-operations

Repository files navigation

eic-operations

How to setup your very own eInfraCentral instance:

  1. Dependencies Deploy:

    • Docker (17.12.0-ce, and 18.03.0-ce tested ; try http://get.docker.com/)
    • Docker-compose (1.14.0, 1.16.1, and 1.19.0 tested ; try sudo curl -L https://github.com/docker/compose/releases/download/1.19.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose)

    Back:

    • Java 8

    Back build:

    • Schemagen 2.2.8
    • Maven 3.5.0

    Front:

    Front build:

    • make (spawned by gyp on npm install)
  2. Get the code

    git clone https://github.com/eInfraCentral/eic-operations.git
    cd eic-operations
    ./clone.sh
  3. Install site dependencies, then set up nginx, and analytics

    ./prod.sh install
    ./sites.sh setup
    ./anal.sh setup
  4. Fill in eic-docker/secret.env with your instance's secrets (look at the template there for guidance)

  5. Build & raise backend

    ./mcip.sh
    ./tom.sh up
  6. Populate repository in some way (either POST your own, or use ./dat.sh add resources for an older snapshot of eic's catalogue)

    ./dat.sh add types
    ./dat.sh add resources
    ./tom.sh restart
  7. Build & raise frontend, and analytics:

    ./prod.sh up
    ./anal.sh up
  • To enable maintenance page:
    ./sites.sh enable maintenance
  • To disable maintenance page:
    ./sites.sh enable proxy
  • To run docker as a sudoer:
    sudo groupadd docker
    sudo usermod -aG docker $USER
  • To fix elastic restart loops until reboot:
    sysctl -w vm.max_map_count=262144
  • To fix elastic restart loops forever:
    • Put it in sysctl.conf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages