Code Monkey home page Code Monkey logo

basic_rust_lol_cnb_buildpack's Introduction

Basic Rust CNB

This basic rust CNB should create a web process that echos "lol" in a loop, but it does not.

Compare to a bash example that does the same thing: https://github.com/schneems/basic_bash_lol_cnb_buildpack, (but the bash version works).

Pre-reqs

  • Install rust - rustup
  • Add musl target to rustup - rustup target add x86_64-unknown-linux-musl
  • Install cargo-make: cargo install cargo-make
  • On mac install homebrew-musl-cross: brew install FiloSottile/musl-cross/musl-cross

Build

cargo make pack --profile "production"
pack buildpack package cutlass_local_buildpack_rust_example --config ./target/package.toml --format=image
pack build cutlass_local_rust_example --path . -B heroku/buildpacks:20 --buildpack docker://cutlass_local_buildpack_rust_example  -v
docker run -it --init cutlass_local_rust_example

Expected:

lol
lol
lol

Actual:

while true; do echo 'lol'; sleep 2; done: while true; do echo 'lol'; sleep 2; done: command not found

Debug

$ pack inspect cutlass_local_rust_example | grep -B2 web
Processes:
  TYPE                 SHELL        COMMAND        ARGS
  web (default)        bash         while true; do echo 'lol'; sleep 2; done

basic_rust_lol_cnb_buildpack's People

Contributors

schneems avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.