...
If it is your first time pulling the images, you will need to login with docker to our artifactory, otherwise, you will not be able to pull the image.
Code Block |
---|
docker login docker.repository.sca.accenture.com |
Then, as said before, you must enter your artifactory credentials.
NEWSAGA_CONFIG : this JSON-like string contains all the config to overwrite the default one that comes with the image. It must be a one liner string due to environmental limitations when using docker.
For example:
This is a fragment of the config for SAGA to run.
Code Block | ||
---|---|---|
| ||
{ "config": { "apiPort": 8080, "host": "0.0.0.0", "allow-domains": "localhost", "serverTimeout": 30000, "javalinPayloadSize": 10000000, "security": { "enable": false, "encryptionKeyFile" : "./bin/saga.ek", "inactiveInterval": 600, "users": [{ "username": "admin", "password": "password", "roles": "admin" }] }, "providers": [ { "name": "filesystem-provider", "type": "FileSystem", "baseDir": "./config" }, { "name": "saga-provider", "type": "Elastic", "nodeUrls": ["http://localhost:9200"], "timestamp": "updatedAt", "indexName": "saga", "encryptionKeyFile" : "./bin/saga.ek", "authentication": "none", "timeout": 90, "exclude": [ "updatedAt", "createdAt" ] } ], "solutions": [ { "display": "Saga", "elasticSearch": { "nodeUrls": ["http://localhost:9200"], "indexName": "saga", "encryptionKeyFile" : "./bin/saga.ek", "authentication": "none", "timeout": 90, "delay": 5, "retries": 3 } } ] } } |
And this is in the one-liner style that the NEWSAGA_CONFIG environmental variable accepts:
Code Block | ||
---|---|---|
| ||
{"config":{"apiPort":8080,"host":"0.0.0.0","allow-domains": "localhost","serverTimeout": 30000,"javalinPayloadSize": 10000000,"security":{"enable":false,"encryptionKeyFile":"./bin/saga.ek","inactiveInterval":600,"users":[{"username":"admin","password":"password","roles":"admin"}]},"providers":[{"name":"filesystem-provider","type":"FileSystem","baseDir":"./config"},{"name":"saga-provider","type":"Elastic","nodeUrls":["http://localhost:9200"],"timestamp":"updatedAt","indexName":"saga","encryptionKeyFile":"./bin/saga.ek","authentication":"none","timeout":90,"exclude":["updatedAt","createdAt"]}],"solutions":[{"display":"Saga","elasticSearch":{"nodeUrls":["http://localhost:9200"],"indexName":"saga","encryptionKeyFile":"./bin/saga.ek","authentication":"none","timeout":90,"delay":5,"retries":3}}]}} |
Note |
---|
This NEWSAGA_CONFIG is temporal, we needed a way to configure environmental variables quickly. |
JAVA_MAX_META_MEMORY : The amount of initial memory Saga will start with. Default is '1024m'.
Info |
---|
All these values can be marked as ‘g' for GB, ‘m' for MB and ‘k' for KB. |
...