feat: Add dockerize to the Dex docker image
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
		
							
								
								
									
										11
									
								
								entrypoint.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										11
									
								
								entrypoint.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					#!/bin/sh -e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Usage: /entrypoint.sh <command> <args>
 | 
				
			||||||
 | 
					command=$1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [ "$command" == "serve" ]; then
 | 
				
			||||||
 | 
					  file="$2"
 | 
				
			||||||
 | 
					  dockerize -template "$file" | dex serve -
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
 | 
					  dex $@
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
		Reference in New Issue
	
	Block a user