Skip to content

Instantly share code, notes, and snippets.

@fcat
Last active December 25, 2015 19:29
Show Gist options
  • Save fcat/7027970 to your computer and use it in GitHub Desktop.
Save fcat/7027970 to your computer and use it in GitHub Desktop.
Gemnasium Workshop @dotrb 2013: Hands-On Part 2

Hands-on part 2: update the dependencies

Part 2 of the Gemnasium workshop at dotRB2013.

Check the dependencies with Gemnasium

The easiest way is to fork the dotrb2013 project on GitHub:

  • sign up on Gemnasium using your GitHub account
  • fork the dotrb2013 on GitHub
  • add your fork on Gemnasium
  • have a look at the dependencies!

You can also simulate a private project:

  • sign up on Gemnasium using your GitHub account
  • ask for a trial account to Philippe
  • create a "dotrb2013" project on gemnasium
  • get an API key from the Gemnasium web interface
  • clone the dotrb2013 project on your laptop
  • install the gemnasium gem
  • create the gemnasium.yml config file
  • push to gemnasium using gemnasium push
  • have a look at the dependencies!

Update the dependencies

  • choose the dependency you want to update
  • start the rails container in console mode
  • update the dependency and check if it works
  • commit the container, create a new image
  • create an account on docker index
  • publish your docker image

Commands

  • bundle update
  • docker push

Easy migrations

There is a "development" branch on GitHub and it has new features. But it requires you run a few database migrations. How can we leverage our containers to switch between the "master" branch and the "development" branch "in no time"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment