Skip to content
This repository has been archived by the owner on Jul 17, 2021. It is now read-only.

Latest commit

 

History

History
65 lines (41 loc) · 1.34 KB

README.md

File metadata and controls

65 lines (41 loc) · 1.34 KB

crystal-release

An unofficial bosh-package to vendor crystal. This package might be useful when authoring a bosh release that requires crystal as a runtime and/or compilation dependency.

Requirements

Usage

General

Step 1: Clone this repository and vendor crystal-* into your release:

$ git clone https://github.com/s4heid/crystal-release.git
$ cd ~/workspace/your-release
$ bosh vendor-package crystal-0.32.1 ~/workspace/crystal-release

Step 2: Add crystal-* to the spec file of your release:

dependencies:
- crystal-0.32.1

Compilation

To use crystal-* for compilation in a packaging script, source the compile.env script:

source /var/vcap/packages/crystal-0.32.1/bosh/compile.env
crystal build ...

Runtime

To use crystal-* at runtime in a packaging script, source the runtime.env script:

source /var/vcap/packages/crystal-0.32.1/bosh/runtime.env
crystal run ...

Development

Execute the tests against a working bosh environment (e.g., on virtualbox).

$ ./tests/run.sh

License

MIT License