remore / ruby-compute-runtime

Home Page:https://ruby-compute-runtime-demo.edgecompute.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ComputeRuntime

Ruby runtime for Fastly Compute@Edge

A Ruby Compute Runtime for Fastly's Compute@Edge platform provides the environment Ruby is executed.

Please note that This is still PoC stage for demo

Usage

You need to install wasi-preset-args before starting this project.

$ cd examples
$ bundle install
$ bundle exec ruby-compute-runtime demo.rb -o sample.wasm

$ # Try on local
$ viceroy ./sample.wasm

$ # Deploy to Compute@Edge
$ fastly compute init
$ fastly compute pack -w ./sample.wasm
$ fastly compute deploy

Development

If you update sources under ext/compute_runtime, please run ruby-compute-runtime command with --remake option as follows:

$ bundle exec ruby-compute-runtime demo.rb -o sample.wasm --remake

Otherwise, it re-uses old version of extension library.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kateinoigakukun/ruby-compute-runtime. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the ComputeRuntime project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

https://ruby-compute-runtime-demo.edgecompute.app/

License:MIT License


Languages

Language:C 75.8%Language:Ruby 23.9%Language:Shell 0.4%