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

PAT-590 incorrect docker image content #2376

Conversation

dysinger
Copy link
Contributor

Fixes a bug where the user executes

stack image container --image image9

where the stack.yaml has multiple docker image definitions. The code
was staging all of them but then creating an image by selecting the base
image (correct) along with the contents of folder "0" (incorrect)

Solution is to only stage the image(s) that we want to build (using the
same image name fitering that we have in our function to build the
image(s).

Haskell does not protect you from logic fails :D

Fixes a bug where the user executes

`stack image container --image image9`

where the stack.yaml has multiple docker image definitions.  The code
was staging all of them but then creating an image by selecting the base
image (correct) along with the contents of folder "0" (incorrect)

Solution is to only stage the image(s) that we want to build (using the
same image name fitering that we have in our function to build the
image(s).

Haskell does not protect you from logic fails :D
@snoyberg
Copy link
Contributor

LGTM

@borsboom borsboom merged commit 65ee679 into stable Jul 15, 2016
@borsboom borsboom deleted the PAT-590-stack-image-container-with-image-option-does-not-behave-correctly branch July 15, 2016 21:23
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.

3 participants