es1o / rust-rocket-docker

Example repository with rust rocket dockerized application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Example repository with rust rocket dockerized application


Languages

Language:Rust 71.7%Language:Dockerfile 28.3%