Skip to content

Console container startup issue #666

@kierenevans

Description

@kierenevans

For a sylius project (symfony harness), in enable.sh we have:

docker-compose up -d --build console
docker-compose exec -u build console app build

The frontend build that happens after composer install fails when there's nothing to download via composer:

> yarn install
Command failed. stderr:
Error: EACCES: permission denied, open '/home/build/.config/yarn'
    at Object.openSync (fs.js:443:3)
    at readFileSync (fs.js:343:35)
    at /home/build/.nvm/versions/node/v10.24.1/lib/node_modules/yarn/lib/cli.js:101466:58
    at Array.map (<anonymous>)
    at parseRcPaths (/home/build/.nvm/versions/node/v10.24.1/lib/node_modules/yarn/lib/cli.js:101464:78)
    at Object.findRc (/home/build/.nvm/versions/node/v10.24.1/lib/node_modules/yarn/lib/cli.js:101478:10)
    at getRcConfigForCwd (/home/build/.nvm/versions/node/v10.24.1/lib/node_modules/yarn/lib/cli.js:56957:74)
    at /home/build/.nvm/versions/node/v10.24.1/lib/node_modules/yarn/lib/cli.js:92827:56
    at Generator.next (<anonymous>)
    at step (/home/build/.nvm/versions/node/v10.24.1/lib/node_modules/yarn/lib/cli.js:310:30)
----------------------------------
Full logs are accessible in the console container at path :-
  stdout: /tmp/my127ws-stdout.txt
  stderr: /tmp/my127ws-stderr.txt

Introducing a sleep 1 during these two commands lets it complete successfully.

I think we need to wait for the usermod/chown that happens in entrypoint.dynamic.sh to finish upon console container startup, before we continue onto the app build step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions