Compare commits
19 Commits
0.1.0+0.6.
...
main
Author | SHA1 | Date |
---|---|---|
3wc | 08504cc4dc | |
3wc | f59c3364d4 | |
3wc | 1f99898c96 | |
3wc | b19972eea9 | |
3wc | a383d359ff | |
3wc | 15622ddc5c | |
3wc | 9d3da21c46 | |
3wc | d657cacd05 | |
knoflook | 5bf2b53016 | |
3wc | 6d060a32bb | |
3wc | fb106ec53a | |
3wc | 1494a05215 | |
3wc | 589f96b379 | |
decentral1se | c961df191d | |
decentral1se | 46eb11f5f2 | |
decentral1se | e7c172e6b7 | |
decentral1se | 2a337c680f | |
decentral1se | ceeded1c08 | |
knoflook | fd6817171e |
40
.drone.yml
40
.drone.yml
|
@ -3,53 +3,39 @@ kind: pipeline
|
|||
name: deploy to swarm-test.autonomic.zone
|
||||
steps:
|
||||
- name: deployment
|
||||
image: decentral1se/stack-ssh-deploy:latest
|
||||
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
|
||||
settings:
|
||||
host: swarm-test.autonomic.zone
|
||||
stack: calibre-web
|
||||
networks:
|
||||
- proxy
|
||||
purge: true
|
||||
deploy_key:
|
||||
from_secret: drone_ssh_swarm_test
|
||||
environment:
|
||||
STACK_NAME: calibre-web
|
||||
DOMAIN: calibre-web.swarm-test.autonomic.zone
|
||||
LETS_ENCRYPT_ENV: production
|
||||
APP_ENTRYPOINT_VERSION: v1
|
||||
NGINX_CONFIG_VERSION: v1
|
||||
|
||||
- name: notify coopcloud-dev on failure
|
||||
image: plugins/matrix
|
||||
settings:
|
||||
homeserver: https://matrix.autonomic.zone
|
||||
roomid: "IFazIpLtxiScqbHqoa:autonomic.zone"
|
||||
userid: "@autono-bot:autonomic.zone"
|
||||
accesstoken:
|
||||
from_secret: autono_bot_access_token
|
||||
depends_on:
|
||||
- deployment
|
||||
when:
|
||||
status:
|
||||
- failure
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: recipe release
|
||||
name: generate recipe catalogue
|
||||
steps:
|
||||
- name: release a new version
|
||||
image: decentral1se/drone-abra:latest
|
||||
settings:
|
||||
command: recipe calibre-web release
|
||||
deploy_key:
|
||||
from_secret: abra_bot_deploy_key
|
||||
|
||||
- name: trigger downstream builds
|
||||
image: plugins/downstream
|
||||
settings:
|
||||
server: https://drone.autonomic.zone
|
||||
server: https://build.coopcloud.tech
|
||||
token:
|
||||
from_secret: decentral1se_token
|
||||
from_secret: drone_abra-bot_token
|
||||
fork: true
|
||||
repositories:
|
||||
- coop-cloud/auto-apps-json
|
||||
depends_on:
|
||||
- release a new version
|
||||
- coop-cloud/auto-recipes-catalogue-json
|
||||
|
||||
trigger:
|
||||
event: tag
|
||||
|
|
24
README.md
24
README.md
|
@ -1,18 +1,20 @@
|
|||
# calibre-web
|
||||
|
||||
[![Build Status](https://build.coopcloud.tech/api/badges/coop-cloud/calibre-web/status.svg)](https://build.coopcloud.tech/coop-cloud/calibre-web)
|
||||
|
||||
> Calibre-Web is a web app providing a clean interface for browsing, reading
|
||||
> and downloading eBooks using an existing Calibre database.
|
||||
|
||||
<!-- metadata -->
|
||||
|
||||
* **Category**:
|
||||
* **Status**:
|
||||
* **Image**: [linuxserver/calibre-web](https://hub.docker.com/r/linuxserver/calibre-web)
|
||||
* **Healthcheck**:
|
||||
* **Backups**:
|
||||
* **Email**:
|
||||
* **Tests**:
|
||||
* **SSO**:
|
||||
* **Category**: Apps
|
||||
* **Status**: 2, pre-alpha
|
||||
* **Image**: [linuxserver/calibre-web](https://hub.docker.com/r/linuxserver/calibre-web), 2, third-party
|
||||
* **Healthcheck**: No
|
||||
* **Backups**: No
|
||||
* **Email**: N/A
|
||||
* **Tests**: 2
|
||||
* **SSO**: 1
|
||||
|
||||
<!-- endmetadata -->
|
||||
|
||||
|
@ -22,10 +24,12 @@
|
|||
2. Deploy [`coop-cloud/traefik`]
|
||||
3. `abra app new ${REPO_NAME} --secrets` (optionally with `--pass` if you'd like
|
||||
to save secrets in `pass`)
|
||||
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
|
||||
5. `abra app YOURAPPDOMAIN deploy`
|
||||
5. `abra app deploy YOURAPPDOMAIN`
|
||||
6. Open the configured domain in your browser to finish set-up
|
||||
|
||||
The default login is login: `admin`, password: `admin123`
|
||||
|
||||
[`abra`]: https://git.coopcloud.tech/coop-cloud/abra
|
||||
[`coop-cloud/traefik`]: https://git.coopcloud.tech/coop-cloud/traefik
|
||||
|
|
4
abra.sh
4
abra.sh
|
@ -1,2 +1,2 @@
|
|||
export APP_ENTRYPOINT_VERSION=v2
|
||||
export NGINX_CONFIG_VERSION=v1
|
||||
export APP_ENTRYPOINT_VERSION=v3
|
||||
export NGINX_CONFIG_VERSION=v3
|
||||
|
|
|
@ -3,7 +3,7 @@ version: "3.8"
|
|||
|
||||
services:
|
||||
web:
|
||||
image: nginx:1.20.0
|
||||
image: nginx:1.25.3
|
||||
networks:
|
||||
- proxy
|
||||
- internal
|
||||
|
@ -24,7 +24,7 @@ services:
|
|||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
|
||||
app:
|
||||
image: "lscr.io/linuxserver/calibre-web:0.6.14"
|
||||
image: "lscr.io/linuxserver/calibre-web:0.6.20"
|
||||
environment:
|
||||
- DOCKER_MODS
|
||||
- FLASK_DEBUG=${DEBUG}
|
||||
|
@ -43,7 +43,7 @@ services:
|
|||
mode: 0555
|
||||
deploy:
|
||||
labels:
|
||||
- "coop-cloud.${STACK_NAME}.version=0.1.0+0.6.14"
|
||||
- "coop-cloud.${STACK_NAME}.version=0.1.2+0.6.20"
|
||||
|
||||
networks:
|
||||
internal:
|
||||
|
|
|
@ -33,6 +33,11 @@ else
|
|||
echo "/books/metadata.db exists, not creating another one"
|
||||
fi
|
||||
|
||||
# https://github.com/janeczku/calibre-web/issues/2299
|
||||
echo "removing scholarly"
|
||||
apt-get install -y python3-distutils
|
||||
/usr/local/bin/pip3 uninstall -y scholarly
|
||||
|
||||
echo "ensuring permissions are set correctly on metadata parent directory"
|
||||
/usr/bin/chmod a+rw /books
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ http {
|
|||
listen 80;
|
||||
server_name {{ env "DOMAIN" }};
|
||||
|
||||
client_max_body_size 20M;
|
||||
client_max_body_size 150M;
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
|
Loading…
Reference in New Issue