项目作者: semaphoreci-demos

项目描述 :
A Semaphore demo CI/CD pipeline for Kubernetes.
高级语言: Ruby
项目地址: git://github.com/semaphoreci-demos/semaphore-demo-ruby-kubernetes.git
创建时间: 2019-02-14T09:38:50Z
项目社区:https://github.com/semaphoreci-demos/semaphore-demo-ruby-kubernetes

开源协议:MIT License

下载


Semaphore CI/CD demo for Kubernetes

Build Status

This is an example application and CI/CD pipeline showing how to build, test and
deploy a microservice to Kubernetes using Semaphore 2.0.

Ingredients:

  • Ruby Sinatra as web framework
  • RSpec for tests
  • Packaged in a Docker container
  • Container pushed to Docker Hub registry
  • Deployed to Kubernetes

CI/CD on Semaphore

If you’re new to Semaphore, feel free to fork this repository and use it to
create a project.

The CI/CD pipeline is defined in .semaphore directory and looks like this:

CI/CD pipeline on Semaphore

Local application setup

To run the microservice:

  1. bundle install --path vendor/bundle
  2. bundle exec rackup

To run tests:

  1. bundle exec rspec

To build and run Docker container:

  1. docker build -t semaphore-demo-ruby-kubernetes .
  2. docker run -p 80:4567 semaphore-demo-ruby-kubernetes
  3. curl localhost
  4. > hello world :))

Additional documentation

License

Copyright (c) 2022 Rendered Text

Distributed under the MIT License. See the file LICENSE.