/rust-rocket-docker

Example repository with rust rocket dockerized application

Primary LanguageRust

rust-rocket-docker

Sample application for demonstrate rust CI/CD process for docker container and unikernel...

run as unikernel

  1. Install ops
  2. Configure x86_64-unknown-linux-musl toolchain
    1. Install toolchain: rustup target add x86_64-unknown-linux-musl
    2. Add to ~/.cargo/config
    [target.x86_64-unknown-linux-musl]
    linker = "x86_64-linux-musl-gcc"
    
  3. Build application: cargo build --release --target=x86_64-unknown-linux-musl
  4. Run application as unikernel: ops run -p 8000 target/x86_64-unknown-linux-musl/release/rocket-test