ibm-cloud-developer-tools: Node starter failing to build on Windows 10
Summary Node Basic Web App starter fails with the following error on Windows as there’s no folder called node_modules_linux (defined in cli_config.yml)
C:\lab\myapp>ibmcloud dev build
Getting service credentials for the application.
No service credentials were detected for the application to download.
Validating Docker image name
OK
Checking if Docker container myapp-express-tools is running
OK
Checking Docker image history to see if image already exists
OK
Creating image myapp-express-tools based on Dockerfile-tools ...
Executing docker image build --file Dockerfile-tools --tag myapp-express-tools --rm --pull --build-arg bx_dev_userid=0 --build-arg bx_dev_user=root .
Waiting for Docker image to build...
OK
Creating a container named 'myapp-express-tools' from that image...
FAILED
An error Error response from daemon: Mount denied:
The source path "C:/lab/myapp/node_modules_linux"
doesn't exist and is not known to Docker was encountered while creating Docker container 'myapp-express-tools'.
Steps to reproduce (include tooling version, platform, etc)
- ibmcloud dev create
- Choose node > node (web app)
- ibmcloud dev build
Operating System Windows 10
Supporting details
C:\lab\myapp>ibmcloud dev build
Getting service credentials for the application.
No service credentials were detected for the application to download.
Validating Docker image name
OK
Checking if Docker container myapp-express-tools is running
OK
Checking Docker image history to see if image already exists
OK
Creating image myapp-express-tools based on Dockerfile-tools ...
Executing docker image build --file Dockerfile-tools --tag myapp-express-tools --rm --pull --build-arg bx_dev_userid=0 --build-arg bx_dev_user=root .
Waiting for Docker image to build...
OK
Creating a container named 'myapp-express-tools' from that image...
FAILED
An error Error response from daemon: Mount denied:
The source path "C:/lab/myapp/node_modules"
doesn't exist and is not known to Docker was encountered while creating Docker container 'myapp-express-tools'.
Development “done” checklist
- Test case to verify
- Public Documentation updated
- Change added to “release notes” as appropropriate
- Notification to stakeholders (OM, other squads, etc)
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 24
1 - In your local cli-config.yml, replace these lines:
with https://github.com/joyychang/node-windows-workaround/blob/master/cli-config.yml#L21-L24
2 - copy docker-compose-tools.yml and docker-compose.yml to your local directory
3 - edit
docker-compose-tools.ymlChange:save your changes.
ibmcloud dev buildresults in:so we now have a workaround. Still, any Win 10 user following this tutorial will face the dev build issue.
And will possibly will have a hard time before discovering the above workaround. Resulting in bad user experience.
@steveclay - this issue is nearly 1 year old - no assignee and a hard to find workaround Any way to give this one a high priority?
@steveclay I think this is a duplicate. Can you confirm that you have an issue open?