Skip to content

Docker sample #115

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

Merged
merged 4 commits into from
Apr 29, 2025
Merged

Docker sample #115

merged 4 commits into from
Apr 29, 2025

Conversation

ljoy913
Copy link
Collaborator

@ljoy913 ljoy913 commented Apr 24, 2025

Added a Dockerfile in the sample folder to build and run the Crescent sample in a docker container

  • All the project dependencies are installed in the docker image.
  • The Crescent source for the image is copied from the local directory at build time, so any changes to the source code will be reflected in the resulting docker image.
  • Circom is cloned from its repo and is not copied from the local machine.
  • When running the container, the Crescent services will start and be available using the default endpoints. The ports can be changed as parameters to the run command.
  • The container will mount a folder called crescent-extention to the local directory that contains the client extension files and the mdl sample file.
  • The image build can take 30+ minutes to generate and use 35+GB of disk space.
  • Once the image is available, the container can be run with the docker run command.
  • Updated sample/README.md to add Docker info.
  • The Dockerfile itself contains comments to help build and run.

Copy link
Contributor

@christianpaquin christianpaquin left a comment

Choose a reason for hiding this comment

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

Build tested on Windows and Ubuntu

@christianpaquin christianpaquin merged commit 0a9afef into main Apr 29, 2025
4 checks passed
@christianpaquin christianpaquin deleted the docker-sample branch April 29, 2025 17:41
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