Replies: 1 comment 9 replies
-
Alternatively, we update all references to the deprecated one-liner, so that the PLATFORM var is "always" included and when it is not included (for whatever reason) that the user is prompted for their desired platform. To assist in avoiding broken programmatic invocations of this script, a helpful return message could point out that no "PLATFORM" preference was provided. Changing to from |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently the bash script to install mesheryctl and start Meshery was updated to allow the users specify a platform to deploy Meshery to (Docker and Kubernetes).
Users are able to pass in the flags as shown below(this is a work around)-
But, if the user does not specify a platform, it will throw an error(which it should not)-
These errors and workarounds are there because with the current structure of the one-line installer-
curl -L https://git.io/meshery | bash -
, we would not be able to pass in flags or get an input from the user.The error "Invalid platform: " is because, when the user does not specify a platform, the bash script reads from the standard input. But, this is already taken up by the script hence causing the platform to be " " empty.
This can be fixed by changing the one liner as shown below-
We can use the
-p
flag to pass in the platform.And, if the user does not specify a platform, it will prompt the user to enter a platform and validates it-
This discussion is to decide whether we should switch to the new one liner that I'm proposing-
For Docker-
For Kubernetes-
Without specifying platform and prompting the user-
Please share what you think and how we should proceed.
Beta Was this translation helpful? Give feedback.
All reactions