mirror of
				https://github.com/Icinga/docker-icinga2.git
				synced 2025-11-04 08:51:02 +01:00 
			
		
		
		
	Dockerfile: Write "FROM ... AS" consistently in caps
Doing so silences the warnings. > 6 warnings found (use docker --debug to expand): > - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 3) > - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 11) > - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 25) > - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 63) > - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 97) > - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 122)
This commit is contained in:
		
							parent
							
								
									a399eac13f
								
							
						
					
					
						commit
						9cc5ef5147
					
				
							
								
								
									
										12
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								Dockerfile
									
									
									
									
									
								
							@ -1,6 +1,6 @@
 | 
			
		||||
# Icinga 2 Docker image | (c) 2020 Icinga GmbH | GPLv2+
 | 
			
		||||
 | 
			
		||||
FROM golang:bookworm as entrypoint
 | 
			
		||||
FROM golang:bookworm AS entrypoint
 | 
			
		||||
 | 
			
		||||
COPY entrypoint /entrypoint
 | 
			
		||||
 | 
			
		||||
@ -8,7 +8,7 @@ WORKDIR /entrypoint
 | 
			
		||||
RUN ["go", "build", "."]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
FROM buildpack-deps:scm as clone-plugins
 | 
			
		||||
FROM buildpack-deps:scm AS clone-plugins
 | 
			
		||||
SHELL ["/bin/bash", "-exo", "pipefail", "-c"]
 | 
			
		||||
 | 
			
		||||
RUN git clone --bare https://github.com/lausser/check_mssql_health.git ;\
 | 
			
		||||
@ -22,7 +22,7 @@ RUN git clone --bare https://github.com/lausser/check_mssql_health.git ;\
 | 
			
		||||
	rm -rf *.git
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
FROM debian:bookworm-slim as build-plugins
 | 
			
		||||
FROM debian:bookworm-slim AS build-plugins
 | 
			
		||||
SHELL ["/bin/bash", "-exo", "pipefail", "-c"]
 | 
			
		||||
 | 
			
		||||
RUN apt-get update ;\
 | 
			
		||||
@ -60,7 +60,7 @@ RUN cd /check_postgres ;\
 | 
			
		||||
	# Otherwise: cannot copy to non-directory: /var/lib/docker/overlay2/r1tfzp762j3qxieib2fy3230x/merged/usr/local/man
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
FROM debian:bookworm-slim as build-icinga2
 | 
			
		||||
FROM debian:bookworm-slim AS build-icinga2
 | 
			
		||||
SHELL ["/bin/bash", "-exo", "pipefail", "-c"]
 | 
			
		||||
 | 
			
		||||
RUN apt-get update ;\
 | 
			
		||||
@ -94,7 +94,7 @@ RUN strip -g /icinga2-bin/usr/lib/nagios/plugins/check_nscp_api
 | 
			
		||||
RUN rm -rf /icinga2-bin/usr/share/doc/icinga2/markdown
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
FROM debian:bookworm-slim as icinga2
 | 
			
		||||
FROM debian:bookworm-slim AS icinga2
 | 
			
		||||
 | 
			
		||||
RUN ["/bin/bash", "-exo", "pipefail", "-c", "apt-get update; apt-get upgrade -y; export DEBIAN_FRONTEND=noninteractive; apt-get install --no-install-{recommends,suggests} -y bc ca-certificates curl dumb-init file libboost-{context,coroutine,date-time,filesystem,iostreams,program-options,regex,system,thread}1.74.0 libcap2-bin libedit2 libldap-common libmariadb3 libmoosex-role-timer-perl libpq5 libssl3 libsystemd0 mailutils msmtp{,-mta} openssh-client openssl; apt-get install --no-install-suggests -y monitoring-plugins; apt-get clean; rm -vrf /var/lib/apt/lists/*"]
 | 
			
		||||
 | 
			
		||||
@ -119,7 +119,7 @@ USER icinga
 | 
			
		||||
CMD ["icinga2", "daemon"]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
FROM icinga2 as test-icinga2
 | 
			
		||||
FROM icinga2 AS test-icinga2
 | 
			
		||||
RUN ["icinga2", "daemon", "-C"]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user