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

Start dev mode in a container fails when there is a space character in the path #1830

Closed
turkeylurkey opened this issue Sep 19, 2024 · 4 comments

Comments

@turkeylurkey
Copy link
Member

When you use the command mvn liberty:devc to start dev mode in a directory and the directory has a space character somewhere in the name then an error is printed and the command fails.

The issue also occurs when you use Gradle. One directory is called demo devmode.

> Task :libertyDevc
/Users/pa/demo devmode/build/wlp/usr/servers/defaultServer/configDropins/overrides/liberty-plugin-variable-config.xml file deleted before processing plugin configuration.
Building Docker image...
docker build --pull -f /Users/pa/demo devmode/build/.libertyDevc/tempDockerfile13265352539165646922 -t demo-devmode-gradle-dev-mode /Users/pa/demo devmode
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
            environment-variable.

"docker build" requires exactly 1 argument.
See 'docker build --help'.

Usage:  docker build [OPTIONS] PATH | URL | -

Build an image from a Dockerfile

> Task :libertyDevc FAILED
@cherylking
Copy link
Member

cherylking commented Sep 19, 2024

We fixed this several months ago. Not sure how it's happening again?

@cherylking
Copy link
Member

@turkeylurkey What version of the plugin were you using? The message you showed above is not used in any recent version.

Building Docker image...

It now prints:

Building container image...

@cherylking
Copy link
Member

The fix was in LMP 3.10.x and LGP 3.8.x.

@turkeylurkey
Copy link
Member Author

Thanks for the update. Our test case is using 3.6.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants