Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fsat/k8s-cli
https://github.com/fsat/k8s-cli
scala scala-native
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fsat/k8s-cli
- Owner: fsat
- License: other
- Created: 2017-09-06T04:54:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-15T08:19:03.000Z (about 7 years ago)
- Last Synced: 2024-04-22T13:33:07.314Z (8 months ago)
- Topics: scala, scala-native
- Language: Scala
- Size: 11.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-scala-native - k8s-cli - CLI tools to generate [Kubernetes](https://kubernetes.io/) resources for [Akka](https://akka.io/), [Play Framework](https://www.playframework.com/) and [Lagom](https://www.lagomframework.com/)-based applications. (Programs)
README
# k8s-cli #
CLI tools to generate Kubernetes resources for Akka, Play, Lagom based application.
_Currently in prototype stage - nothing usable just yet_
## Build setup
The CLI tools depends on Scala Native to build, as such follow the instructions on the [Scala Native setup](http://www.scala-native.org/en/latest/user/setup.html#installing-clang-and-runtime-dependencies) page.
Scala Native requires LLVM 3.7 and above.
### MacOS specific setup
On macOs this would mean ensuring XCode is updated to Apple's latest version. With Apple's latest XCode version, the minimum LLVM version is satisfied, so Homebrew install is not required. However, the following needs to be installed to ensure `gc.h` is available despite it being optional on the Scala Native setup page:
```bash
$ brew install bdw-gc re2
```### Build native Argonaut (Temporarily)
_This step is temporary until Argonaut artefact for Scala Native 0.3 is released_
```bash
$ git clone https://github.com/argonaut-io/argonaut.git
$ cd argonaut
$ sbt argonautNative/publishLocal
```## Building and running
Use the following SBT command to create the native executable:
```bash
$ sbt nativeLink
```Once built, the native executable can be found in the `target/scala-2.11/k8s-cli-out` path, i.e.
```bash
$ target/scala-2.11/k8s-cli-out --help
k8s-cli 0.1.0
Usage: k8s-cli [options]--help Print this help text
```