Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fluentci-demos/fluentci-demo-ruby
- Owner: fluentci-demos
- License: mit
- Created: 2024-08-18T06:21:52.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-29T06:56:34.000Z (3 months ago)
- Last Synced: 2024-10-10T23:22:01.913Z (about 1 month ago)
- Topics: cicd, continuous-delivery, continuous-integration, devbox, nix, ruby, sinatra, wasm
- Language: Ruby
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).