Compare commits

...
19 Commits
Author SHA1 Message Date
iexos 1f0c34cca5 set proper default domain
the placeholder was not replaced by abra 0.13, now following the convention of other recipes
2026-10-12 12:57:19 +00:00
iexos 855753017f fix traefik network label 2026-10-12 12:53:59 +00:00
trav 9f2648b91a Merge pull request 'chore: upgrade to 1.2.0+2.43.0' (#7) from upgrade-1.2.0+2.43.0 into main
Reviewed-on: coop-cloud/custom-html-tiny#7
2026-06-15 17:36:59 +00:00
autonomic-bot 526502bad2 chore: upgrade to 1.2.0+2.43.0 2026-06-11 22:37:06 +00:00
notplants 9556575bb5 Merge pull request 'chore: upgrade to 1.1.0+2.42.0' (#6) from upgrade-1.1.0+2.42.0 into main
Reviewed-on: coop-cloud/custom-html-tiny#6
2026-06-09 01:51:12 +00:00
autonomic-bot 156a49acc1 chore: upgrade to 1.1.0+2.42.0 2026-05-31 13:31:41 +00:00
kawaiipunk 435df8fc98 Merge pull request 'Update README.md with real example for copying' (#4) from bohne/custom-html-tiny:bohne-patch-1 into main
Reviewed-on: coop-cloud/custom-html-tiny#4
2026-05-12 18:48:38 +00:00
bohne d60556f060 Update README.md with real example for copying 2026-02-10 08:12:09 +00:00
cas 39c35c33d8 chore: publish 1.0.1+2.38.0 release 2025-08-31 10:52:13 -07:00
cas 3ed3698ce7 Update README.md, again 2025-08-31 10:51:48 -07:00
cas 2e3ab4c50c Update README.md 2025-08-31 10:50:30 -07:00
cas feb1e3dbb9 chore: publish 1.0.0+2.38.0 release 2025-08-31 10:33:34 -07:00
cas 742232d7f1 Switch to Static Web Server from THTTPd 2025-08-20 09:18:39 -07:00
cas 3703df011b Update .drone.yml 2025-01-08 10:09:12 -08:00
cas 3cb41c2613 chore: publish 0.1.0+0.2.29 release 2023-04-27 14:20:48 -07:00
3wordchant 9786b3965b Switch to self-hosted stack-ssh-deploy image [mass update] 2023-01-21 11:49:55 -08:00
3wordchant 692a3898ec Update abra syntax in examples (finally) [mass update] 2023-01-20 10:46:09 -08:00
3wordchant 5ecf743b6d Add CI and catalogue generation [mass update] 2023-01-20 10:45:33 -08:00
knoflook 4f8abb3fa7 allow user to use plain http 2022-11-17 11:46:29 +01:00
7 changed files with 63 additions and 21 deletions
+38
View File
@@ -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: custom-html-tiny
generate_secrets: true
purge: true
deploy_key:
from_secret: drone_ssh_swarm_test
networks:
- proxy
environment:
DOMAIN: custom-html-tiny.swarm-test.autonomic.zone
STACK_NAME: custom-html-tiny
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:
- toolshed/auto-recipes-catalogue-json
trigger:
event: tag
+4 -1
View File
@@ -1,6 +1,6 @@
TYPE=custom-html-tiny
DOMAIN={{ .Domain }}
DOMAIN=custom-html-tiny.example.com
## Domain aliases
#EXTRA_DOMAINS=', `www.custom-html.example.com`'
@@ -16,3 +16,6 @@ COMPOSE_FILE="compose.yml"
#COMPOSE_FILE="$COMPOSE_FILE:compose.git-pull.yml"
#GIT_REPO_URL="https://git.coopcloud.tech/dalmationer/hexbomb.gay"
#CRON_SCHEDULE="*/1 * * * *"
# Allow access trough plain http
#COMPOSE_FILE="$COMPOSE_FILE:compose.http.yml"
+7 -16
View File
@@ -4,34 +4,25 @@ Custom HTML website, served using thttpd
<!-- metadata -->
* **Category**: Apps
* **Status**: 0, work-in-progress
* **Image**: [`thttpd`](https://hub.docker.com/r/dragas/thttpd), 2, 3rd party image
* **Status**: 2, stable
* **Image**: [`static-web-server`](https://hub.docker.com/r/joseluisq/static-web-server/), 4, upstream
* **Healthcheck**: No
* **Backups**: No
* **Email**: N/A
* **Tests**: 0
* **SSO**: 3 (OAuth)
* **SSO**: 1, Optional traefik forward auth
<!-- endmetadata -->
## Basic usage
1. Set up Docker Swarm and [`abra`]
2. Deploy [`coop-cloud/traefik`]
3. `abra app new custom-html`
4. `abra app YOURAPPDOMAIN config` - be sure to change `$DOMAIN` to something that resolves to
3. `abra app new custom-html-tiny`
4. `abra app config YOURAPPDOMAIN` - be sure to change `$DOMAIN` to something that resolves to
your Docker swarm box
5. `abra app YOURAPPDOMAIN deploy`
5. `abra app deploy YOURAPPDOMAIN`
6. Copy your files to the container, using something like
```
abra app YOURAPPDOMAIN cp index.html app:/content
abra app cp YOURAPPDOMAIN index.html app:/var/www/http
```
[`abra`]: https://git.autonomic.zone/autonomic-cooperative/abra
[`coop-cloud/traefik`]: https://git.autonomic.zone/coop-cloud/traefik
## Git Based Usage
1. Set up as above, stop at step 4.
2. Deploy `swarm-cronjob` to the host
3. `abra app config`, Uncomment Git lines in configuration, and set variables as appropriate.
4. `abra app YOURAPPDOMAIN deploy`
+1 -1
View File
@@ -3,7 +3,7 @@ services:
git:
environment:
- GIT_REPO_URL
image: alpine/git:v2.32.0
image: alpine/git:v2.52.0
entrypoint: /docker-entrypoint.sh
volumes:
- content:/git
+8
View File
@@ -0,0 +1,8 @@
version: "3.8"
services:
app:
deploy:
labels:
- "traefik.http.routers.${STACK_NAME}_http.entrypoints=web"
- "traefik.http.routers.${STACK_NAME}_http.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
+4 -3
View File
@@ -3,8 +3,8 @@ version: "3.8"
services:
app:
image: dragas/thttpd
command: ["-D", "-l", "/dev/stderr", "-d", "/var/www/http/$HTTP_SUBDIR"]
image: joseluisq/static-web-server:2.43.0
command: ["-a", "0.0.0.0", "-p", "80", "-g", "warn", "-d", "/var/www/http/$HTTP_SUBDIR"]
networks:
- proxy
deploy:
@@ -12,12 +12,13 @@ services:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.swarm.network=proxy"
- "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}"
# Redirect from EXTRA_DOMAINS to DOMAIN
- "coop-cloud.${STACK_NAME}.version=1.2.1+1.21.6"
- "coop-cloud.${STACK_NAME}.version=1.2.0+2.43.0"
environment:
- HTTP_SUBDIR
volumes:
+1
View File
@@ -0,0 +1 @@
This switches from thttpd to the more reliable SWS