-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
OpenWhisk Docker Image for Edge component. #2152
Comments
@csantanapr is this done? |
not sure how to go about this one. |
@csantanapr the "Edge" image will need to mount in the This means that the current Ansible scripts should more or lest just work as they are. Minus the need to already have the cli prebuilt and build the BlackBox tarball. Then When deploying Kubernetes, you can take a look at this README for how configuring those same values would go. |
The only barrier to using a vanilla docker image for nginx now is this stanza in nginx.conf:
I can see four ways to deal with this:
If we need to take path 4, I think I can do it with an InitContainer in Kubernetetes so we could use a vanilla nginx image + a custom image to do the download of the CLI to the right place in the running containers file system. @rabbah @csantanapr opinions on what this should look like when we are done? |
I like option 3 We already cleaned up this way the swift sdk and the docker/blackbox sdk |
ok. I'll plan on submitting a PR for 3 on Monday unless Rodric weighs in with a different opinion. |
Hi @dgrove-oss One way to do it is to introduce a 3rd option for |
I'm wondering if we need anything other than |
These routes may be overridden in a custom deployment. So for the defaults I think we should point to the official download sites and defer to private deployments to support alternate packaging.
|
I would say going forward we only support redirect mode, and do it for kube like that. |
Custom deployment have their choice on how they want to distribute the CLI, it's open based on their use case. |
Sounds good to me. I'll do a PR to change nginx.conf to have the redirects |
As was already done with the iOS starter app and the blackbox SDK, switch to making the cli binaries available via a redirect to the openwhisk-cli release page instead of copying cli binaries into the edge container. As discussed in issue apache#2152 this eliminates the need for a custom OpenWhisk edge image for downstream deployments. Also update GoCLINginxTests to check for redirects instead of direct downloads and remove the cli role and related variable definitions from ansible.
As was already done with the iOS starter app and the blackbox SDK, switch to making the cli binaries available via a redirect to the openwhisk-cli release page instead of copying cli binaries into the edge container. As discussed in issue apache#2152 this eliminates the need for a custom OpenWhisk edge image for downstream deployments. Also update GoCLINginxTests to check for redirects instead of direct downloads and remove the cli role and related variable definitions from ansible.
As was already done with the iOS starter app and the blackbox SDK, switch to making the cli binaries available via a redirect to the openwhisk-cli release page instead of copying cli binaries into the edge container. As discussed in issue apache#2152 this eliminates the need for a custom OpenWhisk edge image for downstream deployments. Also update GoCLINginxTests to check for redirects instead of direct downloads and remove the cli role and related variable definitions from ansible.
Add a third remote_redirect option to the prior local and remote options for cli installation. In remote_redirect mode, the CLI binaries are not installed into the edge server's file system. All requests to download the CLI are instead redirected to an external URL (for example to download from the openwhisk-cli release page). This follows the pattern already set for the iOS starter app and blackbox SDK. See discussion in issue apache#2152.
I have seen that there were a bunch of OpenWhisk Docker images for all of the components which is pretty cool. It would be nice to also have an image for Nginx that has all of the extra pieces already baked into it like the CLI and SDKs. This we we would not have to build them and upload them as part of the deployment process.
The text was updated successfully, but these errors were encountered: