Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Added Acorn metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Maxwell <[email protected]>
  • Loading branch information
cloudnautique committed Jan 18, 2024
1 parent 7607003 commit ee92394
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Acornfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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}"
}
}
"""

0 comments on commit ee92394

Please sign in to comment.