mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-11-03 20:27:50 +00:00 
			
		
		
		
	- Fixed local mysql port conflict - Added temp files cleaning up - Changed ES doc name to Readme.md
		
			
				
	
	
		
			15 lines
		
	
	
		
			425 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			425 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
VERSION=$1
 | 
						|
if [ -z "$VERSION" ]; then
 | 
						|
  echo "Usage: $0 <version>"
 | 
						|
  exit 0
 | 
						|
fi
 | 
						|
 | 
						|
# Build a single init SQL script from multiple DDLs.
 | 
						|
echo 'use wherehows;' > init.sql
 | 
						|
cat ../../wherehows-data-model/DDL/ETL_DDL/*.sql >> init.sql
 | 
						|
cat ../../wherehows-data-model/DDL/WEB_DDL/*.sql >> init.sql
 | 
						|
 | 
						|
docker build --force-rm -t linkedin/wherehows-mysql:$VERSION .
 | 
						|
docker build --force-rm -t linkedin/wherehows-mysql:latest . |