Skip to content

A startpage to verify that everything is up after provisioning the DevOps Stack

License

Notifications You must be signed in to change notification settings

camptocamp/devops-stack-helloworld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

devops-stack-helloworld

A customized Nginx container to provide a static web page used to verify that everything is up after provisioning our DevOps Stack.

The provided Dockerfile copies the static page on devops-stack-helloworld to the folder /usr/share/nginx/html inside the container. The Nginx configuration file metrics.conf exposes a web page containing the metrics that an exporter can send to Prometheus (like in our use-case here).

This container expects to have the hyperlinks.js file overloaded during the deployment of the container, usually using a ConfigMap.

To test this web site locally, simply create an hyperlink.js (you can use the content from this ConfigMap) and then run this command on the same folder:

docker run --publish 8080:80 --mount type=bind,source="$(pwd)"/hyperlinks.js,target=/usr/share/nginx/html/assets/js/hyperlinks.js,readonly ghcr.io/camptocamp/devops-stack-helloworld:latest

You can then visit https://localhost:8080 to view the web site and if everything is good you can then kill the container and then delete hyperlink.js you created before.

Release instructions

The image is built automatically as long as there is a tag added to this repository. In order to do this, create a tag and push a tag on the main branch using the following steps:

git tag v1.0.5 # Use the correct versions instead of the ones in the example
git push --tags

Then, check if there is a new release available in the Packages section on this repository.