Skip to content

Commit

Permalink
improve dockerfile, minors
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianmarco Fraccaroli committed Dec 19, 2023
1 parent 114e61b commit 7552feb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,17 @@ FROM debian:bullseye-slim

RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y ca-certificates

WORKDIR /app

# copy the runtime files
COPY scenarios /app
COPY --from=builder /app/target/release/namada-scenario-tester /app/namada-scenario-tester
WORKDIR /app

# start the dart webserver
ENTRYPOINT ["./namada-scenario-tester"]
CMD ["--help"]
# download masp parameters
RUN curl -o /app/masp-spend.params -L https://github.com/anoma/masp-mpc/releases/download/namada-trusted-setup/masp-spend.params\?raw\=true
RUN curl -o /app/masp-output.params -L https://github.com/anoma/masp-mpc/releases/download/namada-trusted-setup/masp-output.params?raw=true
RUN curl -o /app/masp-convert.params -L https://github.com/anoma/masp-mpc/releases/download/namada-trusted-setup/masp-convert.params?raw=true

ENV NAMADA_MASP_PARAMS_DIR /app

ENTRYPOINT ["./namada-scenario-tester"]
1 change: 1 addition & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#[derive(clap::Parser, Clone)]
pub struct AppConfig {
#[clap(long, env)]
#[arg(required = true)]
pub scenario: String,

#[clap(long, env)]
Expand Down
2 changes: 2 additions & 0 deletions src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ impl Runner {
.await;
Report::update_commit_status(report_url, artifacts_url, &outcome, &sha, &report_name, &scenario_name)
.await;
} else {
println!("Skipping report submission.");
}

println!("Done.");
Expand Down

0 comments on commit 7552feb

Please sign in to comment.