Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
script
test
tmp
vendor
.dockerignore
.gitignore
.ruby-version
Dockerfile
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
package.json

README.md

This is a sample app for the Rails 5.2 Credentials and Kubernetes post.

The interesting parts are:

  • Dockerfile builds minimalistic Docker image with the app
  • .dockerignore tells Docker to ignore config/master.key
  • script/release is a script for building and pushing Docker image
  • config/deployment.yml is Kubernetes Deployment spec that uses Kubernetes secret management
  • app/controllers/helloworld_controller.rb renders decrypted secrets as HTML

That's it!