Skip to content

Commit

Permalink
Merge pull request #80 from threefoldtech/master_stack_size_for_docke…
Browse files Browse the repository at this point in the history
…r2fl

set a stack size for running docker2fl
  • Loading branch information
rawdaGastan authored Oct 29, 2024
2 parents 0cc4119 + 5ef1d84 commit 5b68426
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions docker2fl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use bollard::auth::DockerCredentials;
use clap::{ArgAction, Parser};
use rfs::fungi;
use rfs::store::parse_router;
use tokio::runtime::Builder;
use uuid::Uuid;

mod docker2fl;
Expand Down Expand Up @@ -53,8 +54,16 @@ struct Options {
registry_token: Option<String>,
}

#[tokio::main]
async fn main() -> Result<()> {
fn main() -> Result<()> {
let rt = Builder::new_multi_thread()
.thread_stack_size(8 * 1024 * 1024)
.enable_all()
.build()
.unwrap();
rt.block_on(run())
}

async fn run() -> Result<()> {
let opts = Options::parse();

simple_logger::SimpleLogger::new()
Expand Down
2 changes: 1 addition & 1 deletion rfs/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use anyhow::{Context, Result};
use clap::{ArgAction, Args, Parser, Subcommand};

use rfs::fungi;
use rfs::store::{self, Router, Stores};
use rfs::store::{self};
use rfs::{cache, config};

mod fs;
Expand Down

0 comments on commit 5b68426

Please sign in to comment.