richdynamix / arc

Production ready docker based development environment for your Laravel project.
MIT License
117 stars 18 forks source link

Can't run web container #4

Closed slayer49 closed 5 years ago

slayer49 commented 5 years ago

Trying to run web container gives this error and exits.

web_1       | + as_code_owner yarn
web_1       | + set +x  
web_1       | + sudo -u build -E HOME=/home/build /bin/bash -c 'cd '\''/app'\''; yarn'
web_1       | yarn install v1.10.1  
web_1       | info No lockfile found.
web_1       | [1/4] Resolving packages...
web_1       | [2/4] Fetching packages...
web_1       | [3/4] Linking dependencies...
web_1       | [4/4] Building fresh packages...
web_1       | error Could not write file "/app/yarn-error.log": "EACCES: permission denied, open '/app/yarn-error.log'"
web_1       | error An unexpected error occurred: "EACCES: permission denied, mkdir '/app/node_modules'".
web_1       | info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
code_web_1 exited with code 1
slayer49 commented 5 years ago

I solved this issue by commenting the volume configuration in Dockerfile.

I have a remote docker host, and running docker-compose up mounted an empty volume.

ghost commented 5 years ago

Ive got the same issue so how to fix it? Can you please provide a short guide (what commands did you run)

slayer49 commented 5 years ago

I commented out the volume section of the web container in docker-compose.yml

This method means any updates to production container requires a rebuild to copy the code, which is fine for my purposes.

On Sat, Nov 24, 2018, 12:46 PM Lars Erhardt <notifications@github.com wrote:

Ive got the same issue so how to fix it? Can you please provide a short guide (what commands did you run)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/richdynamix/arc/issues/4#issuecomment-441394608, or mute the thread https://github.com/notifications/unsubscribe-auth/AKCLteYsyYrvCc0a7-FkDKzWSsixF5ouks5uybArgaJpZM4XdD5f .

ghost commented 5 years ago

yes. problem one solved. now laravel horizon is playing console spam aka crashing crashing crashing

slayer49 commented 5 years ago

Can't help with that, sorry.

On Sat, Nov 24, 2018, 3:30 PM Lars Erhardt <notifications@github.com wrote:

yes. problem one solved. now laravel horizon is playing console spam aka crashing crashing crashing

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/richdynamix/arc/issues/4#issuecomment-441403487, or mute the thread https://github.com/notifications/unsubscribe-auth/AKCLtdBOu669VM0usHG2siELN-QT1e3Mks5uydaVgaJpZM4XdD5f .

richdynamix commented 5 years ago

@Nerd2201 Can you explain what you mean with

now laravel horizon is playing console spam aka crashing crashing crashing

Can you provide examples of your log output? If you don't want Horizon you can disable that in the configuration.