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

Docker image user permissions fix (#1373) #1378

Merged
merged 3 commits into from
Jun 25, 2020
Merged

Conversation

rafzei
Copy link
Contributor

@rafzei rafzei commented Jun 23, 2020

  • got rid of empty continuation line warning

@@ -5,6 +5,7 @@ ARG EPICLI_VERSION
ARG USERNAME=epiuser
ARG USER_UID=1000
ARG USER_GID=$USER_UID
ARG SHARED_DIR=/shared
Copy link
Collaborator

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

@rafzei rafzei requested a review from seriva June 24, 2020 09:52

self._output_dir = None
if self._docker_cli:
self._output_dir = '/shared/build/'
self._output_dir = os.environ.get('EPICLI_DOCKER_SHARED_DIR')
Copy link
Collaborator

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.

@rafzei rafzei requested a review from seriva June 24, 2020 11:24
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.

[BUG] permission denied for shared directory in the container when no volume was mounted
3 participants