mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	Adds an example of using Kubernetes to build a distributed task queue using Celery along with a RabbitMQ broker and Flower frontend. Resolves: #1788
		
			
				
	
	
		
			16 lines
		
	
	
		
			372 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			372 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM ubuntu:trusty
 | 
						|
 | 
						|
# update the package repository and install python pip
 | 
						|
RUN apt-get -y update && apt-get -y install python-dev python-pip
 | 
						|
 | 
						|
# install flower
 | 
						|
RUN pip install flower
 | 
						|
 | 
						|
# Make sure we expose port 5555 so that we can connect to it
 | 
						|
EXPOSE 5555
 | 
						|
 | 
						|
ADD run_flower.sh /usr/local/bin/run_flower.sh
 | 
						|
 | 
						|
# Running flower
 | 
						|
CMD ["/bin/bash", "/usr/local/bin/run_flower.sh"]
 |