This commit is contained in:
Alexandre
2021-12-03 22:23:35 +01:00
parent d35cebe0e7
commit 534a76c58f
2 changed files with 7 additions and 16 deletions

View File

@@ -1,14 +1,13 @@
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:9.2.0 ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:9.2.0
# hadolint ignore=DL3006 # hadolint ignore=DL3006
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ARG BUILD_UPSTREAM=2.9.2
# Set shell # Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Setup base # Setup base
ARG BUILD_ARCH=amd64
ARG BUILD_ARCH=amd64 ARG BUILD_UPSTREAM="2.9.3"
RUN \ RUN \
if [ "${BUILD_ARCH}" = "aarch64" ]; then ARCH="arm64"; fi \ if [ "${BUILD_ARCH}" = "aarch64" ]; then ARCH="arm64"; fi \
&& if [ "${BUILD_ARCH}" = "armhf" ]; then ARCH="arm"; fi \ && if [ "${BUILD_ARCH}" = "armhf" ]; then ARCH="arm"; fi \
@@ -16,8 +15,8 @@ RUN \
&& if [ "${BUILD_ARCH}" = "amd64" ]; then ARCH="amd64"; fi \ && if [ "${BUILD_ARCH}" = "amd64" ]; then ARCH="amd64"; fi \
\ \
&& curl -L -s \ && curl -L -s \
"https://github.com/portainer/portainer/releases/download/${BUILD_UPSTREAM}/portainer-${BUILD_UPSTREAM}-linux-${ARCH}.tar.gz" \ "https://github.com/portainer/portainer/releases/download/${BUILD_UPSTREAM}/portainer-${BUILD_UPSTREAM}-linux-${ARCH}.tar.gz" \
| tar zxvf - -C /opt/ | tar zxvf - -C /opt/
RUN \ RUN \
apk add --no-cache \ apk add --no-cache \

View File

@@ -1,10 +1,5 @@
{ {
"arch": [ "arch": ["aarch64", "amd64", "armhf", "armv7"],
"aarch64",
"amd64",
"armhf",
"armv7"
],
"description": "Manage your Docker environment with ease", "description": "Manage your Docker environment with ease",
"docker_api": true, "docker_api": true,
"hassio_api": true, "hassio_api": true,
@@ -12,10 +7,7 @@
"ingress_port": 1337, "ingress_port": 1337,
"ingress_stream": true, "ingress_stream": true,
"init": false, "init": false,
"map": [ "map": ["share:rw", "ssl"],
"share:rw",
"ssl"
],
"name": "Portainer", "name": "Portainer",
"options": { "options": {
"ssl": false, "ssl": false,
@@ -42,6 +34,6 @@
"startup": "services", "startup": "services",
"upstream": "2.9.3", "upstream": "2.9.3",
"url": "https://github.com/alexbelgium/hassio-addons", "url": "https://github.com/alexbelgium/hassio-addons",
"version": "2.9.2-2", "version": "2.9.3",
"webui": "[PROTO:ssl]://[HOST]:[PORT:9099]" "webui": "[PROTO:ssl]://[HOST]:[PORT:9099]"
} }