From ee92394c3f8741d5af9479af04dd8d2aa73caf38 Mon Sep 17 00:00:00 2001 From: Bill Maxwell Date: Thu, 18 Jan 2024 09:49:17 -0700 Subject: [PATCH] Added Acorn metadata Signed-off-by: Bill Maxwell --- Acornfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Acornfile b/Acornfile index ad26a48..f5b4739 100644 --- a/Acornfile +++ b/Acornfile @@ -1,3 +1,8 @@ +name: "External Redis Server" +description: "Create an Acorn service from an existing Redis server" +readme: "./README.md" +info: localData.info + services: redis: { generated: job: "create" default: true @@ -50,3 +55,18 @@ localData: instructions: """ - proto: the protocol to use to connect to the Redis server. - dbName: the name of the database to use """ + +localData: info: """ +## Usage + +services: db: image: "ghcr.io/acorn-io/redis:v#.#.#-#" + +containers: app: { + image: "app-image" + env: { + DB_HOST: "@{@{service.}db.address}" + DB_PORT: "@{@{service.}db.port.6379}" + DB_PASS: "@{@{service.}db.secrets.admin.token}" + } +} +"""