This commit is contained in:
Alexandre
2023-05-20 21:39:00 +02:00
parent a53fca1f1a
commit cfa6e80301
3 changed files with 18 additions and 8 deletions

View File

@@ -14,9 +14,22 @@
# 1 Build Image #
#################
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:11.0.0
FROM portainer/agent:2.6.3 as agent
ARG BUILD_FROM
FROM ${BUILD_FROM}
ENV PORTAINER_AGENT_ARGS=""
ENV FIRST_HEALTHCHECK_TIMEOUT=20
# Copy Portainer agent binaries
COPY --from=agent / /
RUN chmod a+x /usr/sbin/healthcheck && \
chmod a+x /usr/sbin/wait-for-signal
ENTRYPOINT [ "/init" ]
##################
# 2 Modify Image #
##################
@@ -26,9 +39,6 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
S6_SERVICES_GRACETIME=0
# Set shell
SHELL ["/usr/bin/env bash", "-o", "pipefail", "-c"]
##################
# 3 Install apps #
##################

View File

@@ -1,8 +1,8 @@
{
"build_from": {
"aarch64": "portainer/agent:alpine",
"amd64": "portainer/agent:alpine",
"armv7": "portainer/agent:alpine"
"aarch64": "ghcr.io/hassio-addons/base/aarch64:11.1.0",
"amd64": "ghcr.io/hassio-addons/base/amd64:11.1.0",
"armv7": "ghcr.io/hassio-addons/base/armv7:11.1.0"
},
"codenotary": {
"signer": "alexandrep.github@gmail.com"

View File

@@ -40,5 +40,5 @@
},
"slug": "portainer_agent",
"url": "https://github.com/alexbelgium/hassio-addons",
"version": "2.18.2-test6"
"version": "2.18.2-test7"
}