added papermerge

This commit is contained in:
Alexandre
2021-02-03 14:46:47 +01:00
parent 7739240ab5
commit b9de0d085a
8 changed files with 136 additions and 5 deletions

View File

@@ -22,13 +22,13 @@ Automatic addons update by aligning version tag with github upstream releases
### [Emby NAS](emby/)
A Free Software Media System that puts you in control of managing and streaming your media.
- Based on linuxserver image latest beta
- Based on linuxserver image latest beta : https://hub.docker.com/r/linuxserver/emby
- Forked from : https://github.com/petersendev/hassio-addons
- Modifications : switch to linuxserver beta versions, add smb and local disks mount [(@dianlight)](https://github.com/dianlight)
### [Transmission](transmission/)
The torrent client for Hass.io.
- Based on linuxserver image
- Based on linuxserver image : https://hub.docker.com/r/linuxserver/transmission
- Modifications : exposed settings.json in /share/transmission, add smb and local disks mount [(@dianlight)](https://github.com/dianlight)
### [Joal](joal/)
@@ -36,7 +36,7 @@ An open source command line RatioMaster with WebUI.
### [Nextcloud OCR](nextcloud/)
A Nextcloud container, brought to you by LinuxServer.io.
- Based on linuxserver image
- Based on linuxserver image : https://hub.docker.com/r/linuxserver/nextcloud
- Forked from : https://github.com/haberda/hassio_addons
- Modifications : update based on images numbering instead of "latest", tesseract for ocr
@@ -47,16 +47,20 @@ A free cross platform open source file manager with two panels side by side.
### [Code-server](code-server/)
Code-server is VS Code running on a remote server, accessible through the browser.
- Based on latest linuxserver image
- Based on latest linuxserver image https://hub.docker.com/r/linuxserver/code-server
### [Bitwarden](bitwarden/)
Open source password management solution
- Forked from : https://github.com/hassio-addons/addon-bitwarden
- Modifications : updated version
### [Papermerge](papermerge/)
Open source document management system (DMS)
- Based on linuxserver image : https://hub.docker.com/r/linuxserver/papermerge
### [Radarr NAS - Not maintained](radarr/)
A fork of Sonarr to work with movies like Couchpotato
- Forked from : https://github.com/petersendev/hassio-addons
- Forked from : https://hub.docker.com/r/linuxserver/radarr
- Modifications : add smb and local disks mount [(@dianlight)](https://github.com/dianlight)
[//]: # (ADDONLIST_END)

28
papermerge/Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
ARG BUILD_FROM
ARG BUILD_VERSION
FROM ${BUILD_FROM}${BUILD_VERSION}
# Add bashio
#RUN apk add --no-cache \
# curl \
# jq \
# && curl -J -L -o /tmp/bashio.tar.gz \
# "https://github.com/hassio-addons/bashio/archive/v0.7.1.tar.gz" \
# && mkdir /tmp/bashio \
# && tar zxvf \
# /tmp/bashio.tar.gz \
# --strip 1 -C /tmp/bashio \
# \
# && mv /tmp/bashio/lib /usr/lib/bashio \
# && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
# && rm -fr /tmp/bashio.tar.gz
# Copy root filesystem
# COPY rootfs /
# MOFIFY DATA PATH
# RUN sed -i "s|/data/papermerge|/papermerge|g" /etc/services.d/papermerge/run \
# && sed -i "s|/data/papermerge|/papermerge|g" /etc/cont-init.d/30-config
VOLUME [ "/data" ]

31
papermerge/README.md Normal file
View File

@@ -0,0 +1,31 @@
# Home assistant add-on: Transmission
![Supports aarch64 Architecture][aarch64-shield] ![Supports amd64 Architecture][amd64-shield] ![Supports armhf Architecture][armhf-shield] ![Supports armv7 Architecture][armv7-shield]
## About
Open source document management system (DMS)
This addon is based on the [docker image](https://hub.docker.com/r/linuxserver/papermerge) from linuxserver.io.
## Installation
The installation of this add-on is pretty straightforward and not different in
comparison to installing any other Hass.io add-on.
1. [Add my Hass.io add-ons repository][repository] to your Hass.io instance.
1. Install this add-on.
1. Click the `Save` button to store your configuration.
1. Start the add-on.
1. Check the logs of the add-on to see if everything went well.
1. Carefully configure the add-on to your preferences, see the official documentation for for that.
## Configuration
Default login is admin:admin via the webui, accessible at http://SERVERIP:PORT
Webui can be found at `<your-ip>:8000`.
[repository]: https://github.com/alexbelgium/hassio-addons
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg
[armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg
[armv7-shield]: https://img.shields.io/badge/armv7-yes-green.svg

9
papermerge/build.json Normal file
View File

@@ -0,0 +1,9 @@
{
"build_from": {
"armv7": "linuxserver/papermerge:arm32v7-version-v",
"armhf": "linuxserver/papermerge:arm32v7-version-v",
"aarch64": "linuxserver/papermerge:arm64v8-version-v",
"amd64": "linuxserver/papermerge:amd64-version-v"
}
}

38
papermerge/config.json Normal file
View File

@@ -0,0 +1,38 @@
{
"name": "Papermerge",
"version": "1.5.5",
"slug": "papermerge",
"description": "Open source document management system (DMS)",
"url": "https://hub.docker.com/r/linuxserver/papermerge",
"arch": [
"aarch64",
"amd64",
"armv7",
"armhf"
],
"ports": {
"8000/tcp": 8000
},
"ports_description": {
"9000/tcp": "Web UI port (required)"
},
"map": [
"config:rw",
"share:rw",
"media:rw",
"ssl"
],
"webui": "http://[HOST]:[PORT:8000]",
"boot": "auto",
"environment": {
},
"options": {
"PUID": 1000,
"PGID": 1000
},
"schema": {
"PUID": "int",
"PGID": "int",
"TZ": "str?"
}
}

BIN
papermerge/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

BIN
papermerge/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

@@ -0,0 +1,21 @@
#!/usr/bin/with-contenv bashio
bashio::log.info 'Mounting external hdd...'
# Mount local Share if configured and if Protection Mode is active
if bashio::config.has_value 'localdisks'; then
MOREDISKS=$(bashio::config 'localdisks')
bashio::log.info "Local Disks mounting.. ${MOREDISKS}" && \
for disk in $MOREDISKS
do
bashio::log.info "Mount ${disk}"
mkdir -p /share/$disk && \
if [ ! -d /share/$disk ]; then
echo "Creating /share/$disk"
mkdir -p /share/$disk
chown -R abc:abc /share/$disk
fi
mount /dev/$disk /share/$disk && \
bashio::log.info "Success!"
done || \
bashio::log.warning "Protection mode is ON. Unable to mount local drives!"
fi