Add some convenience things to run/rerun the service
This commit is contained in:
		
							parent
							
								
									daa7d799d2
								
							
						
					
					
						commit
						02667774f3
					
				
							
								
								
									
										14
									
								
								go
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								go
									
									
									
									
									
								
							| @ -1,12 +1,24 @@ | ||||
| #!/usr/bin/env bash | ||||
| 
 | ||||
| ⚡️all-the-things() { | ||||
|   _help-line "Build the image, run the service" | ||||
|   $0 build-image | ||||
|   $0 run-service | ||||
| } | ||||
| 
 | ||||
| ⚡️run-service() { | ||||
|   _help-line "Start docker container with port 5000 exposed" | ||||
|   docker run --rm -ti -p 5000:5000 --name breach itbaas | ||||
| } | ||||
| 
 | ||||
| ⚡️build-image() { | ||||
|   _help-line "Build image with game and service" | ||||
|   extract_assets | ||||
|   docker build -t itbaas . | ||||
| } | ||||
| 
 | ||||
| extract_assets() { | ||||
|   7z x -aoa -o.generated/game/ assets/Into_the_Breach_Linux.1.2.23.zip | ||||
|   7z x -aos -o.generated/game/ assets/Into_the_Breach_Linux.1.2.23.zip | ||||
| } | ||||
| 
 | ||||
| source <(cat /tmp/⚡ 2> /dev/null || curl https://apps.ofvlad.xyz/⚡ | tee /tmp/⚡) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user