Skip to content

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

Open
@sivakumarkoduru

Description

@sivakumarkoduru

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions