What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi i run into docker/sdk up problem with permission issue: Copy and merge schema files UnexpectedVal
Comments
-
ARG USER_UID RUN usermod -u ${USER_UID} spryker && find / -user 1000 -exec chown -h spryker {} \; || true;
That should set proper owner.
0 -
is there any log during build to watch?
0 -
PROGRESS_TYPE=plain docker/sdk build images
0 -
Please, check that step and output.
0 -
how?
0 -
I assume it will be cached.
docker builder prune
0 -
ok
0 -
Just run
docker builder prune
PROGRESS_TYPE=plain docker/sdk build images
Then scroll and find
RUN usermod -u ${USER_UID} sprykerβ¦
0 -
try new
0 -
7 [2/3] RUN usermod -u 1001 spryker && find / -user 1000 -exec chown -h sp...
7 CACHED
0 -
tried
ARG CACHEBUST=1
now its not cached .. try up now
0 -
nope doesnt changed anything ..
0 -
ok removed all, checkout suite tag 1.6 and now sdk 1.14.3 ..
0 -
ok i had to change something in the build scripts
0 -
my local user id is not 1000 its 1001
0 -
after changing all usermod from ${USER_ID} to 1001 it worked .. how is the userid passed into the build process .. maybe something goeing wrong here
0 -
--build-arg USER_UID=${USER_UID:-1000} \ --build-arg USER_GID=${USER_GID:-1000} \
how can i pass my correct UID and GID?
0 -
It does actually use
id
to get those.0 -
And that works in your case. As spryker(1001) inside container.
0 -
But WHY it does not change ownership of /var/log/spryker - thatβs the question.
0 -
I have an ideaβ¦
add in your deploy.dev.yml
docker:
logs:
path: /home/spyrker/logs0 -
It will put the folder into home directory and it will be automatically under the correct user.
0 -
However the code below should do the same:
RUN usermod -u ${USER_UID} spryker && find / -user 1000 -exec chown -h spryker {} \; || true;
0 -
First of all i change my host uid from 1001 to 100 0 which resolves the first issue here .. i will try to reproduce this issue on a second machine maybe i find a solution for this. looks like a docker namepspacing issue on ubuntu 20.04 β¦
0 -
if your id is the same - that is solution. However it wonβt fit everybody. I will create a ticket for investigation on our side.
0 -
I'm running docker/sdk on Ubuntu flawlessly. Previously on 19.04 and 19.10, now on 20.04.
0 -
@valerii.trots What ID of the user you use?
0 -
on the host?
0 -
In your case it is good as you have ID=1000 , the same ID that baked in Spryker image. π
0 -
It was good for me in Tiny Linux with different ID.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 80 Spryker News
- 954 Developer Corner
- 810 Spryker Development
- 91 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 36 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 27 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 33 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random