-
Notifications
You must be signed in to change notification settings - Fork 107
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 image user permissions fix (#1373) #1378
Conversation
rafzei
commented
Jun 23, 2020
- got rid of empty continuation line warning
…mpty continuation line warning
core/src/epicli/Dockerfile
Outdated
@@ -5,6 +5,7 @@ ARG EPICLI_VERSION | |||
ARG USERNAME=epiuser | |||
ARG USER_UID=1000 | |||
ARG USER_GID=$USER_UID | |||
ARG SHARED_DIR=/shared |
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 the dockerized Epicli expects the /shared director as output. Check /epiphany/core/src/epicli/cli/helpers/Config.py.
My suggestion would be to replace"
ENV DOCKER_CLI Yes
With:
ENV EPICLI_DOCKER_SHARED_DIR $SHARED_DIR
And change the logic of /epiphany/core/src/epicli/cli/helpers/Config.py to reflect this. When people build there own container with a changed SHARED_DIR argument it will always be reflected properly in the Epicli config when dockerized and avoid issues. Also it makes more sence then ENV DOCKER_CLI Yes
|
||
self._output_dir = None | ||
if self._docker_cli: | ||
self._output_dir = '/shared/build/' | ||
self._output_dir = os.environ.get('EPICLI_DOCKER_SHARED_DIR') |
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.
please add the /build dir to the path.