Skip to content

Instantly share code, notes, and snippets.

@rheinwein
rheinwein / rossconf.md
Last active September 26, 2015 16:06
ROSSConf Contribution Guide

#Ruby Open Source Projects for ROSSConf

##Flatcar https://github.com/flatcar/flatcar

Clone the repo, then point bundler to your branch in the Gemfile. Run bundle install and then you're ready to test the gem by running it within the context of bundler to avoid conflicts -- bundle exec bin/flatcar. Flatcar is tested with rspec, and you can find a test coverage report via simplecov-rcov.

##Lorry https://github.com/CenturyLinkLabs/lorry (the API)

@rheinwein
rheinwein / builds.json
Last active March 21, 2016 10:32
build json
[{
"id": 3277309,
"uuid": "80240b80-6742-0132-8d88-366b9ffd5919",
"project_id": 33837,
"status": "success",
"branch": "master",
"commit_id": "81d2282b97c37c30a40302282404f4ee2828f61f",
"github_username": "beanieboi",
"message": "Landjaeger sausage pork belly spare ribs, ham hock.",
"started_at": "2015-12-16T11:13:35.178Z",
@rheinwein
rheinwein / baseimage.md
Last active June 30, 2016 08:34
saving base image outside of customer image

When preserving the parent/child layer relationship via docker save and docker load, all layers of the image must be saved together, including the base image. Note: if an image is tagged, you can use the tag name in place of the image ID.

I'm using Docker 1.12-rc2. Behavior may vary on pre-1.10 versions.

Saving and loading the base image separately -- cache is not repopulated

This is because the bottom layer of the customer image does not receive the parent ID when being saved. When it's loaded, Docker doesn't know that the two images belong together. A subsequent docker build will show the base image being used, but there is no available cache because of the missing link between customer and base image. In the image rebuild output, notice there is no using cache output.

cache-test $ docker build -t cache-test .
@rheinwein
rheinwein / cache-test-test.md
Created January 11, 2017 19:48
--cache-test test

Validating expected behavior when using --cache-test and building an image from a cache source that does not have a local parent chain.

Pull image from remote source

cache-test $ docker pull rheinwein/cache-test
Using default tag: latest
latest: Pulling from rheinwein/cache-test
557a0c95bfcd: Pull complete 
98a89d507c56: Pull complete 
@rheinwein
rheinwein / codeship-services.yml
Created July 7, 2017 14:14
Sample codeship-services.yml file
web:
build:
image: username/my-app
dockerfile: Dockerfile
links:
- redis
- postgres
redis:
image: redis:3.2
postgres: