-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Docker: use correct MAVEN_CONFIG #182
Conversation
the variable wasn't used correctly. i always fell back to use `.` as homedir.
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.
The fix looks good to me (although I didn't have a chance to test it locally)
this is a quick test in your console:
in the first case, dirname is called with string |
@jaypea this is obviously a correct fix for the script as it is written, and I'm going to merge it. I was just wondering, what is your use case where you discovered this? If you build the Dockerfile directly, it looks like this would result in the setting at |
oh, at first glance I missed that we are in fact setting user/group in run-in-docker.sh. I'm still interested in the use case, though. |
@jimschubert I was using run-in-docker.sh to build a branch in my generator fork and to create a client sdk from this branch. this is the script i am using in circleci now:
|
Though, i had to remove the userid setting in docker run because i didn't want to change the docker-entrypoint.sh to this extend. I would rather chown the mounted repository, currently its owned by root in the container. |
the variable wasn't used correctly. i always fell back to use
.
as homedir.