-
Notifications
You must be signed in to change notification settings - Fork 525
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
[Bug]: Caching of source code / no loading of changed code from git repository #3174
Comments
Hi @RoseDeSable , Nuclio skips building a new image in some cases, such as when a specific image is set on the function spec. Some questions to better understand the issue:
|
Good Morning, Here is the build section - the sensitive parts are modified build: |
@RoseDeSable Since you're working in a Docker environment, I suspect that the first created image is still cached by docker, and thus when it's building the function during redeployment, it essentially builds on top of the cached image, instead of building a fresh image. If possible, I would appreciate seeing the relevant logs from the nuclio-dashboard container.
This will help us better understand this and find the root cause. Thanks§1 |
Ok, |
Hello, |
Nuclio Version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Nuclio.
Issue Description
Hi,
I have stored the sourcecode of the main program of my function in our git repository. The yaml-file of the function is so constructed, that the source code is loaded from the git repository at time of developing. First developing after the importing of the yaml is successful. But if I change the source in the git repository, the changing shows no effort after the developing. I examined this circumstance and come to the conclusion, that the old source is obviously cached in Nuclio and is not replaced by the new.
An experiment confirms this: I deleted the source from the git repository and started the developing. This was successful ! First, if I deleted the function and newly loaded the yaml-file, then I received the message of the absence of the code file. The developing failed.
Best Regards
Rose
Expected Behavior
Deployment Method
Docker
Nuclio Version
1.11.24
Additional Information
No response
The text was updated successfully, but these errors were encountered: