From 69330507dbb592db5044ed7ee9b0e37866c76cde Mon Sep 17 00:00:00 2001 From: Adriano Santos Date: Fri, 15 Dec 2023 19:29:59 -0300 Subject: [PATCH] Added instructions to run Flame example app --- flame_example/Makefile | 6 +++++- flame_example/README.md | 22 +++++----------------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/flame_example/Makefile b/flame_example/Makefile index 4c7dac0..f7fd3c7 100644 --- a/flame_example/Makefile +++ b/flame_example/Makefile @@ -5,7 +5,7 @@ image=${registry}/flame-parent-example:${version} .PHONY: all -all: clean-all build build-image create-kind-cluster create-k8s-namespace load-kind-images +all: clean-all build build-image create-kind-cluster create-k8s-namespace load-kind-images apply-k8s-manifests clean: mix deps.clean --all @@ -31,3 +31,7 @@ load-kind-images: create-k8s-namespace: kubectl create ns flame + +apply-k8s-manifests: + kubectl -n flame apply -f .k8s/pool.yaml + kubectl -n flame apply -f .k8s/deployment.yaml \ No newline at end of file diff --git a/flame_example/README.md b/flame_example/README.md index 11f6e63..a8d7d96 100644 --- a/flame_example/README.md +++ b/flame_example/README.md @@ -1,21 +1,9 @@ -# FlameExample +# Flame Example -**TODO: Add description** +Example of a Flame application using the flame_k8s backend based on the Operator Pattern. -## Installation +## Installation and Run -If [available in Hex](https://hex.pm/docs/publish), the package can be installed -by adding `flame_example` to your list of dependencies in `mix.exs`: - -```elixir -def deps do - [ - {:flame_example, "~> 0.1.0"} - ] -end +```sh +$ make all ``` - -Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc) -and published on [HexDocs](https://hexdocs.pm). Once published, the docs can -be found at . -