test code-server, remove beets

This commit is contained in:
Alexandre
2020-12-10 12:02:41 +01:00
parent e1c54fba3a
commit 023b04b32a
14 changed files with 59 additions and 188 deletions

7
code-server/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
ARG BUILD_FROM
FROM $BUILD_FROM
# MOFIFY DATA PATH
RUN sed -i "s|config|data|g" /etc/services.d/code-server/run
VOLUME [ "/data" ]

27
code-server/README.md Normal file
View File

@@ -0,0 +1,27 @@
# Hassio Add-ons by alexbelgium: doublecommander
## About
Double Commander is a free cross platform open source file manager with two panels side by side. It is inspired by Total Commander and features some new ideas.
This addon is based on the [docker image](https://github.com/linuxserver/docker-doublecommander) 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
Webui can be found at `<your-ip>:3000`.
[repository]: https://github.com/alexbelgium/hassio-addons

14
code-server/build.json Normal file
View File

@@ -0,0 +1,14 @@
{
"build_from_template": {
"image": "linuxserver/code-server",
"version": "latest"
},
"build_from": {
"armv7": "linuxserver/code-server:arm32v7-latest",
"armhf": "linuxserver/code-server:arm32v7-latest",
"aarch64": "linuxserver/code-server:arm64v8-latest",
"amd64": "linuxserver/code-server:amd64-latest"
},
"squash": false,
"args": {}
}

38
code-server/config.json Normal file
View File

@@ -0,0 +1,38 @@
{
"name": "VS code",
"version": "1.<2E>",
"slug": "code-server",
"description": "Double Commander is a free cross platform open source file manager with two panels side by side.",
"url": "https://github.com/alexbelgium/hassio-addons/code-server",
"startup": "services",
"arch": [
"aarch64",
"amd64",
"armv7",
"armhf"
],
"ports": {
"8443/tcp": 8443
},
"map": [
"backup:rw",
"config:rw",
"share:rw",
"media:rw",
"ssl"
],
"webui": "http://[HOST]:[PORT:3000]",
"environment": {
"PUID": "0",
"PGID": "0"
},
"options": {
"PUID": "0",
"PGID": "0"
},
"schema": {
"PUID": "int",
"PGID": "int",
"TZ": "str?"
}
}

BIN
code-server/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

BIN
code-server/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@@ -0,0 +1,43 @@
#!/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
# Mount CIFS Share if configured and if Protection Mode is active
if bashio::config.has_value 'networkdisks'; then
MOREDISKS=$(bashio::config 'networkdisks')
CIFS_USERNAME=$(bashio::config 'cifsusername')
CIFS_PASSWORD=$(bashio::config 'cifspassword')
bashio::log.info "Network Disks mounting.. ${MOREDISKS}" && \
for disk in $MOREDISKS
do
bashio::log.info "Mount ${disk}"
mkdir -p /share/storagecifs && \
if [ ! -d /storage/storagecifs ]; then
echo "Creating /storage/storagecifs"
mkdir -p /storage/storagecifs
chown -R abc:abc /storage/storagecifs
fi
mount -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD $disk /storage/storagecifs && \
bashio::log.info "Success!"
done || \
bashio::log.warning "Protection mode is ON. Unable to mount external drives!"
fi