Replies: 7 comments 5 replies
-
Why don't you use "jbang build" that is commented out ? That should do exactly what you need ? |
Beta Was this translation helpful? Give feedback.
-
Hello, I discover why a problem occurs into Docker but not found the solution to solve it. When we run "jbang demo.java, we check the dependency_cache.json file for files validaty about timestamp. The Dockerfile is very easy
Then we run a container
So we change 1666604930960 to 1666604930000 It is not a problem with TIMEZONE. I test with different TZ as env. The fact to run it again into container corrects the dependency_cache.json but next executions are rights. The goal to correct this point is to skip into CI/CD Gitlab, Gihub... the needs to pull dependencies as each exec. If you want, I open an issue. Thanks a lot ! |
Beta Was this translation helpful? Give feedback.
-
What OS are you seeing the issue on ? would like to try reproduce. |
Beta Was this translation helpful? Give feedback.
-
Hello, I send you all informations this afternoon. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hello, The easier thing to reproduce it to use this Dockerfile
And the demo.java
With this command :
During the execution, you will have Between the first and second exec, the cache is not right because ts value change. Very easy to reproduce thanks to Docker. Any version of Docker gives the same output. I test with Docker OSS Linux and Rancher Desktop for Mac. Like you, I am very surprised because I cannot reproduce with MacOS directly. Thanks a lot, Max. I will share with you a beer if you come in Marseille for Marseille Java User Group. Andy will be happy |
Beta Was this translation helpful? Give feedback.
-
Thanks to follow my problem @maxandersen I create a project there https://github.com/zepouet/jbang-demo/actions/runs/3351673253/jobs/5553281084 to see the weird problem. I reproduce it on Linux Docker and Rancher Desktop MacOS. Thanks |
Beta Was this translation helpful? Give feedback.
-
You are awesome !
Thanks a lot !
Le mer. 8 févr. 2023 à 09:42, Max Rydahl Andersen ***@***.***>
a écrit :
… by random chance I think we found the cause and fix in other PR:
https://github.com/jbangdev/jbang/pull/1559/files#diff-3ad7d34f4e4170b3e5c372c64bd813cde2dfa9d26e976373b897a945541a3554R41
—
Reply to this email directly, view it on GitHub
<#1491 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABYOZLW37TNTGQOSWNJKJDWWNL7NANCNFSM6AAAAAARL5QXWI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I would like to prepare the image with dependencies to skip to download at each run as container.
To explain my problem, I use
Dockerfile
demo.java
After to have build the image, I hope to have the dependencies previously downloaded but not.
Why ? I understand because we need to run it at least one time so it could be nice to have a jbang app deps to download without execution. It is too dangerous to run a first shot into Docker Build phase because we can't know what the script will do it 👎 )
It could be nice not only for Container Images but too with any server.
Thanks a lot,
Beta Was this translation helpful? Give feedback.
All reactions