Giter VIP home page Giter VIP logo

egl-cern's Introduction

EGL Server

How to setup EGL server?

All configuration settings used for setting up an EGL server is passed through environment variables through the .env file for local/docker development or .env.okd for deploying to OpenShift/OKD. Templates for those can be found in env_templates/ directory.

Local installation (using docker-compose)

  1. Install docker and docker-compose
  2. Get the required API keys.
  • Mapquest Geolocation API key from here
  • Request API keys from CERN ServiceNow (request to MONIT team) for the following data sources
    • 7794 for FTS transfer data
    • 9023 for ATLAS job status data
  1. Put API keys and other setup settings (PostgreSQL config, Django admin, etc.) in .env file in the root directory of the project according to the template in env_templates/
  2. Run with docker-compose up. It will create 2 containers, a db container that runs Postgres and a web container running the EGL server.
  3. docker-compose down to stop it.

OpenShift/OKD installation

  1. Create a PaaS project from CERN Web Services. Install the oc(OpenShift client) tool locally.
  2. Get the required API keys.
  • Mapquest Geolocation API key from here
  • Request API keys from CERN ServiceNow (request to MONIT team) for the following data sources
    • 7794 for FTS transfer data
    • 9023 for ATLAS job status data
  1. Put API keys and other setup settings (PostgreSQL config, Django admin, etc.) in .env.okd file in the root directory of the project according to the template in env_templates/. Make sure you also fill in OKD_FQDN as this field is used by the Django application to allow access from the host.
  2. Once it's activated go to openshift and Copy login command. Execute in a terminal.
  3. oc project <YOUR PROJECT NAME> to select your project.
  4. Copy PostgreSQL template. In OpenShift Add to Project -> Import YAML/JSON and paste the template JSON.
  5. Create an instance with DB name, username, and password matching the ones in .env.okd and the service has to be named postgresql (The application will use those to connect to the DB in the postgresql container)
  6. In openshift/django_with_postgres/deploy.sh change the GitHub URL with an URL to your fork and the tags of the Docker image to point to your DockerHub account.
  7. Execute cd openshift/django_with_postgres && ./deploy.sh to deploy to OpenShift.

egl-cern's People

Contributors

boris-vasilev avatar maany avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.