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

Container extension guide missing important facts #3035

Open
1000TurquoisePogs opened this issue Jul 27, 2023 · 0 comments
Open

Container extension guide missing important facts #3035

1000TurquoisePogs opened this issue Jul 27, 2023 · 0 comments
Labels
area: misc This issue is a miscelleneous doc requirement not for a specific component or area

Comments

@1000TurquoisePogs
Copy link
Member

1000TurquoisePogs commented Jul 27, 2023

After struggling through some regressions on the app-server container, I realized the reason for the regressions was a few undocumented facts needed to be successful in containers.

I'm writing this here so I don't forget, but the whole container extension sections of zowe server docs do need review by dev and improvement.

Here's what I learned:

  • You cannot read zowe.yaml literally in containers, unfortunately. Some properties are misleading or missing versus zOS

In particular:

  • zowe.externalDomains can be used for finding the gateway on zOS, but it cannot be used this way on containers. The addresses here may be inaccessible to containers, yet accessible to the browser - the main purpose of this field.
  • Instead, ZWE_GATEWAY_HOST is an env var that can be used to find the gateway. But what if there are multiple gateways?
  • The accessible hostname for discovery ALSO is not the same as the one for gateway, and ALSO is not zowe.externalDomains.
  • For some reason, it's still ZWE_GATEWAY_HOST
  • zowe.externalPort also can't be accessed. you need component.gateway.port for gateway.

If you need to make decisions dependent upon platform, there are environment variables available.

  • ZWE_RUN_IN_CONTAINER="true" means you are in a container
  • ZWE_RUN_IN_ZOS="true" means you are not in a container, it is "" in a container.
@1000TurquoisePogs 1000TurquoisePogs added the area: misc This issue is a miscelleneous doc requirement not for a specific component or area label Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: misc This issue is a miscelleneous doc requirement not for a specific component or area
Projects
None yet
Development

No branches or pull requests

1 participant