Compare commits
19
Commits
trunk
...
iexos-patch-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f0c34cca5 | ||
|
|
855753017f | ||
|
|
9f2648b91a | ||
|
|
526502bad2 | ||
|
|
9556575bb5 | ||
|
|
156a49acc1 | ||
|
|
435df8fc98 | ||
|
|
d60556f060 | ||
|
|
39c35c33d8 | ||
|
|
3ed3698ce7 | ||
|
|
2e3ab4c50c | ||
|
|
feb1e3dbb9 | ||
|
|
742232d7f1 | ||
|
|
3703df011b | ||
|
|
3cb41c2613 | ||
|
|
9786b3965b | ||
|
|
692a3898ec | ||
|
|
5ecf743b6d | ||
|
|
4f8abb3fa7
|
+38
@@ -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
@@ -1,6 +1,6 @@
|
|||||||
TYPE=custom-html-tiny
|
TYPE=custom-html-tiny
|
||||||
|
|
||||||
DOMAIN={{ .Domain }}
|
DOMAIN=custom-html-tiny.example.com
|
||||||
|
|
||||||
## Domain aliases
|
## Domain aliases
|
||||||
#EXTRA_DOMAINS=', `www.custom-html.example.com`'
|
#EXTRA_DOMAINS=', `www.custom-html.example.com`'
|
||||||
@@ -16,3 +16,6 @@ COMPOSE_FILE="compose.yml"
|
|||||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.git-pull.yml"
|
#COMPOSE_FILE="$COMPOSE_FILE:compose.git-pull.yml"
|
||||||
#GIT_REPO_URL="https://git.coopcloud.tech/dalmationer/hexbomb.gay"
|
#GIT_REPO_URL="https://git.coopcloud.tech/dalmationer/hexbomb.gay"
|
||||||
#CRON_SCHEDULE="*/1 * * * *"
|
#CRON_SCHEDULE="*/1 * * * *"
|
||||||
|
|
||||||
|
# Allow access trough plain http
|
||||||
|
#COMPOSE_FILE="$COMPOSE_FILE:compose.http.yml"
|
||||||
|
|||||||
@@ -4,34 +4,25 @@ Custom HTML website, served using thttpd
|
|||||||
|
|
||||||
<!-- metadata -->
|
<!-- metadata -->
|
||||||
* **Category**: Apps
|
* **Category**: Apps
|
||||||
* **Status**: 0, work-in-progress
|
* **Status**: 2, stable
|
||||||
* **Image**: [`thttpd`](https://hub.docker.com/r/dragas/thttpd), 2, 3rd party image
|
* **Image**: [`static-web-server`](https://hub.docker.com/r/joseluisq/static-web-server/), 4, upstream
|
||||||
* **Healthcheck**: No
|
* **Healthcheck**: No
|
||||||
* **Backups**: No
|
* **Backups**: No
|
||||||
* **Email**: N/A
|
* **Email**: N/A
|
||||||
* **Tests**: 0
|
* **Tests**: 0
|
||||||
* **SSO**: 3 (OAuth)
|
* **SSO**: 1, Optional traefik forward auth
|
||||||
<!-- endmetadata -->
|
<!-- endmetadata -->
|
||||||
|
|
||||||
## Basic usage
|
## Basic usage
|
||||||
|
|
||||||
1. Set up Docker Swarm and [`abra`]
|
1. Set up Docker Swarm and [`abra`]
|
||||||
2. Deploy [`coop-cloud/traefik`]
|
2. Deploy [`coop-cloud/traefik`]
|
||||||
3. `abra app new custom-html`
|
3. `abra app new custom-html-tiny`
|
||||||
4. `abra app YOURAPPDOMAIN config` - be sure to change `$DOMAIN` to something that resolves to
|
4. `abra app config YOURAPPDOMAIN` - be sure to change `$DOMAIN` to something that resolves to
|
||||||
your Docker swarm box
|
your Docker swarm box
|
||||||
5. `abra app YOURAPPDOMAIN deploy`
|
5. `abra app deploy YOURAPPDOMAIN`
|
||||||
6. Copy your files to the container, using something like
|
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`
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ services:
|
|||||||
git:
|
git:
|
||||||
environment:
|
environment:
|
||||||
- GIT_REPO_URL
|
- GIT_REPO_URL
|
||||||
image: alpine/git:v2.32.0
|
image: alpine/git:v2.52.0
|
||||||
entrypoint: /docker-entrypoint.sh
|
entrypoint: /docker-entrypoint.sh
|
||||||
volumes:
|
volumes:
|
||||||
- content:/git
|
- content:/git
|
||||||
|
|||||||
@@ -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
@@ -3,8 +3,8 @@ version: "3.8"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: dragas/thttpd
|
image: joseluisq/static-web-server:2.43.0
|
||||||
command: ["-D", "-l", "/dev/stderr", "-d", "/var/www/http/$HTTP_SUBDIR"]
|
command: ["-a", "0.0.0.0", "-p", "80", "-g", "warn", "-d", "/var/www/http/$HTTP_SUBDIR"]
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
deploy:
|
deploy:
|
||||||
@@ -12,12 +12,13 @@ services:
|
|||||||
condition: on-failure
|
condition: on-failure
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
|
- "traefik.swarm.network=proxy"
|
||||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
||||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
||||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||||
# Redirect from EXTRA_DOMAINS to DOMAIN
|
# 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:
|
environment:
|
||||||
- HTTP_SUBDIR
|
- HTTP_SUBDIR
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
This switches from thttpd to the more reliable SWS
|
||||||
Reference in New Issue
Block a user