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.
- Install
docker
anddocker-compose
- 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
- 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 inenv_templates/
- Run with
docker-compose up
. It will create 2 containers, adb
container that runs Postgres and aweb
container running the EGL server. docker-compose down
to stop it.
- Create a PaaS project from CERN Web Services. Install the
oc
(OpenShift client) tool locally. - 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
- 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 inenv_templates/
. Make sure you also fill inOKD_FQDN
as this field is used by the Django application to allow access from the host. - Once it's activated go to openshift and
Copy login command
. Execute in a terminal. oc project <YOUR PROJECT NAME>
to select your project.- Copy PostgreSQL template. In OpenShift
Add to Project -> Import YAML/JSON
and paste the template JSON. - Create an instance with DB name, username, and password matching the ones in
.env.okd
and the service has to be namedpostgresql
(The application will use those to connect to the DB in the postgresql container) - 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. - Execute
cd openshift/django_with_postgres && ./deploy.sh
to deploy to OpenShift.