-
Notifications
You must be signed in to change notification settings - Fork 56
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
Build Zokrates in Dockerfile #404
Conversation
48e38a8
to
1483a4a
Compare
I made a PR #428 that tweaks this build to creat a zokrates container image, from which the binary is copied. Saves about 10 mins on my machine because the binary is only built once |
My PR breaks the wallet tests so maybe leave it for now. |
It's not clear to me why it is breaking the tests though.. I experienced the same thing with this PR so I have re-run the workflow just in case |
ooh - it works now. Must be a timing thing. @druiz0992 has changed the timing in the wallet tests in PR #429 so hopefully this is a temporary issue and will go away when the ping-pong tests are merged. |
84a5b12
to
b382041
Compare
b382041
to
0fc2ade
Compare
🎉 This PR is included in version 1.15.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR closes #399 and superseded #396.
Zokrates 0.7.10 is now directly built in
optimist
andworker
containers. This is achieved by using the rust image in the first build stage and cloning the appropriate Zokrates release.There is a constraint when compiling rust binaries; in particular, glibc is dynamically linked at compile time and the binary expects to have the same version of glibc when the binary is compiled and when it is run. As we require a slightly later version of rust to compile Zokrates successfully for ARM, we also need an image in stage 2 of the build that has a later version of glibc - the result is the following:
optimist
we use a later version of the mongo image (based on ubuntufocal
- 20.04).worker
, I'm hesitant to bump the node version past node@14, so instead we pull in the ubuntu:20.04 image and install node@14. This does lead to a slightly larger final image, but if that becomes a future issue we can use a slimmer version oralpine
.Finally, after Zokrates 0.7.9, the
--light
flag has been removed from thecompile
command as it is now default behaviour. It has been removed.