docker update

This commit is contained in:
Alexey 2021-02-17 22:15:45 +03:00
parent fe2912fc33
commit 11c48fae14
2 changed files with 2 additions and 3 deletions

View File

@ -16,7 +16,6 @@ COPY circuits circuits
COPY scripts scripts COPY scripts scripts
# ENV NODE_OPTIONS='--trace-gc --trace-gc-ignore-scavenger --max-old-space-size=2048000 --initial-old-space-size=2048000 --no-global-gc-scheduling --no-incremental-marking --max-semi-space-size=1024 --initial-heap-size=2048000' # ENV NODE_OPTIONS='--trace-gc --trace-gc-ignore-scavenger --max-old-space-size=2048000 --initial-old-space-size=2048000 --no-global-gc-scheduling --no-incremental-marking --max-semi-space-size=1024 --initial-heap-size=2048000'
ENV NODE_OPTIONS='--max-old-space-size=2048000' ENV NODE_OPTIONS='--max-old-space-size=2048000'
RUN mkdir -p build/circuits
RUN yarn circuit:batchTreeUpdateLarge RUN yarn circuit:batchTreeUpdateLarge
RUN yarn circuit:batchTreeUpdateWitness RUN yarn circuit:batchTreeUpdateWitness
COPY . . COPY . .

View File

@ -1,6 +1,6 @@
#!/bin/bash -e #!/bin/bash -e
# required dependencies: libgmp-dev nlohmann-json3-dev nasm g++ # required dependencies: libgmp-dev nlohmann-json3-dev nasm g++
cd build/circuits cd artifacts/circuits
node ../../node_modules/ffiasm/src/buildzqfield.js -q 21888242871839275222246405745257275088548364400416034343698204186575808495617 -n Fr node ../../node_modules/ffiasm/src/buildzqfield.js -q 21888242871839275222246405745257275088548364400416034343698204186575808495617 -n Fr
nasm -felf64 fr.asm nasm -felf64 fr.asm
cp ../../node_modules/circom_runtime/c/*.cpp ./ cp ../../node_modules/circom_runtime/c/*.cpp ./