Add invoke tasks
							parent
							
								
									2c1d4870c0
								
							
						
					
					
						commit
						7600cee487
					
				@ -0,0 +1,28 @@
 | 
			
		||||
"""
 | 
			
		||||
A set of `invoke` helper commands used for this project.
 | 
			
		||||
"""
 | 
			
		||||
from invoke import task
 | 
			
		||||
 | 
			
		||||
@task
 | 
			
		||||
def start_rabbit(c):
 | 
			
		||||
    """Runs the RabbitMQ integration environment."""
 | 
			
		||||
    print("Starting RabbitMQ")
 | 
			
		||||
    c.run("docker compose -f docker-compose-rabbit.yml up -d")
 | 
			
		||||
 | 
			
		||||
@task
 | 
			
		||||
def stop_rabbit(c):
 | 
			
		||||
    """Stops the RabbitMQ integration environent."""
 | 
			
		||||
    print("Stopping RabbitMQ")
 | 
			
		||||
    c.run("docker compose -f docker-compose-rabbit.yml down")
 | 
			
		||||
 | 
			
		||||
@task
 | 
			
		||||
def start_redis(c):
 | 
			
		||||
    """Runs the Redis integration environment."""
 | 
			
		||||
    print("Starting Redis")
 | 
			
		||||
    c.run("docker compose -f docker-compose-redis.yml up -d")
 | 
			
		||||
 | 
			
		||||
@task
 | 
			
		||||
def stop_redis(c):
 | 
			
		||||
    """Stops the Redis integration environent."""
 | 
			
		||||
    print("Stopping Redis")
 | 
			
		||||
    c.run("docker compose -f docker-compose-redis.yml down")
 | 
			
		||||
					Loading…
					
					
				
		Reference in New Issue