fescobar / allure-docker-service-ui

Allure Docker Service UI provides a friendly user interface for frankescobar/allure-docker-service API container.
Apache License 2.0
81 stars 40 forks source link

Feature: Allure public api url as script parsing #23

Closed kornel-filep closed 2 years ago

kornel-filep commented 2 years ago

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!