Skip to content

[RuntimeException] /.composer/cache/preserve-paths/ on docker build #40

@gregpavl

Description

@gregpavl

Environment

dev:

  • Device: macOS Big Sur
  • OS version: v11.4
  • Docker: version 20.10.11, build dea9396
  • Composer: version 2.2.1
  • drupal-composer/preserve-paths: 0.1.6

prd:

  • alpine:3.14
  • php8.0.13
  • no sudo-er / user: nobody

Describe the problem:

If vendor/ folder does not exist in the repo, the command docker build -t app . fails with the error:

  [RuntimeException]                                                                                                 
  /.composer/cache/preserve-paths/518d646133f3bc0cdce8020fedc7a2cfdb3ed202 does not exist and could not be created.

Steps to reproduce:

  1. Delete in local dev environment the vendor file
  2. run: docker build -t app .
  3. You get the RuntimeException error

Expected Results:

  • No runtime exception. Other packages are not bind on build with the vendor
  • The vendor folder must not be committed or built in advance into an automated ci/cd environment.

or, I miss something?

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