docker on foodsoft 4.6 - problem

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

docker on foodsoft 4.6 - problem

Sven
Great work! I am getting much farther now, although not quite through yet.

After all the package fetching and installing, docker-compose gives an error

There was an error while trying to write to `/home/app/src/Gemfile.lock`. It is
likely that you need to grant write permissions for that path.
Service 'foodsoft' failed to build: The command '/bin/sh -c bundle config build.nokogiri "--use-system-libraries" &&     bundle install -j 4' returned a non-zero code: 23

Full output is here https://pastebin.com/A0izJr88

I am Win10, the drives are shared with Docker.
Reply | Threaded
Open this post in threaded view
|

Re: docker on foodsoft 4.6 - problem

wvengen
Administrator

Hi Sven,

Thanks for reporting back! The current docker image expects uid 1000 for permissions, which works for many default Linux installations, but apparently not for Windows. Sorry it bit you, a proper fix would be something like https://chengl.com/using-docker-for-rails-development/ but that hasn't been picked up yet. If you'd like to have a try, welcome ;) (*)

- Willem

(*) An alternative option would be to do everything as root, but that is not something I'd like from a security standpoint (like checking out PRs and testing them).


On 19-11-17 17:57, Sven [via foodsoft] wrote:
Great work! I am getting much farther now, although not quite through yet.

After all the package fetching and installing, docker-compose gives an error

There was an error while trying to write to `/home/app/src/Gemfile.lock`. It is
likely that you need to grant write permissions for that path.
Service 'foodsoft' failed to build: The command '/bin/sh -c bundle config build.nokogiri "--use-system-libraries" &&     bundle install -j 4' returned a non-zero code: 23

Full output is here https://pastebin.com/A0izJr88

I am Win10, the drives are shared with Docker.


If you reply to this email, your message will be added to the discussion below:
http://foodsoft.51229.x6.nabble.com/docker-on-foodsoft-4-6-problem-tp1548.html
To start a new topic under foodsoft-dev, email [hidden email]
To unsubscribe from foodsoft-dev, click here.
NAML