Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fluentci-demos/fluentci-demo-ruby

A FluentCI Demo for Ruby
https://github.com/fluentci-demos/fluentci-demo-ruby

cicd continuous-delivery continuous-integration devbox nix ruby sinatra wasm

Last synced: 8 days ago
JSON representation

A FluentCI Demo for Ruby

Awesome Lists containing this project

README

        

# FluentCI CI/CD demo for Ruby

[![ci](https://github.com/fluentci-demos/fluentci-demo-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/fluentci-demos/fluentci-demo-ruby/actions/workflows/ci.yml)

This is an example application and CI/CD pipeline showing how to build, test a Ruby microservice using FluentCI.

Ingredients:

- Ruby Sinatra as web framework
- RSpec for tests

## Local application setup

To run the microservice:

```
fluentci run --wasm devbox run bundle config set path 'vendor/bundle'
fluentci run --wasm ruby bundle_exec rackup
```

To run tests:

```
fluentci run --wasm ruby bundle_exec rspec
```

To build and run Docker container:

```
docker build -t fluentci-demo-ruby .
docker run -p 80:4567 fluentci-demo-ruby
curl localhost
> hello world :))
```

## License

Distributed under the MIT License. See the file [LICENSE](./LICENSE).