experimental

This commit is contained in:
Alexandre
2021-12-04 19:33:34 +01:00
parent a61f0157fe
commit 2de6680c4a
7 changed files with 80 additions and 33 deletions

View File

@@ -3,25 +3,25 @@ ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ARG BASHIO_VERSION=0.14.3 ARG BASHIO_VERSION=0.14.3
RUN \ RUN
################### ###################
# Install bashio # # Install bashio #
################## ##################
mkdir -p /tmp/bashio \ mkdir -p /tmp/bashio &&
&& curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" \ curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
| tar -xzf - --strip 1 -C /tmp/bashio \ tar -xzf - --strip 1 -C /tmp/bashio &&
&& mv /tmp/bashio/lib /usr/lib/bashio \ mv /tmp/bashio/lib /usr/lib/bashio &&
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ ln -s /usr/lib/bashio/bashio /usr/bin/bashio &&
&& rm -rf /tmp/bashio || true rm -rf /tmp/bashio || true
RUN \ RUN
# Allow UID and GID setting # Allow UID and GID setting
sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \ sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser &&
&& sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \ sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser &&
&& sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser
# copy local files # copy local files
COPY root/ / COPY root/ /
### LABELS ### LABELS
ARG BUILD_ARCH ARG BUILD_ARCH

View File

@@ -1,4 +1,4 @@
# Home assistant add-on: firefox # Home assistant add-on: Webtop Alpine
[![Donate][donation-badge]](https://www.buymeacoffee.com/alexbelgium) [![Donate][donation-badge]](https://www.buymeacoffee.com/alexbelgium)
@@ -14,8 +14,8 @@ _Thanks to everyone having starred my repo! To star it click on the image below,
## About ## About
[firefox](https://github.com/firefox/firefox) is a well known internet browser. [webtop](https://github.com/webtop/webtop) is a full Alpine desktop environments accessible via any modern web browser.
This addon is based on the docker image https://github.com/linuxserver/docker-firefox This addon is based on the docker image https://github.com/linuxserver/docker-webtop
## Configuration ## Configuration
@@ -41,7 +41,7 @@ Create an issue on github
## Illustration ## Illustration
![illustration](https://firefox.com/img/slider/artistdetails.png) ![illustration](https://webtop.com/img/slider/artistdetails.png)
[repository]: https://github.com/alexbelgium/hassio-addons [repository]: https://github.com/alexbelgium/hassio-addons
[smb-shield]: https://img.shields.io/badge/smb-yes-green.svg [smb-shield]: https://img.shields.io/badge/smb-yes-green.svg

View File

@@ -1,6 +1,6 @@
#include <tunables/global> #include <tunables/global>
profile firefox_addon flags=(attach_disconnected,mediate_deleted) { profile webtop_addon flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base> #include <abstractions/base>
capability, capability,

View File

@@ -1,8 +1,8 @@
{ {
"build_from": { "build_from": {
"armhf": "linuxserver/firefox:arm32v7-latest", "armhf": "linuxserver/webtop:arm32v7-latest",
"armv7": "linuxserver/firefox:arm32v7-latest", "armv7": "linuxserver/webtop:arm32v7-latest",
"aarch64": "linuxserver/firefox:arm64v8-latest", "aarch64": "linuxserver/webtop:arm64v8-latest",
"amd64": "linuxserver/firefox:amd64-latest" "amd64": "linuxserver/webtop:amd64-latest"
} }
} }

View File

@@ -2,23 +2,70 @@
"apparmor": true, "apparmor": true,
"arch": ["aarch64", "amd64", "armv7", "armhf"], "arch": ["aarch64", "amd64", "armv7", "armhf"],
"boot": "auto", "boot": "auto",
"description": "Firefox browser accessible from webUI", "description": "Full Alpine desktop environments accessible via any modern web browser",
"devices": [
"/dev/net/tun",
"/dev/sda",
"/dev/sdb",
"/dev/sdc",
"/dev/sdd",
"/dev/sde",
"/dev/sdf",
"/dev/sdg",
"/dev/nvme",
"/dev/mmcblk",
"/dev/sda1",
"/dev/sdb1",
"/dev/sdc1",
"/dev/sdd1",
"/dev/sde1",
"/dev/sdf1",
"/dev/sdg1",
"/dev/sda2",
"/dev/sdb2",
"/dev/sdc2",
"/dev/sdd2",
"/dev/sde2",
"/dev/sdf2",
"/dev/sdg2",
"/dev/nvme0",
"/dev/nvme1",
"/dev/nvme2",
"/dev/mmcblk0",
"/dev/mmcblk0p1"
],
"environment": { "environment": {
"PUID": "1000", "PUID": "0",
"PGID": "1000", "PGID": "0",
"shm_size": "1gb" "shm_size": "1gb"
}, },
"name": "Firefox test", "full_access": true,
"stage": "experimental", "map": ["media:rw", "config:rw", "share:rw", "ssl"],
"name": "Webtop Alpine",
"privileged": ["SYS_ADMIN", "DAC_READ_SEARCH", "NET_ADMIN"],
"ports": { "ports": {
"3000/tcp": 3000 "3000/tcp": 3000
}, },
"ports_description": { "ports_description": {
"3000/tcp": "web interface" "3000/tcp": "web interface"
}, },
"slug": "firefox", "options": {
"upstream": "78.15.0", "PUID": 0,
"PGID": 0
},
"schema": {
"PUID": "int",
"PGID": "int",
"TZ": "str",
"localdisks": "str?",
"networkdisks": "str?",
"cifsusername": "str?",
"cifspassword": "str?",
"cifsdomain": "str?"
},
"slug": "webtop_alpine",
"upstream": "1.0",
"url": "https://github.com/alexbelgium/hassio-addons", "url": "https://github.com/alexbelgium/hassio-addons",
"version": "78.15.0", "version": "1.0",
"webui": "http://[HOST]:[PORT:3000]" "webui": "http://[HOST]:[PORT:3000]"
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 38 KiB