Skip to content

Web interface for deployments, with plugin architecture and kubernetes support

License

Notifications You must be signed in to change notification settings

publichtml/samson-sample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

samson-sample

Samson を理解するために、サンプルのクライアントと接続してデプロイを試せるようにしたもの。

サンプルクライアントは rails7-samson-sample-client にあり、Welcome と表示するだけの Rails アプリ。

Usage

  • docker-compose をインストールしておく
  • Docker の host マシンの公開鍵を用意しておく
    • 実際の環境を模擬するためにコンテナ同士の直接接続ではなく host の ssh-agent を介した接続をしている
$ git clone --recursive git@github.com:publichtml/samson-sample.git

$ cd samson-sample

$ cp /path/to/id_rsa.pub rails7-samson-sample-client/id_rsa.pub

$ docker-compose -f docker-compose.with_sample_client.yml build
$ docker-compose -f docker-compose.with_sample_client.yml up -d
  • http://localhost:3000 にアクセスすると Samson が使える
  • Produciton stage でデプロイ実行
  • http://localhost:4000 でデプロイされたサンプルアプリが動いている
    • Welcome とだけ表示される

Tips

コンテナに入って rails console を起動する際は ENV["USER"] をセットしておく必要がある。

$ export USER=root
$ bin/rails c

Original README

Build status FOSSA Status DockerHub Status

Samson is a web interface for deployments. Live Demo It is currently in maintenance mode (bugfix, but no new features) because we are migrating off it.

View the current status of all your projects:

Allow anyone to watch deploys as they happen:

View all recent deploys across all projects:

Deployment Workflow

Create a project and 1 or more stages (staging/production etc), then selects a version and start the deploy.

Samson will:

  • clone git repository
  • execute commands associated with the stage (or execute API calls for kubernetes)
  • stream deploy output to everybody who wants to watch
  • persist deploy output for future review

Requirements

  • MySQL, Postgresql, or SQLite
  • Ruby (see .ruby-version)
  • Git (>= 1.7.2)

Documentation

Contributing

Issues and Pull Requests are always welcome, submit your idea!

License

Use of this software is subject to important terms and conditions as set forth in the LICENSE file

About

Web interface for deployments, with plugin architecture and kubernetes support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 89.1%
  • HTML 8.6%
  • JavaScript 1.5%
  • SCSS 0.7%
  • Shell 0.1%
  • Dockerfile 0.0%