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
Sync is not working with helm and jib #4191
Comments
ping @GoogleContainerTools/java-tools-build will jib know that |
Thats interesting. How is the jib build configured? Can you run |
I will try and test your command @loosebazooka and come back |
When using JIB with Skaffold, can't I do then manual sync? all the files should be included as JIB dependencies so skaffold watches them? Could this be the issue? |
@loosebazooka the output of that command is:
So looks like the |
yeah unfortunately the way sync works, even in manual mode (@dgageot?) is that only files that are watched can be sync'd. There are some workarounds here, but do require you to track the files in the The so you could do something from (https://github.com/GoogleContainerTools/jib/tree/master/jib-gradle-plugin#skaffold-integration) like:
and this wont affect your jib build (so these files aren't added to the container in the way that You could probably use some directory structures here to do what you want without having to change your config much? NOTE: that |
Thanks a lot @loosebazooka. I am very close to get something working properly, main issues atm with your workaround:
|
So in this case, do you mean you're changing the
Hrmm... maybe we should clean this up. Thanks for the feedback |
Thanks for taking the time @loosebazooka,
Let me try to ellaborate the use case and see if I could use skaffold as a single tool for it:
Thanks a lot for the dedication to the tool, it's great and a game changer for this team. |
It sounds like you're doing everything right. I think I need to try this out locally to maybe figure out what's going on. Developers on holiday for the next 4 days, so might be slow. |
So when recreating this I had to do a few things to get it to work in the way I think you want it to work. (I was using a springboot sample with springboot-devtools, but this should work for wars if configured similarly) skaffold.yaml
So when I do an intellij build, the intellij compiled classes are sent over to the remote container. I used strip to get the classes to go to the right place (which I'm not sure but maybe you need?) jib (build.gradle)
I needed to ignore |
I managed to get this working using your workaround, thanks a lot @loosebazooka. I am going to gather feedback from the team (specially frontend due to their workflows) and see if works for everyone. I will then close this issue. I think this is a nice workaround that would probably be outlined in the File Sync docs? |
Thanks @davidfernandezm. We will work on adding docs |
Expected behavior
Synced files should work
Actual behavior
No watching or syncing happening, no files going into the pod
Information
Steps to reproduce the behavior
skaffold dev --filename skaffold.yml --profile qc --default-repo eu.gcr.io/qumu-dev --cleanup=false -v debug
The debug logs show up changes happening:
And then more log with all the files detected by jib.
Is there anything obvious I am missing?
The structure is
skaffold.yml
and in the same folderlombok.config
. Just seems the file is not being watched at all.The text was updated successfully, but these errors were encountered: