Skip to content
This repository was archived by the owner on May 1, 2019. It is now read-only.
This repository was archived by the owner on May 1, 2019. It is now read-only.

Docker native doesn't follow symlinks. What should docker-platform do with _www? #66

@isholgueras

Description

@isholgueras

Platform.sh cli configures its docroot (_www) as a symlink to ./.platform/local/builds/default/web.

When I execute platform-docker start and execute platform-docker ssh http, /var/platform/_www cannot be opened because of the symlink. Docker, afaik, doesn't allow to configure follow hosts' symlinks.

I could solve it manually configuring one of this two options:

  1. Configuring the docroot as ./platform/local/builds/default/web when initializing platform-docker
  2. Mounting ./.platform/local/builds/default/web in _www and configuring docroot with _www.

I like more the first option so I'm thinking about guessing, in InitCommand.php:51, if there is a platform.sh project builded, find which is its docroot and suggest that value to the user when prompting for docroot.

I don't know very well how platform.sh cli works with builds and if this solution is viable.

What do you think about it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions