AlCaVal: Relval submision tool for AlCa
Documentation: Wiki
Make sure following files are present before starting the application.
secrets/client_secrets.json
Put appropriate values forclient_id
andclient_secret
. If you do not have them, you can register new application at application portal
{
"web": {
"client_id": "<oidc client id here>",
"client_secret": "<oidc client secret here>"
}
}
secrets/environs.txt
# Required variables for AlCaVal application
FLASK_SECRET_KEY='SOME random secret string for Flask'
DATABASE_USER=root
DATABASE_PASSWORD=example
INSTANCE=dev
# MongoDB container variables
MONGO_INITDB_ROOT_USERNAME=${DATABASE_USER}
MONGO_INITDB_ROOT_PASSWORD=${DATABASE_PASSWORD}
# Mongo-Express container variables
ME_CONFIG_BASICAUTH_USERNAME=alcauser-me-user
ME_CONFIG_BASICAUTH_PASSWORD=alcauser-me-pass
ME_CONFIG_MONGODB_AUTH_USERNAME=${DATABASE_USER}
ME_CONFIG_MONGODB_AUTH_PASSWORD=${DATABASE_PASSWORD}
secrets/jira_credentials.cfg
{
"username": "<jira-username>",
"password": "<jira-password>"
}
secrets/ssh_credentials.cfg
{
"username": "<lxplus-username>",
"password": "<lxplus-password>"
}
secrets/userkey.pem
GRID user-key to be used for accessing cmsweb servicessecrets/usercert.pem
GRID user-certificate to be used for accessing cmsweb services
Install docker in case it is not installed in your machine. Follow Install Docker Engine and Install Docker Compose.
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce
sudo docker --version
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Note: Replace 1.29.2 with the latest version of Docker Compose.
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
Then launch application using:
docker-compose up app
Application is accesible at http://localhost:8080 and database can be accessed from http://localhost:8081.