From b7784195284ffb04c9f52c30d2550f9a31c074e0 Mon Sep 17 00:00:00 2001 From: brooke Date: Fri, 28 Feb 2025 20:54:38 -0500 Subject: [PATCH] initial commit --- .drone.yml | 38 ++++++++++++++++++++++++++++++++++++++ .env.sample | 8 ++++++++ .gitignore | 1 + README.md | 24 ++++++++++++++++++++++++ compose.localfs.yml | 10 ++++++++++ compose.yml | 37 +++++++++++++++++++++++++++++++++++++ release/.git-keep-me | 0 7 files changed, 118 insertions(+) create mode 100644 .drone.yml create mode 100644 .env.sample create mode 100644 .gitignore create mode 100644 README.md create mode 100644 compose.localfs.yml create mode 100644 compose.yml create mode 100644 release/.git-keep-me diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..47080d2 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,38 @@ +--- +kind: pipeline +name: deploy to swarm-test.autonomic.zone +steps: + - name: deployment + image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest + settings: + host: swarm-test.autonomic.zone + stack: example_com # UPDATE ME + generate_secrets: true + purge: true + deploy_key: + from_secret: drone_ssh_swarm_test + networks: + - proxy + environment: + DOMAIN: example.swarm-test.autonomic.zone # UPDATE ME + STACK_NAME: example_com # UPDATE ME + LETS_ENCRYPT_ENV: production +trigger: + branch: + - main +--- +kind: pipeline +name: generate recipe catalogue +steps: + - name: release a new version + image: plugins/downstream + settings: + server: https://build.coopcloud.tech + token: + from_secret: drone_abra-bot_token + fork: true + repositories: + - coop-cloud/auto-recipes-catalogue-json + +trigger: + event: tag diff --git a/.env.sample b/.env.sample new file mode 100644 index 0000000..3b01b95 --- /dev/null +++ b/.env.sample @@ -0,0 +1,8 @@ +TYPE=garage + +DOMAIN=garage.example.com + +## Domain aliases +#EXTRA_DOMAINS=', `www.garage.example.com`' + +LETS_ENCRYPT_ENV=production diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a6353d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.envrc diff --git a/README.md b/README.md new file mode 100644 index 0000000..3f48a1e --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# garage + +> One line description of the recipe + + + +* **Category**: Apps +* **Status**: 0 +* **Image**: [`garage`](https://hub.docker.com/r/garage), 4, upstream +* **Healthcheck**: No +* **Backups**: No +* **Email**: No +* **Tests**: No +* **SSO**: No + + + +## Quick start + +* `abra app new garage --secrets` +* `abra app config ` +* `abra app deploy ` + +For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech). diff --git a/compose.localfs.yml b/compose.localfs.yml new file mode 100644 index 0000000..b51bee7 --- /dev/null +++ b/compose.localfs.yml @@ -0,0 +1,10 @@ +--- +version: "3.8" + +services: + app: + image: dxflrs/garage:v1.0.0 + volumes: + - conf:/etc/garage.toml + - meta:/var/lib/garage/meta + - data:/var/lib/garage/data \ No newline at end of file diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..216c063 --- /dev/null +++ b/compose.yml @@ -0,0 +1,37 @@ +--- +version: "3.8" + +services: + app: + image: dxflrs/garage:v1.0.0 + networks: + - proxy + deploy: + restart_policy: + condition: on-failure + labels: + - "traefik.enable=true" + - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80" + - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})" + - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" + - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" + - "coop-cloud.${STACK_NAME}.version=" + volumes: + - conf:/etc/garage.toml + - meta:/var/lib/garage/meta + - data:/var/lib/garage/data + # healthcheck: + # test: ["CMD", "curl", "-f", "http://localhost"] + # interval: 30s + # timeout: 10s + # retries: 10 + # start_period: 1m + +networks: + proxy: + external: true + +volumes: + meta: + data: + conf: \ No newline at end of file diff --git a/release/.git-keep-me b/release/.git-keep-me new file mode 100644 index 0000000..e69de29