-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
119 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.env* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# app custom Makefile | ||
|
||
# Docker repo & image name without version | ||
IMAGE ?= miniflux/miniflux | ||
# Docker image version | ||
IMAGE_VER ?= latest | ||
# Hostname for external access | ||
APP_SITE ?= rss.dev.lan | ||
# App names (db/user name etc) | ||
APP_NAME ?= miniflix | ||
|
||
# Enable DB usage: | ||
# * Add DB config part to .env.sample | ||
# * Enable db* targets | ||
# * make db-create inside .drone-default target | ||
USE_DB ?= yes | ||
|
||
# Add user config part to .env.sample | ||
ADD_USER ?= yes | ||
|
||
# ------------------------------------------------------------------------------ | ||
# app custom config | ||
|
||
DCAPE_ROOT ?= /opt/dcape/var | ||
|
||
# ------------------------------------------------------------------------------ | ||
# .env template (custom part) | ||
# inserted in .env.sample via 'make config' | ||
define CONFIG_CUSTOM | ||
# ------------------------------------------------------------------------------ | ||
# app custom config, generated by make config | ||
# db:$(USE_DB) user:$(ADD_USER) | ||
|
||
# Path to /opt/dcape/var. Used only outside drone | ||
#DCAPE_ROOT=$(DCAPE_ROOT) | ||
|
||
endef | ||
|
||
# ------------------------------------------------------------------------------ | ||
# Find and include DCAPE/apps/drone/dcape-app/Makefile | ||
DCAPE_COMPOSE ?= dcape-compose | ||
DCAPE_MAKEFILE ?= $(shell docker inspect -f "{{.Config.Labels.dcape_app_makefile}}" $(DCAPE_COMPOSE)) | ||
ifeq ($(shell test -e $(DCAPE_MAKEFILE) && echo -n yes),yes) | ||
include $(DCAPE_MAKEFILE) | ||
else | ||
include /opt/dcape-app/Makefile | ||
endif | ||
|
||
# ----------------------------------------------------------------------------- | ||
## Custom app targets | ||
#: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# dcape-app-miniflux | ||
|
||
[![GitHub Release][1]][2] [![GitHub code size in bytes][3]]() [![GitHub license][4]][5] | ||
|
||
[1]: https://img.shields.io/github/release/dopos/dcape-app-miniflux.svg | ||
[2]: https://github.com/dopos/dcape-app-miniflux/releases | ||
[3]: https://img.shields.io/github/languages/code-size/dopos/dcape-app-miniflux.svg | ||
[4]: https://img.shields.io/github/license/dopos/dcape-app-miniflux.svg | ||
[5]: LICENSE | ||
|
||
[miniflux](https://matrix-org.github.io/miniflux/) application package for [dcape](https://github.com/dopos/dcape). | ||
|
||
## Docker image used | ||
|
||
* [matrixdotorg/miniflux-monolith](https://hub.docker.com/r/matrixdotorg/miniflux-monolith) | ||
|
||
## Requirements | ||
|
||
* linux 64bit (git, make, sed) | ||
* [docker](http://docker.io) | ||
* [dcape](https://github.com/dopos/dcape) v2 | ||
* Git service ([github](https://github.com), [gitea](https://gitea.io) or [gogs](https://gogs.io)) | ||
|
||
## Install | ||
|
||
### By mouse (deploy with drone) | ||
|
||
* Gitea: Fork or mirror this repo in your Git service | ||
* Drone: Activate repo | ||
* Gitea: "Test delivery", config sample will be saved to enfist | ||
* Enfist: Edit config and remove .sample from name | ||
* Gitea: "Test delivery" again (or Drone: "Restart") - app will be installed and started on webhook host | ||
|
||
### By hands | ||
|
||
```bash | ||
git clone --single-branch --depth 1 https://github.com/dopos/dcape-app-miniflux.git | ||
cd dcape-app-miniflux | ||
make config | ||
... <edit .env.sample> | ||
mv .env.sample .env | ||
make up | ||
``` | ||
|
||
## License | ||
|
||
The MIT License (MIT), see [LICENSE](LICENSE). | ||
|
||
Copyright (c) 2022 Aleksei Kovrizhkin <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# custom app config | ||
# overrides DCAPE/apps/drone/dcape-app/docker-compose.yml | ||
|
||
version: '2' | ||
|
||
services: | ||
app: | ||
environment: | ||
- DATABASE_URL=postgres://${PGUSER}:${PGPASSWORD}@db/${PGDATABASE}?sslmode=disable | ||
- RUN_MIGRATIONS=1 | ||
- CREATE_ADMIN=1 | ||
- ADMIN_USERNAME=${USER_NAME} | ||
- ADMIN_PASSWORD=${USER_PASS} | ||
- BASE_URL=http://${APP_SITE} | ||
healthcheck: | ||
test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"] |