buildpacks / samples

Samples for Cloud Native Buildpacks
Apache License 2.0
195 stars 147 forks source link

How can we use the buildpacks with the Rust app? #104

Closed thangchung closed 3 years ago

thangchung commented 3 years ago

Having walked through the samples repository, but I couldn't know how to handle the pack build with the Rust app. Could anyone shed the light on it? Thank you very much

dfreilich commented 3 years ago

Hey @thangchung ! To clarify the question - are you asking how to build a Rust app, with the pack CLI?

dfreilich commented 3 years ago

If so, we don't provide any sample buildpacks for Rust. It looks like there is a community buildpack in the Paketo project for Rust – you can check it out here: https://github.com/paketo-community/rust-cnb

To use that, you can run:

pack build <image-name> -b docker.io/dmikusa/rust

I'm going to close this for now, but feel free to reopen if that didn't answer your question!

thangchung commented 3 years ago

@dfreilich Thank you for your explanation. That's what I expect to look for.