Pyrrha-Platform / Pyrrha-Dashboard

This repository contains the next generation in-progress Pyrrha (created by Prometeo) solution dashboard based on the Carbon Design System and React.
Apache License 2.0
6 stars 7 forks source link

Using build args to insert websocket URL at docker build stage #159

Closed upkarlidder closed 2 years ago

upkarlidder commented 2 years ago

Describe at a high level the solution you're providing Using build args at docker build time to insert WEBSOCKET_URL into the dockerfile.

Note: as the URL is inserted at build time, anybody who has access to this built image will be able to see the URL using docker history. Currently we use private ICR registry to store the image, and so this should not be an issue. In any case the URL is also visible in the js file that comes out of yarn build. We can look at options to minify perhaps.

image

Ideally, the call-for-code/build-push-deploy@main action would accept build args, but it does not in it's current form.

@hawk4031 pls review. Thank you!