codygreen / lab-framework-demo

2 stars 5 forks source link

NGINX Instance Name Does Not Appear On First Load #118

Open codygreen opened 3 months ago

codygreen commented 3 months ago

<GetVariable name="nginx-plus-1" /> only returns a value if the docker component is running. The initial load of the lab guide will have all docker containers stopped, so any reference to the nginx-plus-1 component in the lab guide will be empty.

After the user starts the instance, the GetVariable references are not updated.

We need a way to dynamically update all GetVariable references if the value is changed.

codygreen commented 3 months ago

We could look into a hook that forces an update when a Docker component state is changed.

codygreen commented 3 months ago

This issue would also be solved by breaking the lab guide into unique pages and have the user start the docker containers in the first page so all subsequent page loads would be able to leverage the variable lookup function.

codygreen commented 3 months ago

I have split the docker creation to the first page and the lab guide to the second page. I will remove the milestone for now and keep the issue open.