-
Notifications
You must be signed in to change notification settings - Fork 472
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
Add the ability to run dgoss when the docker daemon is not local. #271
Conversation
I'm guessing the #243 link was a mistake. Skimmed through the code and I like this approach. I'll test it and provide feedback this week. |
extras/dgoss/dgoss
Outdated
info "Starting docker container" | ||
docker start $id > /dev/null | ||
;; | ||
*) error "Wrong goss files strategy used! Correct options are \"mount\" of \"cp\"." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mount or copy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elliotweiser Ok I will change cp
to copy
. I used cp
only because the docker cp
subcommand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cp is fine, I think it's the "of" instead of "or" that needs fixing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. "of' is a typo. sorry for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep just a typo: I meant of
vs or
.
Whatever your preference is for copy
vs cp
;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about that... my brain did an auto-complete 😅
It should be possible to copy the |
@elliotweiser I think, that goss.yaml is copied only when you use |
You are correct about the I guess I'm responding to this statement:
Since the generated (I personally can't think of a good reason for developing tests against a remote docker daemon, but for the sake of thorough code review, I thought I'd point this out). Overall, LGTM 👍 |
There is actually no volume used with
This statement is about the following command from |
I stand corrected: ! |
The only use-case could be the use of CicleCI Debugging Jobs Over SSH as CircleCI runs jobs in separated environments. I debug sometimes my failed builds over ssh. The reason for this PR was actually the fact, that |
Neat! I'll have to check that out. Thanks for the contribution and the thorough responses! |
You are welcome. |
Apologies for the delay on this, looks great. Thanks for the contribution! |
No problem. I used my fork untill now. Thanks for merge. |
…ss-org#271) * Add the ability to run dgoss when the docker daemon is not local * Fix a typo
I created pull request which is discussed in #269 and #243. All the changes should be backwards compatible.