Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fsat/k8s-cli


https://github.com/fsat/k8s-cli

scala scala-native

Last synced: 25 days ago
JSON representation

Awesome Lists containing this project

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
```