Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: docker run fails on windows 10 #2444

Open
8 tasks
sivakumarkoduru opened this issue Jun 1, 2020 · 4 comments
Open
8 tasks

[bug]: docker run fails on windows 10 #2444

sivakumarkoduru opened this issue Jun 1, 2020 · 4 comments
Labels
bug Something isn't working help wanted Eligible for community contribution. Priority: P2 Progress: ready for dev Severity: S2

Comments

@sivakumarkoduru
Copy link
Contributor

sivakumarkoduru commented Jun 1, 2020

Describe the bug

The DEV_SERVER_PORT variable is not set. Defaulting to a blank string.
The DEV_SERVER_HOST variable is not set. Defaulting to a blank string.
The ENVFILEPATH variable is not set. Defaulting to a blank string.
The Compose file '.\docker-compose.yml' is invalid because:
services.pwa.expose is invalid: should be of the format 'PORT[/PROTOCOL]'
services.nginx-proxy.ports is invalid: Port ranges don't match in length

To reproduce

$ docker/run-docker

===========================================================================

         Adding env vars from ./docker/.env.docker.dev to ./.env for docker setup.

===========================================================================

########## .env.docker ########################################################
#
# See packages/pwa-buildpack/envVarDefinitions.json file for full option details
#
###############################################################################

DEV_SERVER_HOST=pwa-docker.localhost
DEV_SERVER_PORT=8080
DEV_SERVER_SERVICE_WORKER_ENABLED=false
DEV_SERVER_WATCH_OPTIONS_USE_POLLING=0
MAGENTO_BACKEND_URL=https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/
CUSTOM_ORIGIN_ENABLED=0
UPWARD_JS_UPWARD_PATH=upward.yml
UPWARD_JS_BIND_LOCAL=1
UPWARD_JS_LOG_URL=1
CHECKOUT_BRAINTREE_TOKEN=sandbox_8yrzsvtm_s2bg8fs563crhqzk
GOOGLE_MAPS_API_KEY=redacted
MAGENTO_BACKEND_EDITION=EE
ENVFILEPATH=./docker/.env.docker.dev

===========================================================================

         Creating SSL/TLS certificate

===========================================================================

yarn install v1.22.4
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.22s.
/c/Users/sivakumar/pwa-studio
devcert password (http://bit.ly/devcert-what-password?):
devcert password (http://bit.ly/devcert-what-password?):
devcert password (http://bit.ly/devcert-what-password?):
(node:11112) [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated.
./docker/certs/pwa-docker.localhost.key CREATED SUCCESSFULLY
./docker/certs/pwa-docker.localhost.crt CREATED SUCCESSFULLY

===========================================================================

         Building PWA image

===========================================================================

The DEV_SERVER_PORT variable is not set. Defaulting to a blank string.
The DEV_SERVER_HOST variable is not set. Defaulting to a blank string.
The ENVFILEPATH variable is not set. Defaulting to a blank string.
The Compose file '.\docker-compose.yml' is invalid because:
services.pwa.expose is invalid: should be of the format 'PORT[/PROTOCOL]'
services.nginx-proxy.ports is invalid: Port ranges don't match in length

===========================================================================

         Build failed. See output for details.

===========================================================================


Expected behavior
run-docker should run successfully

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Possible solutions
Add any ideas about possible solutions to the problem here.

Please complete the following device information:

  • Device [e.g. iPhone6, PC, Mac, Pixel3]:
  • OS [e.g. iOS8.1, Windows 10]:
  • Browser [e.g. Chrome, Safari]:
  • Browser Version [e.g. 22]:
  • Magento Version:
  • PWA Studio Version:
  • NPM version npm -v:
  • Node Version node -v:

Please let us know what packages this bug is in regards to:

  • venia-concept
  • venia-ui
  • pwa-buildpack
  • peregrine
  • pwa-devdocs
  • upward-js
  • upward-spec
  • create-pwa
@sivakumarkoduru sivakumarkoduru added the bug Something isn't working label Jun 1, 2020
@m2-assistant
Copy link

m2-assistant bot commented Jun 1, 2020

Hi @sivakumarkoduru. Thank you for your report.
To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


@sivakumarkoduru sivakumarkoduru changed the title [bug]: docker run fails [bug]: docker run fails on windows 10 Jun 1, 2020
@sivakumarkoduru
Copy link
Contributor Author

after passing env variables manually from the command ,still i got below issue.
Ensuring valid environment...
': No such file or directory

info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error Command failed with exit code 1.
Service 'pwa' failed to build: The command '/bin/sh -c yarn install --frozen-lockfile' returned a non-zero code: 1

===========================================================================

     Build failed. See output for details.

===========================================================================

@awilcoxa
Copy link

awilcoxa commented Jun 9, 2020

Created PWA-665

@awilcoxa awilcoxa added the help wanted Eligible for community contribution. label Jun 22, 2020
@awilcoxa
Copy link

This is a currently a low priority for internal/core team but would be a great candidate for community contribution assuming there is enough interest in supporting docker/windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Eligible for community contribution. Priority: P2 Progress: ready for dev Severity: S2
Projects
None yet
Development

No branches or pull requests

5 participants