Skip to content

Commit

Permalink
update build script for better feature organization
Browse files Browse the repository at this point in the history
Signed-off-by: smtmfft <[email protected]>
  • Loading branch information
smtmfft committed Oct 29, 2024
1 parent a43a58a commit e3374a5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM rust:1.75.0 AS builder

ENV DEBIAN_FRONTEND=noninteractive
ARG BUILD_FLAGS=""
ARG TASKDB=${TASKDB:-in-memory}
ARG TASKDB=${TASKDB:-raiko-tasks/in-memory}

# risc0 dependencies
# RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash && \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.zk
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ FROM base-builder AS builder

ENV DEBIAN_FRONTEND=noninteractive
ARG BUILD_FLAGS=""
ARG TASKDB=${TASKDB:-in-memory}
ARG TASKDB=${TASKDB:-raiko-tasks/in-memory}

WORKDIR /opt/raiko
# build related files
Expand Down
8 changes: 4 additions & 4 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ services:
context: ..
args:
ENABLE_SELF_REGISTER: "true"
TASKDB: ${TASKDB:-in-memory"}
TASKDB: ${TASKDB:-raiko-tasks/in-memory}
dockerfile: Dockerfile
image: us-docker.pkg.dev/evmchain/images/raiko:latest
container_name: raiko-init-self-register
Expand Down Expand Up @@ -55,7 +55,7 @@ services:
build:
context: ..
args:
TASKDB: ${TASKDB:-in-memory"}
TASKDB: ${TASKDB:-raiko-tasks/in-memory}
dockerfile: Dockerfile
image: us-docker.pkg.dev/evmchain/images/raiko:latest
container_name: raiko
Expand Down Expand Up @@ -98,7 +98,7 @@ services:
context: ..
dockerfile: Dockerfile
args:
TASKDB: ${TASKDB:-in-memory"}
TASKDB: ${TASKDB:-raiko-tasks/in-memory}
image: us-docker.pkg.dev/evmchain/images/raiko:latest
container_name: raiko-self-register
command: --config-path=/etc/raiko/config.sgx.json --chain-spec-path=/etc/raiko/chain_spec_list.docker.json
Expand Down Expand Up @@ -136,7 +136,7 @@ services:
context: ..
dockerfile: Dockerfile.zk
args:
TASKDB: ${TASKDB:-in-memory"}
TASKDB: ${TASKDB:-raiko-tasks/in-memory}
image: us-docker.pkg.dev/evmchain/images/raiko-zk:latest
container_name: raiko-zk
command: --config-path=/etc/raiko/config.sgx.json --chain-spec-path=/etc/raiko/chain_spec_list.docker.json
Expand Down
2 changes: 1 addition & 1 deletion provers/risc0/driver/src/methods/ecdsa.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub const ECDSA_ELF: &[u8] =
include_bytes!("../../../guest/target/riscv32im-risc0-zkvm-elf/release/ecdsa");
pub const ECDSA_ID: [u32; 8] = [
3652025223, 1048803843, 2950123308, 1536068232, 1159324221, 1265391242, 958811727, 4248139033,
46843261, 4287341384, 1164714702, 1381776748, 1542613440, 1347970650, 2481906212, 2285212198,
];
2 changes: 1 addition & 1 deletion provers/risc0/driver/src/methods/sha256.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub const SHA256_ELF: &[u8] =
include_bytes!("../../../guest/target/riscv32im-risc0-zkvm-elf/release/sha256");
pub const SHA256_ID: [u32; 8] = [
2716313044, 1330228279, 3217062305, 3693970552, 3654025276, 4270078228, 3722528174, 3151280396,
284623640, 3696386847, 995407058, 1839006951, 4246953846, 4005123554, 3918666326, 939004335,
];
4 changes: 2 additions & 2 deletions provers/risc0/driver/src/methods/test_risc0_guest.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub const TEST_RISC0_GUEST_ELF: &[u8] = include_bytes!(
"../../../guest/target/riscv32im-risc0-zkvm-elf/release/deps/risc0_guest-4ff36f602a7f8785"
"../../../guest/target/riscv32im-risc0-zkvm-elf/release/deps/risc0_guest-0bc1e8b3751fcce9"
);
pub const TEST_RISC0_GUEST_ID: [u32; 8] = [
487317851, 25800719, 3284824055, 1294483162, 678500656, 385631844, 1177387042, 72350148,
421024105, 3054720816, 1934771990, 3546695673, 239189973, 3330335383, 2486808766, 4291756183,
];

0 comments on commit e3374a5

Please sign in to comment.