Postgresql repo from os-release $VERSION_CODENAME for dockerfile. Disable docker cache temporary to avoid cached releases collission
This commit is contained in:
		
							parent
							
								
									c4bdee92db
								
							
						
					
					
						commit
						7652576662
					
				@ -18,7 +18,7 @@ FROM thingsboard/openjdk11
 | 
			
		||||
 | 
			
		||||
RUN apt-get update
 | 
			
		||||
RUN apt-get install -y curl nmap procps gnupg2
 | 
			
		||||
RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main' | tee --append /etc/apt/sources.list.d/pgdg.list > /dev/null
 | 
			
		||||
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ $(. /etc/os-release && echo -n $VERSION_CODENAME)-pgdg main" | tee --append /etc/apt/sources.list.d/pgdg.list > /dev/null
 | 
			
		||||
RUN curl -L https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
 | 
			
		||||
RUN echo 'deb http://downloads.apache.org/cassandra/debian 40x main' | tee --append /etc/apt/sources.list.d/cassandra.list > /dev/null
 | 
			
		||||
RUN curl -L https://downloads.apache.org/cassandra/KEYS | apt-key add -
 | 
			
		||||
 | 
			
		||||
@ -18,7 +18,7 @@ FROM thingsboard/openjdk11
 | 
			
		||||
 | 
			
		||||
RUN apt-get update
 | 
			
		||||
RUN apt-get install -y curl gnupg2
 | 
			
		||||
RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main' | tee --append /etc/apt/sources.list.d/pgdg.list > /dev/null
 | 
			
		||||
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ $(. /etc/os-release && echo -n $VERSION_CODENAME)-pgdg main" | tee --append /etc/apt/sources.list.d/pgdg.list > /dev/null
 | 
			
		||||
RUN curl -L https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
 | 
			
		||||
ENV PG_MAJOR 12
 | 
			
		||||
RUN apt-get update
 | 
			
		||||
 | 
			
		||||
@ -160,6 +160,7 @@
 | 
			
		||||
                            <verbose>true</verbose>
 | 
			
		||||
                            <googleContainerRegistryEnabled>false</googleContainerRegistryEnabled>
 | 
			
		||||
                            <contextDirectory>${project.build.directory}/docker-postgres</contextDirectory>
 | 
			
		||||
                            <noCache>true</noCache>
 | 
			
		||||
                        </configuration>
 | 
			
		||||
                    </execution>
 | 
			
		||||
                    <execution>
 | 
			
		||||
@ -186,6 +187,7 @@
 | 
			
		||||
                            <verbose>true</verbose>
 | 
			
		||||
                            <googleContainerRegistryEnabled>false</googleContainerRegistryEnabled>
 | 
			
		||||
                            <contextDirectory>${project.build.directory}/docker-cassandra</contextDirectory>
 | 
			
		||||
                            <noCache>true</noCache>
 | 
			
		||||
                        </configuration>
 | 
			
		||||
                    </execution>
 | 
			
		||||
                    <execution>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user