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(raiko): update docker info print. #248

Merged
merged 5 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
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
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
Loading