Skip to content

Commit

Permalink
chore(raiko): update docker info print. (#248)
Browse files Browse the repository at this point in the history
* feat: let user setup which network to run

* refine entrypoint.sh

Signed-off-by: smtmfft <[email protected]>

* update documents

Signed-off-by: smtmfft <[email protected]>

* update docker build and info print

Signed-off-by: smtmfft <[email protected]>

---------

Signed-off-by: smtmfft <[email protected]>
  • Loading branch information
smtmfft authored May 24, 2024
1 parent 9f80be5 commit 65c04ef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*

# 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
RUN cargo binstall -y --force cargo-risczero
RUN cargo risczero install
# RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
# RUN cargo binstall -y --force cargo-risczero
# RUN cargo risczero install

WORKDIR /opt/raiko
COPY . .
Expand Down
9 changes: 5 additions & 4 deletions host/src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use std::path::PathBuf;

use raiko_host::{interfaces::error::HostResult, server::serve, ProverState};
use tracing::debug;
use tracing::info;
use tracing_appender::{
non_blocking::WorkerGuard,
rolling::{Builder, Rotation},
Expand All @@ -13,15 +13,16 @@ use tracing_subscriber::FmtSubscriber;
async fn main() -> HostResult<()> {
env_logger::init();
let state = ProverState::init()?;
debug!("Start config:\n{:#?}", state.opts.proof_request_opt);
debug!("Args:\n{:#?}", state.opts);

let _guard = subscribe_log(
&state.opts.log_path,
&state.opts.log_level,
state.opts.max_log,
);

info!("Supported chains: {:?}", state.chain_specs);
info!("Start config:\n{:#?}", state.opts.proof_request_opt);
info!("Args:\n{:#?}", state.opts);

serve(state).await?;
Ok(())
}
Expand Down
1 change: 0 additions & 1 deletion host/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ impl ProverState {
} else {
SupportedChainSpecs::default()
};
info!("Supported chains: {:?}", chain_specs);

// Check if the cache path exists and create it if it doesn't.
if let Some(cache_path) = &opts.cache_path {
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2024-04-17
nightly-2024-02-06

0 comments on commit 65c04ef

Please sign in to comment.