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

Swift 4 image not available in Docker Hub? #9

Closed
jthomas opened this issue Jan 30, 2018 · 1 comment
Closed

Swift 4 image not available in Docker Hub? #9

jthomas opened this issue Jan 30, 2018 · 1 comment

Comments

@jthomas
Copy link
Member

jthomas commented Jan 30, 2018

Steps to reproduce the issue:

README refers to public image (openwhisk/action-swift-v4) as the Swift 4 runtime.

$ wsk action update helloSwiftly hello.zip openwhisk/action-swift-v4

This image does not exist in Docker Hub.

https://hub.docker.com/r/openwhisk/action-swift-v4/

@csantanapr
Copy link
Member

There is an initial image available now enjoy 🍻

💋  $ wsk property get --apihost
whisk API host		openwhisk.ng.bluemix.net

💋  $ cat main.swift
func main(args: [String:Any]) -> [String:Any] {
    if let name = args["name"] as? String {
        return [ "greeting" : "Hello \(name)!" ]
    } else {
        return [ "greeting" : "Hello stranger!" ]
    }
}

💋  $ bx wsk action create helloswift4 main.swift --docker openwhisk/action-swift-v4
ok: created action helloswift4


💋  $ bx wsk action invoke helloswift4 -r -p name Swifter
{
    "greeting": "Hello Swifter!"
}

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