Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Docker.options from being overwritten #516

Closed

Conversation

jalvarezsamayoa
Copy link
Contributor

When running beaker specs under MacOs X the following exception occurs.

Excon::Errors::SocketError: end of file reached (EOFError) (upserve/docker-api#202)

Trying to apply a fix by passing the path of cert files is over written by:

https://github.com/puppetlabs/beaker/blob/master/lib/beaker/hypervisor/docker.rb#L11

cert_path = File.expand_path ENV['DOCKER_CERT_PATH']

Docker.options = {
  client_cert: File.join(cert_path, 'cert.pem'),
  client_key: File.join(cert_path, 'key.pem'),
  ssl_ca_file: File.join(cert_path, 'ca.pem'),
  scheme: 'https' # This is important when the URL starts with tcp://
}

@puppetlabs-jenkins
Copy link
Contributor

Can one of the admins verify this patch?

@anodelman
Copy link
Contributor

Please rebase.

@branan
Copy link
Contributor

branan commented Nov 4, 2014

Does this duplicate #520?

@jalvarezsamayoa
Copy link
Contributor Author

Yes it is the same as #520

@anodelman
Copy link
Contributor

Closing in favor of #520.

@anodelman anodelman closed this Nov 4, 2014
@jalvarezsamayoa jalvarezsamayoa deleted the feature/issue_514 branch November 5, 2014 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants