pwa-studio
pwa-studio copied to clipboard
[bug]: docker run fails on windows 10
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
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
- Join Magento Community Engineering Slack and ask your questions in #github channel.
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.
===========================================================================
Created PWA-665
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