Compare commits
1 Commits
0.2.7+1.0.
...
plugmatic
Author | SHA1 | Date | |
---|---|---|---|
118fea84de |
41
.drone.yml
41
.drone.yml
@ -1,41 +0,0 @@
|
|||||||
---
|
|
||||||
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: federatedwiki
|
|
||||||
generate_secrets: true
|
|
||||||
purge: true
|
|
||||||
deploy_key:
|
|
||||||
from_secret: drone_ssh_swarm_test
|
|
||||||
networks:
|
|
||||||
- proxy
|
|
||||||
environment:
|
|
||||||
DOMAIN: federatedwiki.swarm-test.autonomic.zone
|
|
||||||
STACK_NAME: federatedwiki
|
|
||||||
LETS_ENCRYPT_ENV: production
|
|
||||||
INSTALL_SH_VERSION: v1
|
|
||||||
CONFIG_JSON_VERSION: v1
|
|
||||||
CONFIG_OWNER_JSON_VERSION: v1
|
|
||||||
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
|
|
10
.env.sample
10
.env.sample
@ -5,16 +5,8 @@ DOMAIN=federatedwiki.example.com
|
|||||||
#EXTRA_DOMAINS=', `www.federatedwiki.example.com`'
|
#EXTRA_DOMAINS=', `www.federatedwiki.example.com`'
|
||||||
LETS_ENCRYPT_ENV=production
|
LETS_ENCRYPT_ENV=production
|
||||||
|
|
||||||
COMPOSE_FILE="compose.yml"
|
|
||||||
|
|
||||||
# custom wiki.cafe image, for working oauth2 support
|
|
||||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.wikicafe.yml"
|
|
||||||
|
|
||||||
# Predefined "owner" security
|
# Predefined "owner" security
|
||||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.owner.yml"
|
#COMPOSE_FILE="compose.yml:compose.owner.yml"
|
||||||
|
|
||||||
# Persistent "lib" volume
|
|
||||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.lib.yml"
|
|
||||||
|
|
||||||
COOKIE_SECRET="asflkjqpweoriuwpeogdjgbpdofigh"
|
COOKIE_SECRET="asflkjqpweoriuwpeogdjgbpdofigh"
|
||||||
AUTHOR="Baja Colorado"
|
AUTHOR="Baja Colorado"
|
||||||
|
@ -4,8 +4,8 @@ Share pages circulating within a creative commons
|
|||||||
|
|
||||||
<!-- metadata -->
|
<!-- metadata -->
|
||||||
* **Category**: Apps
|
* **Category**: Apps
|
||||||
* **Status**: 0, work-in-progress
|
* **Status**: ❹💣
|
||||||
* **Image**: [`dobbs/farm`](https://hub.docker.com/r/dobbs/farm/), 4, upstream
|
* **Image**: [`dobbs/farm`](https://hub.docker.com/r/dobbs/farm/), ❶💚, upstream
|
||||||
* **Healthcheck**: No
|
* **Healthcheck**: No
|
||||||
* **Backups**: No
|
* **Backups**: No
|
||||||
* **Email**: No
|
* **Email**: No
|
||||||
@ -18,9 +18,9 @@ Share pages circulating within a creative commons
|
|||||||
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 federatedwiki`
|
3. `abra app new federatedwiki`
|
||||||
4. `abra app config YOURAPPDOMAIN` - be sure to change `DOMAIN` to something that resolves to
|
4. `abra app YOURAPPDOMAIN config` - be sure to change `DOMAIN` to something that resolves to
|
||||||
your Docker swarm box
|
your Docker swarm box
|
||||||
5. `abra app deploy YOURAPPDOMAIN`
|
5. `abra app YOURAPPDOMAIN deploy`
|
||||||
|
|
||||||
[`abra`]: https://git.autonomic.zone/autonomic-cooperative/abra
|
[`abra`]: https://git.autonomic.zone/autonomic-cooperative/abra
|
||||||
[`coop-cloud/traefik`]: https://git.autonomic.zone/coop-cloud/traefik
|
[`coop-cloud/traefik`]: https://git.autonomic.zone/coop-cloud/traefik
|
||||||
|
2
abra.sh
2
abra.sh
@ -1,4 +1,4 @@
|
|||||||
export INSTALL_SH_VERSION=v9
|
export INSTALL_SH_VERSION=v8
|
||||||
export CONFIG_JSON_VERSION=v7
|
export CONFIG_JSON_VERSION=v7
|
||||||
export CONFIG_OWNER_JSON_VERSION=v4
|
export CONFIG_OWNER_JSON_VERSION=v4
|
||||||
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
version: "3.8"
|
|
||||||
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
volumes:
|
|
||||||
- "fedwiki_lib:/home/node/lib"
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
fedwiki_lib:
|
|
@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
version: "3.8"
|
|
||||||
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: git.coopcloud.tech/wiki-cafe/wiki-farm:latest
|
|
@ -3,7 +3,7 @@ version: "3.8"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: dobbs/farm:1.0.17
|
image: dobbs/farm
|
||||||
command: /bin/sh config/install.sh
|
command: /bin/sh config/install.sh
|
||||||
volumes:
|
volumes:
|
||||||
- "fedwiki_friends:/home/node/config"
|
- "fedwiki_friends:/home/node/config"
|
||||||
@ -31,10 +31,6 @@ services:
|
|||||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||||
- "traefik.http.routers.${STACK_NAME}.tls.domains[0].main=${DOMAIN}"
|
- "traefik.http.routers.${STACK_NAME}.tls.domains[0].main=${DOMAIN}"
|
||||||
- "traefik.http.routers.${STACK_NAME}.tls.domains[0].sans=*.${DOMAIN}"
|
- "traefik.http.routers.${STACK_NAME}.tls.domains[0].sans=*.${DOMAIN}"
|
||||||
- "traefik.http.routers.${STACK_NAME}.priority=1"
|
|
||||||
- "backupbot.backup=true"
|
|
||||||
- "backupbot.backup.path=/home/node/.wiki"
|
|
||||||
- "coop-cloud.${STACK_NAME}.version=0.2.7+1.0.17"
|
|
||||||
# healthcheck:
|
# healthcheck:
|
||||||
# test: ["CMD", "curl", "-f", "http://localhost"]
|
# test: ["CMD", "curl", "-f", "http://localhost"]
|
||||||
# interval: 30s
|
# interval: 30s
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
npm install wiki-plugin-plugmatic
|
||||||
|
|
||||||
if [ ! -f .wiki/config.json ]; then
|
if [ ! -f .wiki/config.json ]; then
|
||||||
cp config/config.json .wiki/config.json
|
cp config/config.json .wiki/config.json
|
||||||
fi
|
fi
|
||||||
@ -8,4 +10,4 @@ if [ ! -f .wiki/config.owner.json ]; then
|
|||||||
cp config/config.owner.json .wiki/config.owner.json
|
cp config/config.owner.json .wiki/config.owner.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wiki --farm
|
wiki --farm --security_type=friends
|
||||||
|
Reference in New Issue
Block a user