Skip to content

Capistrano RVM (Ruby Version Manager) Container for Docker Framework

License

Notifications You must be signed in to change notification settings

dockerframework-engineer/capistrano-rvm

 
 

Repository files navigation

Capistrano RVM (Ruby Version Manager) Container

Capistrano RVM (Ruby Version Manager) Container of Docker Framework

What is Capistrano ?

Capistrano is a remote server automation tool.

  • It supports the scripting and execution of arbitrary tasks, and includes a set of sane-default deployment workflows.

  • Capistrano can be used to:

    • Reliably deploy web application to any number of machines simultaneously, in sequence or as a rolling set
    • To automate audits of any number of machines (checking login logs, enumerating uptimes, and/or applying security patches)
    • To script arbitrary workflows over SSH
    • To automate common tasks in software teams.
    • To drive infrastructure provisioning tools such as chef-solo, Ansible or similar.
    • Capistrano is also very scriptable, and can be integrated with any other Ruby software to form part of a larger tool.

How to Use

  • Set environment configuration file
    cp .env.example .env
    
  • Define your project's folder inside .env
    DATA_RUBY=[YOUR_PROJECTS_FOLDER]
    ---
    eg:
    DATA_RUBY=/data/deployment
    
  • Running docker-compose
    docker-compose up
    
  • Goto Inside Container
    docker exec -it [CONTAINER_NAME]
    ---
    eg:
    docker exec -it capistrano_rvm_[UBUNTU_VERSION]_[RUBY_VERSION] bash
    docker exec -it capistrano_rvm_18.04_2.7.1 bash
    
  • Install Dependencies Gem
    rvm use [RUBY_VERSION]   # eg: RUBY_VERSION=2.7.1
    ---
    rvm use 2.7.1
    
    gem install rubygems-bundler
    gem regenerate_binstubs
    bundle install
    

References

Build Status GitHub issues GitHub forks GitHub stars GitHub license

Packages

No packages published

Languages

  • Makefile 58.6%
  • Shell 28.7%
  • Ruby 7.7%
  • Dockerfile 5.0%