+
Skip to content

Add an option to compile circuits in Docker for quick and easy installation #2

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vkonst
Copy link

@vkonst vkonst commented Nov 3, 2021

Circuits compilation inside a Docker container running circom.

To simplify/avoid installation of dependencies (circom):

  • WASM tester updated to support compilation of circuits in a container during test run
  • Bash script added for circuits compilation inside a container (w/o the test runner)
  • Test helper added for configuration of the WASM tester to work with circom in a conainer
    (The CIRCOM_DOCKER env param shall be set to any non-zero value to enable this mode)
  • Test examples extended to demonstrate use of the test helper

-v /etc/passwd:/etc/passwd:ro \
-v /etc/group:/etc/group:ro \
--user $(id -u) \
aspiers/circom circom $@
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully this can be replaced with iden3/circom or even just circom at some point :-)

options.compiler += `-v /etc/group:/etc/group:ro `;
options.compiler += `--user ${uid} `;
}
options.compiler += "aspiers/circom circom";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here - hopefully can be replaced with iden3/circom or circom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载