Skip to content

[Bug]: Docker container vue-spree-frontend-1 fails to find rifraf command #239

@laf0rge

Description

@laf0rge

Expected Behavior

I'd expect the instructions to use the dockerized setup to run both the backend and the frontend explained at https://github.com/vuestorefront/spree#running-vue-storefront--spree-in-docker to work

Actual Behavior

  • the bin/setup and bin/seed work as expected
  • for bin/start there is a problem
    ** the docker-compose for the spree backend starts and runs (I can access http://localhost:4000/).
  • the docker-compose for the vue frontend fails
$ docker-compose ps
vue-spree-frontend-1   "docker-entrypoint.s…"   frontend            exited (127)        
$ docker-compose logs
vue-spree-frontend-1  | yarn run v1.22.5
vue-spree-frontend-1  | $ yarn build:api-client && yarn build:composables && yarn build:theme
vue-spree-frontend-1  | $ cd packages/api-client && yarn build
vue-spree-frontend-1  | $ rimraf lib server && rollup -c
vue-spree-frontend-1  | /bin/sh: 1: rimraf: not found
vue-spree-frontend-1  | error Command failed with exit code 127.
vue-spree-frontend-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
vue-spree-frontend-1  | error Command failed with exit code 127.
vue-spree-frontend-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
vue-spree-frontend-1  | error Command failed with exit code 127.
vue-spree-frontend-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
vue-spree-frontend-1  | yarn run v1.22.5
vue-spree-frontend-1  | $ concurrently "yarn:dev:*" --hostname 0.0.0.0
vue-spree-frontend-1  | /bin/sh: 1: concurrently: not found
vue-spree-frontend-1  | error Command failed with exit code 127.
vue-spree-frontend-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Possible Solution

No response

Steps to reproduce

  • stock debian 11
  • install docker + docker-compose from official (docker-ce) packages

What version of Spree integration are you using?

d1c7335

What version of Node.js are you using?

14.15 (defined by Dockerfile.development)

What browser (and version) are you using?

Firefox, but doesn't matter

What operating system (and version) are you using?

Debian 11

Relevant log output

vue-spree-frontend-1  | yarn run v1.22.5
vue-spree-frontend-1  | $ yarn build:api-client && yarn build:composables && yarn build:theme
vue-spree-frontend-1  | $ cd packages/api-client && yarn build
vue-spree-frontend-1  | $ rimraf lib server && rollup -c
vue-spree-frontend-1  | /bin/sh: 1: rimraf: not found
vue-spree-frontend-1  | error Command failed with exit code 127.
vue-spree-frontend-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
vue-spree-frontend-1  | error Command failed with exit code 127.
vue-spree-frontend-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
vue-spree-frontend-1  | error Command failed with exit code 127.
vue-spree-frontend-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
vue-spree-frontend-1  | yarn run v1.22.5
vue-spree-frontend-1  | $ concurrently "yarn:dev:*" --hostname 0.0.0.0
vue-spree-frontend-1  | /bin/sh: 1: concurrently: not found
vue-spree-frontend-1  | error Command failed with exit code 127.
vue-spree-frontend-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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