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

828: clean up docker doc, fix context var in run cmd #829

Merged

Conversation

codevbus
Copy link
Contributor

@codevbus codevbus commented Oct 22, 2019

Fixes #828. in case of a bug fix, this should point to a bug and any other related issue(s)

Description

  • Updated documentation to reflect context compatibility of running Kaniko in Docker.
  • Added "" to variables in docker run command, added ${context} var interpolation to run command.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • [n/a] Includes unit tests
  • [n/a] Adds integration tests if needed.

See the contribution guide for more details.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Release Notes

Describe any changes here so maintainer can include it in the release notes, or delete this block.

- Updated user-facing documentation for running in Docker.

@codevbus
Copy link
Contributor Author

@priyawadhwa - Issue that came up while working on #812. Let me know if this needs any changes.

Copy link
Collaborator

@priyawadhwa priyawadhwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codevbus thanks for your contribution! Left a couple comments, please let me know if you have any questions.

run_in_docker.sh Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@codevbus
Copy link
Contributor Author

@priyawadhwa - made changes based on your feedback.

Copy link
Collaborator

@priyawadhwa priyawadhwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README looks good, just one question.

@@ -35,9 +35,9 @@ if [[ ! -e $HOME/.config/gcloud/application_default_credentials.json ]]; then
fi

docker run \
-v $HOME/.config/gcloud:/root/.config/gcloud \
-v ${context}:/workspace \
-v "$HOME"/.config/gcloud:/root/.config/gcloud \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the changes to this file necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most likely not, although it's generally safer to use "" in this case. Let me know if you want me to revert @priyawadhwa

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's alright, let's keep this! Thanks.

@priyawadhwa
Copy link
Collaborator

LGTM thanks for adding this!

@priyawadhwa priyawadhwa merged commit d4badf3 into GoogleContainerTools:master Oct 28, 2019
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.

Run in Docker documentation lacks context
3 participants