mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Bump base image versions to latest (#4016)
This commit is contained in:
		| @@ -6,17 +6,11 @@ | |||||||
| ARG BASEIMGTYPE=docker | ARG BASEIMGTYPE=docker | ||||||
|  |  | ||||||
| # https://github.com/hassio-addons/addon-debian-base/releases | # https://github.com/hassio-addons/addon-debian-base/releases | ||||||
| FROM ghcr.io/hassio-addons/debian-base/amd64:5.3.0 AS base-hassio-amd64 | FROM ghcr.io/hassio-addons/debian-base:6.1.3 AS base-hassio | ||||||
| FROM ghcr.io/hassio-addons/debian-base/aarch64:5.3.0 AS base-hassio-arm64 |  | ||||||
| FROM ghcr.io/hassio-addons/debian-base/armv7:5.3.0 AS base-hassio-armv7 |  | ||||||
| # https://hub.docker.com/_/debian?tab=tags&page=1&name=bullseye | # https://hub.docker.com/_/debian?tab=tags&page=1&name=bullseye | ||||||
| FROM debian:bullseye-20220328-slim AS base-docker-amd64 | FROM debian:bullseye-20221024-slim AS base-docker | ||||||
| FROM debian:bullseye-20220328-slim AS base-docker-arm64 |  | ||||||
| FROM debian:bullseye-20220328-slim AS base-docker-armv7 |  | ||||||
|  |  | ||||||
| # Use TARGETARCH/TARGETVARIANT defined by docker | FROM base-${BASEIMGTYPE} AS base | ||||||
| # https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope |  | ||||||
| FROM base-${BASEIMGTYPE}-${TARGETARCH}${TARGETVARIANT} AS base |  | ||||||
|  |  | ||||||
| RUN \ | RUN \ | ||||||
|     apt-get update \ |     apt-get update \ | ||||||
| @@ -29,8 +23,8 @@ RUN \ | |||||||
|         python3-cryptography=3.3.2-1 \ |         python3-cryptography=3.3.2-1 \ | ||||||
|         iputils-ping=3:20210202-1 \ |         iputils-ping=3:20210202-1 \ | ||||||
|         git=1:2.30.2-1 \ |         git=1:2.30.2-1 \ | ||||||
|         curl=7.74.0-1.3+deb11u1 \ |         curl=7.74.0-1.3+deb11u3 \ | ||||||
|         openssh-client=1:8.4p1-5 \ |         openssh-client=1:8.4p1-5+deb11u1 \ | ||||||
|     && rm -rf \ |     && rm -rf \ | ||||||
|         /tmp/* \ |         /tmp/* \ | ||||||
|         /var/{cache,log}/* \ |         /var/{cache,log}/* \ | ||||||
|   | |||||||
							
								
								
									
										0
									
								
								docker/ha-addon-rootfs/etc/cont-init.d/30-dirs.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								docker/ha-addon-rootfs/etc/cont-init.d/30-dirs.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -3,7 +3,13 @@ | |||||||
| # Community Hass.io Add-ons: ESPHome | # Community Hass.io Add-ons: ESPHome | ||||||
| # Take down the S6 supervision tree when ESPHome fails | # Take down the S6 supervision tree when ESPHome fails | ||||||
| # ============================================================================== | # ============================================================================== | ||||||
| if -n { s6-test $# -ne 0 } |  | ||||||
| if -n { s6-test ${1} -eq 256 } |  | ||||||
|  |  | ||||||
| s6-svscanctl -t /var/run/s6/services | declare APP_EXIT_CODE=${1} | ||||||
|  |  | ||||||
|  | if [[ "${APP_EXIT_CODE}" -ne 0 ]] && [[ "${APP_EXIT_CODE}" -ne 256 ]]; then | ||||||
|  |   bashio::log.warning "Halt add-on with exit code ${APP_EXIT_CODE}" | ||||||
|  |   echo "${APP_EXIT_CODE}" > /run/s6-linux-init-container-results/exitcode | ||||||
|  |   exec /run/s6/basedir/bin/halt | ||||||
|  | fi | ||||||
|  |  | ||||||
|  | bashio::log.info "Service restart after closing" | ||||||
|   | |||||||
| @@ -3,7 +3,13 @@ | |||||||
| # Community Hass.io Add-ons: ESPHome | # Community Hass.io Add-ons: ESPHome | ||||||
| # Take down the S6 supervision tree when NGINX fails | # Take down the S6 supervision tree when NGINX fails | ||||||
| # ============================================================================== | # ============================================================================== | ||||||
| if -n { s6-test $# -ne 0 } |  | ||||||
| if -n { s6-test ${1} -eq 256 } |  | ||||||
|  |  | ||||||
| s6-svscanctl -t /var/run/s6/services | declare APP_EXIT_CODE=${1} | ||||||
|  |  | ||||||
|  | if [[ "${APP_EXIT_CODE}" -ne 0 ]] && [[ "${APP_EXIT_CODE}" -ne 256 ]]; then | ||||||
|  |   bashio::log.warning "Halt add-on with exit code ${APP_EXIT_CODE}" | ||||||
|  |   echo "${APP_EXIT_CODE}" > /run/s6-linux-init-container-results/exitcode | ||||||
|  |   exec /run/s6/basedir/bin/halt | ||||||
|  | fi | ||||||
|  |  | ||||||
|  | bashio::log.info "Service restart after closing" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user