Skip to content

PAT-590 incorrect docker image content#2376

Merged
borsboom merged 1 commit into
stablefrom
PAT-590-stack-image-container-with-image-option-does-not-behave-correctly
Jul 15, 2016
Merged

PAT-590 incorrect docker image content#2376
borsboom merged 1 commit into
stablefrom
PAT-590-stack-image-container-with-image-option-does-not-behave-correctly

Conversation

@dysinger
Copy link
Copy Markdown
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
Copy Markdown
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