| 
									
										
										
										
											2025-04-09 11:53:34 -07:00
										 |  |  | # This is the "base" image workflow. | 
					
						
							|  |  |  | # While it has a bunch of intermediate stages, it "exports" a couple | 
					
						
							|  |  |  | # stages for consumption. | 
					
						
							| 
									
										
										
										
											2025-04-11 14:57:49 -07:00
										 |  |  | # - python-base: A basic stage, with basic deps, Python, and a venv. | 
					
						
							|  |  |  | # - ingestion-base-slim: Currently the same as base-empty. | 
					
						
							|  |  |  | # - ingestion-base-full: Adds a JRE and Oracle client. | 
					
						
							| 
									
										
										
										
											2025-04-09 11:53:34 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | # INLINE-BEGIN @/docker/snippets/ubuntu_python_base | 
					
						
							|  |  |  | # INLINE-END | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-04-11 14:57:49 -07:00
										 |  |  | FROM python-base AS ingestion-base-slim | 
					
						
							| 
									
										
										
										
											2025-04-09 11:53:34 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | USER 0 | 
					
						
							| 
									
										
										
										
											2025-04-11 14:57:49 -07:00
										 |  |  | RUN apt-get update && apt-get install -y \ | 
					
						
							|  |  |  |     python3-ldap \ | 
					
						
							|  |  |  |     libldap2-dev \ | 
					
						
							|  |  |  |     libsasl2-dev \ | 
					
						
							|  |  |  |     libsasl2-modules \ | 
					
						
							|  |  |  |     libaio-dev \ | 
					
						
							|  |  |  |     libaio1t64 \ | 
					
						
							|  |  |  |     libsasl2-modules-gssapi-mit \ | 
					
						
							|  |  |  |     krb5-user \ | 
					
						
							|  |  |  |     krb5-config \ | 
					
						
							|  |  |  |     libkrb5-dev \ | 
					
						
							|  |  |  |     librdkafka-dev \ | 
					
						
							|  |  |  |     ldap-utils \ | 
					
						
							|  |  |  |     unixodbc \ | 
					
						
							|  |  |  |     libodbc2 \ | 
					
						
							| 
									
										
										
										
											2025-04-09 11:53:34 -07:00
										 |  |  |     && rm -rf /var/lib/apt/lists/* | 
					
						
							|  |  |  | USER datahub | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-04-11 14:57:49 -07:00
										 |  |  | FROM ingestion-base-slim AS ingestion-base-full | 
					
						
							| 
									
										
										
										
											2025-04-09 11:53:34 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | USER 0 | 
					
						
							|  |  |  | # INLINE-BEGIN @/docker/snippets/ingestion_full_deps | 
					
						
							|  |  |  | # INLINE-END | 
					
						
							|  |  |  | USER datahub |