Skip to content

AbstractCommand::getRootDir returns script dir #8

@codeliner

Description

@codeliner

this one causes trouble when running micro-cli in prooph/docker:7.1-cli docker image to install a php-service.

The service is installed in vendor/prooph/micro-cli/service so basically the directory of the micro cli script and not the working dir that is mounted into the container.

Here is the full command I've executed:
docker run --rm -it -v $(pwd):/app -u 1001 -w /app prooph/php:7.1-cli php vendor/bin/micro micro:create:php-service

Set up was done with:

docker run --rm -it -v $(pwd):/app -u 1001 -w /app prooph/php:7.1-cli php vendor/bin/micro micro:setup /app

Note: set up command worked correctly because I've specified the target directory explicitly

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions