You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/02/04 20:11:38 UTC
[GitHub] csantanapr commented on issue #9: Swift 4 image not available in Docker Hub?
csantanapr commented on issue #9: Swift 4 image not available in Docker Hub?
URL: https://github.com/apache/incubator-openwhisk-runtime-swift/issues/9#issuecomment-362935611
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!"
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services