Skip to content
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

chore: add dockerfile for circom unit tests #106

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/circuits-runner/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Base image (Ubuntu 22.04)
FROM ubuntu:22.04

# Install required packages
RUN apt-get update && apt-get install -y \
unzip wget curl sudo git build-essential \
&& rm -rf /var/lib/apt/lists/*

# Install Node.js 20
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs

# Install Bun
RUN curl -fsSL https://bun.sh/install | bash && \
echo 'export PATH="$HOME/.bun/bin:$PATH"' >> ~/.bashrc

# Install Rust
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"

# Install Circom
RUN mkdir -p /root/bin && \
wget https://github.com/iden3/circom/releases/download/v2.1.9/circom-linux-amd64 -O /root/bin/circom && \
chmod +x /root/bin/circom && \
echo "export PATH=/root/bin:\$PATH" >> ~/.bashrc

# Install Yarn
RUN npm install -g yarn

# Set working directory
WORKDIR /workspace

# Entrypoint
CMD ["sh", "-c", "yarn install --frozen-lockfile && cd packages/circuits && yarn test --maxWorkers=75% --no-cache"]
Loading