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

Support specifying a build path when building images from a string #13

Merged
merged 1 commit into from Jul 2, 2017

Conversation

jmeichle
Copy link
Contributor

@jmeichle jmeichle commented Jun 30, 2017

Description

This change adds an option to Dockerspec::Builder, string_build_path, which is used by build_from_string to support specifying a build directory other than .

The use case here is: test cases have directories with various fixtures/assets that need to be included in a build, and I want to be able to chain multiple builds together while also being able to access fixtures/assets during the build. To support this use case, I have an initial build performed (either via a string or a docker file)images in the example group are built from a string that derives theFROMstatement using theDockerspec::Rspec::Resources#described_image` accessor.

However, the later images cannot add the assets since currently building via the Dockerspec::Rspec::Resources#docker_build method does not allow specifying a path when building from a string, and instead defaults to .

Issues Resolved

n/a

Contribution Check List

  • All tests pass.
  • New functionality includes testing.
  • New functionality has been documented in the README and metadata if applicable.

See CONTRIBUTING.md.

@jmeichle jmeichle force-pushed the docker_build_string_with_path branch from bacbbd8 to 584f45a Compare June 30, 2017 18:58
@coveralls
Copy link

coveralls commented Jun 30, 2017

Coverage Status

Coverage increased (+0.2%) to 100.0% when pulling 584f45a on jmeichle:docker_build_string_with_path into f1ca5ee on zuazo:master.

@zuazo zuazo merged commit f8a92e2 into zuazo:master Jul 2, 2017
@zuazo
Copy link
Owner

zuazo commented Jul 2, 2017

Nice contribution! Thanks for sharing your work 😄

@zuazo
Copy link
Owner

zuazo commented Aug 30, 2017

Released in 0.5.0.

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