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/sdk fails if umask isn't 022 #186

Open
marek-obuchowicz opened this issue Feb 18, 2021 · 1 comment
Open

docker/sdk fails if umask isn't 022 #186

marek-obuchowicz opened this issue Feb 18, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@marek-obuchowicz
Copy link
Contributor

Which release, branch or hash of Docker SDK are you using?

1.30.0

Which operating system (platform/version/architecture) are you using?

Linux Debian

What is the issue that you're experiencing?

docker/sdk fails in several places, when umask != 022

What are the steps to reproduce the issue?

umask 027
git clone <project>
git clone <docker_sdk>
docker/sdk boot deploy.yml && docker/sdk up

What is the expected result of these steps in the absence of the issue?

It should start the app

What is the actual result?

Some files inside container inherit permissions from source host, which means they aren't readable inside container.
First example (from possibly more) -

$ docker run -ti spryker_b2b_base_cli:1.0

$ ls -la /usr/local/etc/php/php.ini
-rw-r----- 1 root root 70953 Feb 18 16:34 php.ini

What possible solutions and/or workarounds for the issue do you see?

Permissions of files inside container should be controlled by build process and not rely on operating system's umask, which can be different (espacially on CI systems)

Is there any other information that might be helpful?

@sprymiker
Copy link
Contributor

Thank you @marek-obuchowicz! A good finding of the root cause!

@sprymiker sprymiker added the bug Something isn't working label Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants