This repository was archived by the owner on May 9, 2022. It is now read-only.
Support boot2docker (and its tcp + ssl thing)#5
Merged
Conversation
boot2docker sets env vars like this:
export DOCKER_HOST=tcp://192.168.59.104:2376
export DOCKER_CERT_PATH=/Users/spraints/.boot2docker/certs/porter
export DOCKER_TLS_VERIFY=1
The docker-api gem initializes `Docker.url` from these variables. If
boot2docker and docker-api already know what the docker connection is,
we don't need to mess with it in hoosegow.
This is when docker-api learned about the `DOCKER_*` environment variables.
Contributor
|
👍 |
spraints
added a commit
that referenced
this pull request
Jun 19, 2015
Support boot2docker (and its tcp + ssl thing)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This branch makes it so that hoosegow can use the environment variables set by
boot2docker shellinit. It does this by not settingDocker.urlif no connection parameters are provided. This lets thedocker-apigem figure out where to connect, which should be right most of the time. This branch also bumps thedocker-apigem version: 1.15 is where it learned to use boot2docker over TLS (upserve/docker-api#210), and 1.19 has a fix for attached containers (upserve/docker-api#251).cc @mastahyeti