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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to