Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-cli image has LAGOON_LOCALDEV_HTTP_PORT #901

Open
shreddedbacon opened this issue Jan 4, 2024 · 0 comments
Open

node-cli image has LAGOON_LOCALDEV_HTTP_PORT #901

shreddedbacon opened this issue Jan 4, 2024 · 0 comments
Assignees

Comments

@shreddedbacon
Copy link
Member

Because the node-cli image inherits the node image, it exposes the LAGOON_LOCALDEV_HTTP_PORT that HAProxy uses to expose the service locally with Pygmy.

This image probably doesn't need to expose this port because like php-cli it is typically used as a cli container for interacting with the environment and other components in the environment, and not serving traffic.

Since the pygmy haproxy configuration checks for the existence of this variable, simply overriding it by adding ENV LAGOON_LOCALDEV_HTTP_PORT= in a custom dockerfile that inherits from node-cli results in strange behaviour with pygmy and haproxy. Separately, the haproxy configuration should probably check if the variable is set, rather than existing.

Outside of the haproxy issue, it might be worth exploring perhaps an intermediary image called something like node-js that the node and node-cli images can inherit from, and then the LAGOON_LOCALDEV_HTTP_PORT could be exposed only in the node image. This would allow all the core logic of installing node-js to be done in isolation, then all the specific stuff for node and node-cli can be added as required. This limits the impact to users of the existing images.

@bomoko bomoko self-assigned this Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants