You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running devc on Windows for a project with spaces in the path, the following error happens. The spaces in the -f parameter for docker build are causing an issue. Need to quote the path correctly when adding it to the command. Check other parts of the command to see if spaces affect them as well.
Error starting the server in dev mode.: Could not build container image using Containerfile: C:\Users\xyz\my path with spaces\Dockerfile. Address the following container build error and then start dev mode again: ERROR: "docker build" requires exactly 1 argument. RC=1
The text was updated successfully, but these errors were encountered:
The solution seems to be to add each part of the command as a separate String (pass a String[] to the ProcessBuilder constructor). Then ProcessBuilder is supposed to handle escaping/quoting the parameters if necessary. Need to test this and see if it performs as expected.
The changes would be needed in DevUtil.java in ci.common - in particular in methods getRunProcess, getContainerCommand, buildContainerImage, and startContainer.
When running devc on Windows for a project with spaces in the path, the following error happens. The spaces in the
-f
parameter fordocker build
are causing an issue. Need to quote the path correctly when adding it to the command. Check other parts of the command to see if spaces affect them as well.The text was updated successfully, but these errors were encountered: