Make Ruby a first-class citizen in OpenWhisk.
A few key steps to get this ball rolling:
hello.rb script that takes in a dict (hash ?) and returns a modified dictIf we could get those three things done, we could evaluate the feasibility of this request.
hello.rb
def main( input )
if name = input[ 'name' ]
{ 'greeting' => "Hello #{name}!" }
else
{ 'greeting' => 'Hello stranger!' }
end
end
Dockerfile
FROM ruby:2.4.1
RUN gem install \
bundler \
sinatra \
activesupport \
yaml-ostruct \
couchrest \
jwt
build.gradle
ext.dockerImageName = 'rubyAction'
apply from: '../../gradle/docker.gradle'
distDocker.dependsOn ':core:actionProxy:distDocker'
Fixed by #3725
Most helpful comment
hello.rb
Dockerfile
build.gradle