-
Notifications
You must be signed in to change notification settings - Fork 236
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
Infinite artifact re-deployment on a Windows 10 docker host #144
Comments
I am having the same issue. If there is information I can provide to assist with fixing this, please let me know. Edit: I am using WildFly 24. |
Just tested with WildFly 25, issue still exists. |
Issue is on Windows 11 too. With Docker Desktop 4.3.2 (72729) - currently the newest version available. Also: Using WSL 2 based engine. |
I can confirm, I too can replicate the issue on Windows 10 and 11 with 4.3.2. I have not tested 4.4.2 yet. |
Same issue with Docker Desktop 4.4.3 |
Probably worth mentioning Docker and Microsoft advise against mounting a Windows directory into a Linux Container using WSL 2. Neither go as far as to say it won't work, just that performance will be bad. See: https://docs.docker.com/desktop/windows/wsl/#best-practices. Using WSL 1 doesn't appear to be an option anymore on Windows 11 Home edition, so that leaves their other recommendation of installing projects in the WSL filesystem directly. This recommended approach involves a bit of indirection and assumes your IDE supports remote WSL directories (Microsoft Visual Studio Code and IntelliJ Idea both do). I've confirmed it does solve this problem though so is a reasonable, albeit annoying, workaround if your IDE supports it. |
|
As a workaround you can touch the generated file. (Declare this plugin after your maven-war-plugin/maven-ear-plugin/etc )
or run this command from bash before copy file to deployment folder:
|
Hello!
I am having an issue that occurs only when running Docker on a Windows host machine. Artifacts I want to deploy to Wildfly never stop redeploying. The way deployment artifacts are passed to the container, is via a volume, that connects to
/opt/jboss/wildfly/standalone/deployments
.docker-compose.yml
file:I made an example project, that can be found here: https://github.com/MihaStemberger/docker.git
From what i have managed to debug, the issue is a wrongly set last modified timestamp because the last 3 digits of the timestamp round down thus making the timestamps different.
Here is an image of values while debugging
wildfly-core-parent 12.0.3.Final
version at FileSystemDeploymentService.java:1482 And this this is thestat
result of the files that are made before and after the breakpoint.This causes FileSystemDeploymentService.java:865 to be true and invoke a re-deploy.
My
docker info
:Any help would be greatly appreciated.
Edit1: this issue is also present if latest
jboss/wildfly
is used (as of Aug. 07.2021)The text was updated successfully, but these errors were encountered: