Skip to content

Generating YAML fails on missing /vendor/autoload.php #28

Description

@vbakke

Starting the script

Being on Windows, I had to modify the docker command in generateDimensions.bash to:

docker run -e IS_IMPLEMENTED_WHEN_EVIDENCE=true -ti --volume "/d/Users/vbakke/GIT/DSOMM/DevSecOps-MaturityModel-data:/app" wurstbrot/dsomm-yaml-generation bash -c "cd /app/ && php yaml-generation/generateDimensions.php"

Error message

I get the following error:

Warning: require(/app/yaml-generation/vendor/autoload.php): Failed to open stream: No such file or directory in /app/yaml-generation/bib.php on line 12

Fatal error: Uncaught Error: Failed opening required '/app/yaml-generation/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /app/yaml-generation/bib.php:12
Stack trace:
#0 /app/yaml-generation/functions.php(15): include_once()
#1 /app/yaml-generation/generateDimensions.php(3): require_once('/app/yaml-gener...')
#2 {main}
  thrown in /app/yaml-generation/bib.php on line 12

Potential cause?

Inspecting the files of the docker image /app/yaml-generation does not contain any vendor folder.
However, /var/www/html/yaml-generation does.

I see that the Docker file executes RUN cd /var/www/html/yaml-generation && composer install .... Could this be the cause?

What happens if you start from scratch, @wurstbrot?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions