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

Add rstats templates #136

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add rstats templates #136

wants to merge 2 commits into from

Conversation

psolymos
Copy link

Signed-off-by: Peter Solymos [email protected]

I created R/rstats templates using different HTTP frameworks and base images. I've decided to add the following 2 to the templates.json file of the store repository for the following reason:

  • rstats-minimal: vanilla R + classic watchdog on Alpine base image, should be suitable as the smallest build for text/JSON based functions not needing additional R functionality
  • rstats-base-plumber: R with plumber package installed + of-watchdog on Debian base image, this is the most versatile, plumber is mature with great community support and easy to add serializers/parsers through code annotation.

The https://github.com/analythium/openfaas-rstats-templates repository has other templates that might not be all suitable for mainstream consumption. The repo also has detailed documentation and an increasing number of examples.

R templates was discussed previously on Slack and offline, thanks for the great feedback.

I opened the related #114 request previously.

Signed-off-by: Peter Solymos <[email protected]>
@alexellis
Copy link
Member

Hi Peter,

Is this template multi-arch?

Alex

@alexellis
Copy link
Member

The command "jq empty store.json" exited with 0.
0.01s$ jq empty templates.json
parse error: Expected separator between values at line 362, column 5
The command "jq empty templates.json" exited with 4.
```

It seems like the build is failing. Can you look into it please?

Signed-off-by: Peter Solymos <[email protected]>
@psolymos
Copy link
Author

psolymos commented Jan 21, 2021

Thanks @alexellis for having a look. I haven't tested multi-arch with these templates. Should I try docker buildx as described here? What's the preferred way to test it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants