Skip to content

DatasiteLabs/docker-cicd-ruby

Repository files navigation

docker-cicd-ruby

GitHub Workflow Status (with event) GitHub release (latest SemVer)

A specific Ruby container for building ruby on rails projects. You may want to use an official container unless you have similar needs and tool stacks.

Toolchain

  • GitHub CLI
  • Ruby
  • Node/NPM/Yarn
  • Dumb Init
  • Mkcert

Base container / toolchain info

This container is based off of: https://hub.docker.com/_/ruby/ and also adds node/yarn support for rails. The node/yarn support is a combination of details from https://hub.docker.com/_/node.

List of install resources used:

Generating the test rails app

It may be easiest to build locally and run to generate the rails app with the correct version.

test-app is a basic generated rails app to validate the container and dependencies.

gem install rails -v '5.2.8.1' # version is specific to a version test for the ruby version. You should be able to run others if the ruby version is supported.

rails new test-app generate a test app cd test-app bundle exec rails g scaffold hello generate a full resource and migrations bundle exec rails db:migrate RAILS_ENV=test migrate db

cd test-app
bundle exec rails test

Running the test app

./run.sh

cd test-app
rails db:migrate RAILS_ENV=development
rails s -b 0.0.0.0

Navigate to http://localhost:3000/hellos

About

Ruby container for building ruby on rails projects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •