rust-cnb

module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2019 License: Apache-2.0

README

Rust Cloud Native Buildpack

To package this buildpack for consumption:

$ ./scripts/package.sh

This builds the buildpack's Go source using GOOS=linux by default. You can supply another value as the first argument to package.sh.

Configuration

You can use a buildpack.yml file to configure rust and rustup versions for your rust-app. Here's an example buildpack.yml

---
rustup:
  version: 1.16.0
rust:
  version: nightly

# Version can be: nightly-2016-06-03, nightly, 1.32.0, stable etc

Quick test

  • Pull the stacks
docker pull cfbuildpacks/cflinuxfs3-cnb-experimental:build
docker pull cfbuildpacks/cflinuxfs3-cnb-experimental:run
  • Pull the cflinuxfs3 builder: docker pull kardolus/fs3builder
  • Package the buildpack: ./scripts/package.sh
  • Get the pack-cli: ./scripts/install_tools.sh
  • Create an OCI image:
pack build rustapp --builder kardolus/fs3builder --buildpack </path/to/packaged/buildpack> -p integration/testdata/simple_app/ --no-pull
  • Run the image: docker run -it rustapp

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL