During my work with allure service and ui I found it quite useful to be able to pass an environment variable as a script, which gets evaluated on runtime in run.sh.
With this what might be possible is easy deployment on Amazon EC2 instances or in ECS.
By specifying 2 environment variables:
ALLURE_DOCKER_PUBLIC_API_URL: "echo http://$$(curl http://checkip.amazonaws.com)"ALLURE_DOCKER_PUBLIC_API_URL_IS_SCRIPT: 1
We get the provided script executed, and the URL of the allure service is dynamically evaluated.
This way, it is easier to deploy allure-service and ui using amazon CDK and CloudFormation templates.
During my work with allure service and ui I found it quite useful to be able to pass an environment variable as a script, which gets evaluated on runtime in
run.sh
.With this what might be possible is easy deployment on Amazon EC2 instances or in ECS. By specifying 2 environment variables:
ALLURE_DOCKER_PUBLIC_API_URL: "echo http://$$(curl http://checkip.amazonaws.com)"
ALLURE_DOCKER_PUBLIC_API_URL_IS_SCRIPT: 1
We get the provided script executed, and the URL of the allure service is dynamically evaluated. This way, it is easier to deploy allure-service and ui using amazon CDK and CloudFormation templates.
Any feedback on this is welcome!