mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
test code-server, remove beets
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
ARG BUILD_FROM
|
||||
FROM $BUILD_FROM
|
||||
|
||||
# copy local files
|
||||
COPY root/ /
|
||||
|
||||
# MOFIFY DATA PATH
|
||||
RUN sed -i "s|config|data|g" /etc/services.d/beets/run
|
||||
|
||||
VOLUME [ "/data" ]
|
||||
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"build_from_template": {
|
||||
"image": "linuxserver/beets",
|
||||
"version": "latest"
|
||||
},
|
||||
"build_from": {
|
||||
"armv7": "linuxserver/beets:arm32v7-latest",
|
||||
"armhf": "linuxserver/beets:arm32v7-latest",
|
||||
"aarch64": "linuxserver/beets:arm64v8-latest",
|
||||
"amd64": "linuxserver/beets:amd64-latest"
|
||||
},
|
||||
"squash": false,
|
||||
"args": {}
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
{
|
||||
"name": "Beets",
|
||||
"version": "1.0",
|
||||
"slug": "beets",
|
||||
"description": "Beets is a music library manager and not, for the most part, a music player.",
|
||||
"url": "https://github.com/alexbelgium/hassio-addons/doublecommander",
|
||||
"startup": "services",
|
||||
"arch": [
|
||||
"aarch64",
|
||||
"amd64",
|
||||
"armv7",
|
||||
"armhf"
|
||||
],
|
||||
"ports": {
|
||||
"8337/tcp": 8337
|
||||
},
|
||||
"map": [
|
||||
"backup:rw",
|
||||
"config:rw",
|
||||
"share:rw",
|
||||
"media:rw",
|
||||
"ssl"
|
||||
],
|
||||
"webui": "http://[HOST]:[PORT:8337]",
|
||||
"boot": "auto",
|
||||
"privileged": ["SYS_ADMIN", "DAC_READ_SEARCH"],
|
||||
"full_access": true,
|
||||
"options": {
|
||||
"PUID": "0",
|
||||
"PGID": "0",
|
||||
"localdisks": ["-sda1"],
|
||||
"networkdisks": "<//SERVER/SHARE>",
|
||||
"cifsusername": "<username>",
|
||||
"cifspassword": "<password>"
|
||||
},
|
||||
"schema": {
|
||||
"PUID": "int",
|
||||
"PGID": "int",
|
||||
"TZ": "str?",
|
||||
"localdisks": ["str"],
|
||||
"networkdisks": "str",
|
||||
"cifsusername": "str",
|
||||
"cifspassword": "str"
|
||||
}
|
||||
}
|
||||
7
code-server/Dockerfile
Normal file
7
code-server/Dockerfile
Normal 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" ]
|
||||
14
code-server/build.json
Normal file
14
code-server/build.json
Normal 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
38
code-server/config.json
Normal 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?"
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
@@ -1,5 +0,0 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
|
||||
for k in $(bashio::jq "${__BASHIO_ADDON_CONFIG}" 'keys | .[]'); do
|
||||
printf "$(bashio::config $k)" > /var/run/s6/container_environment/$k
|
||||
done
|
||||
@@ -1,70 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [ ! -d /emby ]; then
|
||||
echo "Creating /emby"
|
||||
mkdir -p /emby
|
||||
chown -R abc:abc /emby
|
||||
fi
|
||||
|
||||
if [ ! -d /share/emby ]; then
|
||||
echo "Creating /share/emby"
|
||||
mkdir -p /share/emby
|
||||
chown -R abc:abc /share/emby
|
||||
fi
|
||||
|
||||
if [ ! -d /config/emby ]; then
|
||||
echo "Creating /config/emby"
|
||||
mkdir -p /config/emby
|
||||
chown -R abc:abc /config/emby
|
||||
fi
|
||||
|
||||
# links
|
||||
|
||||
if [ ! -d /emby/cache ]; then
|
||||
echo "Creating link for /emby/cache"
|
||||
mkdir -p /share/emby/cache
|
||||
chown -R abc:abc /share/emby/cache
|
||||
ln -s /share/emby/cache /emby/cache
|
||||
fi
|
||||
|
||||
if [ ! -d /emby/config ]; then
|
||||
echo "Creating link for /emby/config"
|
||||
mkdir -p /config/emby
|
||||
chown -R abc:abc /config/emby
|
||||
ln -s /config/emby /emby/config
|
||||
fi
|
||||
|
||||
if [ ! -d /emby/data ]; then
|
||||
echo "Creating link for /emby/data"
|
||||
mkdir -p /share/emby/data
|
||||
chown -R abc:abc /share/emby/data
|
||||
ln -s /share/emby/data /emby/data
|
||||
fi
|
||||
|
||||
if [ ! -d /emby/logs ]; then
|
||||
echo "Creating link for /emby/logs"
|
||||
mkdir -p /share/emby/logs
|
||||
chown -R abc:abc /share/emby/logs
|
||||
ln -s /share/emby/logs /emby/logs
|
||||
fi
|
||||
|
||||
if [ ! -d /emby/metadata ]; then
|
||||
echo "Creating link for /emby/metadata"
|
||||
mkdir -p /share/emby/metadata
|
||||
chown -R abc:abc /share/emby/metadata
|
||||
ln -s /share/emby/metadata /emby/metadata
|
||||
fi
|
||||
|
||||
if [ ! -d /emby/plugins ]; then
|
||||
echo "Creating link for /emby/plugins"
|
||||
mkdir -p /share/emby/plugins
|
||||
chown -R abc:abc /share/emby/plugins
|
||||
ln -s /share/emby/plugins /emby/plugins
|
||||
fi
|
||||
|
||||
if [ ! -d /emby/root ]; then
|
||||
echo "Creating link for /emby/root"
|
||||
mkdir -p /share/emby/root
|
||||
chown -R abc:abc /share/emby/root
|
||||
ln -s /share/emby/root /emby/root
|
||||
fi
|
||||
@@ -1,43 +0,0 @@
|
||||
#!/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
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
Reference in New Issue
Block a user