Skip to content
grycapPublic

About

Application Deployment management with the Infrastructure Manager

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

4 watching

Forks

Repository files navigation

ADIM

Test ADIM SQAaaS badge shields.io DOI

Overview

Application Deployment with Infrastructure Manager implements EOSC Application Deployment Management API.

Requirements

Python 3.5.2+

Configuration

Set this environment variables to configure the ADIM service:

LOG_LEVEL=info
IM_URL=http://localhost:8800
DB_URL=file:///tmp/adim.db
# db or vault
ALLOCATION_STORE=db
VAULT_URL=https://secrets.egi.eu
# Optional Fernet keys; configure outside the repository.
# DB_ENCRYPT_KEY encrypts DB allocations (including public allocations).
# VAULT_ENCRYPT_KEY encrypts private allocations before writing them to Vault.
# DB_ENCRYPT_KEY=<Fernet key>
# VAULT_ENCRYPT_KEY=<Fernet key>
# Public allocations can be managed only by these OIDC subjects.
#PUBLIC_ALLOCATIONS_ADMINS="admin-subject-1,admin-subject-2"
#ROOT_PATH=/adim
# git or rc
APPLICATIONS_STORE=git
# In case of git, the repository where to store the applications
APPLICATIONS_REPO="https://github.com/grycap/tosca/blob/eosc_lot1/templates/"
# In case of RC, the URL of the Resource Catalog API
RESOURCE_CATALOG="https://providers.sandbox.eosc-beyond.eu/api/public"
# Optional static test Bearer tokens (never enable in production).
#ADMIN_TOKEN=<long random admin test token>
#USER_TOKEN=<long random user test token>
# Comma separated list of OIDC issuers to accept tokens from
OIDC_ISSUERS="https://aai.egi.eu/auth/realms/egi,https://aai-demo.egi.eu/auth/realms/egi,https://proxy.aai.open-science-cloud.ec.europa.eu"
# Audience to check in the token, if not specified, no audience check will be performed
#OIDC_AUDIENCE=adim
# Comma separated list of groups to check in the token, if not specified, no group check will be performed
#OIDC_GROUPS="eos-beyond.eu"
# Comma separated list of user subs that will be admin of this instance
# (for public allocation creation)
#ADMIN_USERS=""

Or you can set an .env file as the .env.example provided.

Public allocations are stored separately in the public_allocations DB table/collection, regardless of ALLOCATION_STORE. Without DB_ENCRYPT_KEY, DB data remains unencrypted. When private allocations use Vault, they continue to use that backend; VAULT_ENCRYPT_KEY is optional and encrypts the payload before it reaches Vault. Existing data must be migrated before changing encryption mode or key.

Usage

To run the server, please execute the following from the root directory:

pip3 install -r requirements.txt
python3 -m adim

and open your browser to here:

http://localhost:8080/

Running with Docker

To run the server on a Docker container, please execute the following from the root directory:

# building the image
docker build -t adim .

# starting up a container
docker run -p 8080:8080 adim

# starting up a setting the IM_URL variable
docker run -p 8080:8080 -e IM_URL=https://im.egi.eu/im ghcr.io/grycap/adim

About

Application Deployment management with the Infrastructure Manager

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages