apt needs '--yes'

This commit is contained in:
Bryan Stitt 2023-03-02 20:58:07 -08:00
parent ecd94c72c1
commit 586b772cdf
3 changed files with 8 additions and 5 deletions

@ -17,7 +17,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
ENV PATH /root/.foundry/bin:$PATH
RUN curl -L https://foundry.paradigm.xyz | bash && foundryup
RUN apt-get update && apt-get install librdkafka-dev && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install --yes librdkafka-dev && rm -rf /var/lib/apt/lists/*
# copy the application
COPY . .

@ -1,15 +1,15 @@
use argh::FromArgs;
#[derive(FromArgs, PartialEq, Debug)]
/// Second subcommand.
#[argh(subcommand, name = "two")]
pub struct SubCommandTwo {
/// An example subcommand. Copy paste this into a new file.
#[argh(subcommand, name = "example")]
pub struct ExampleSubcommand {
#[argh(switch)]
/// whether to fooey
fooey: bool,
}
impl SubCommandTwo {
impl ExampleSubcommand {
pub async fn main(self) -> anyhow::Result<()> {
todo!()
}

@ -13,6 +13,7 @@ mod pagerduty;
mod popularity_contest;
mod proxyd;
mod rpc_accounting;
mod search_kafka;
mod sentryd;
mod transfer_key;
mod user_export;
@ -80,6 +81,7 @@ enum SubCommand {
PopularityContest(popularity_contest::PopularityContestSubCommand),
Proxyd(proxyd::ProxydSubCommand),
RpcAccounting(rpc_accounting::RpcAccountingSubCommand),
SearchKafka(search_kafka::SearchKafkaSubCommand),
Sentryd(sentryd::SentrydSubCommand),
TransferKey(transfer_key::TransferKeySubCommand),
UserExport(user_export::UserExportSubCommand),
@ -374,6 +376,7 @@ fn main() -> anyhow::Result<()> {
x.main(pagerduty_async, top_config).await
}
SubCommand::PopularityContest(x) => x.main().await,
SubCommand::SearchKafka(x) => x.main().await,
SubCommand::Sentryd(x) => {
if cli_config.sentry_url.is_none() {
warn!("sentry_url is not set! Logs will only show in this console");