mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-31 10:49:00 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			516 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			516 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| # A convenience command to run the built docker container with a local config file and local output directory.
 | |
| # Note: this works by mounting the current working directory as a Docker volume.
 | |
| 
 | |
| set -euo pipefail
 | |
| 
 | |
| DOCKER_IMAGE=acryldata/datahub-ingestion:${DATAHUB_VERSION:-head}
 | |
| 
 | |
| echo "+ Pulling $DOCKER_IMAGE"
 | |
| docker pull $DOCKER_IMAGE
 | |
| 
 | |
| echo '+ Running ingestion'
 | |
| docker run --rm \
 | |
|     --network host \
 | |
|     --workdir=/dir \
 | |
|     --mount type=bind,source="$(pwd)",target=/dir \
 | |
|     $DOCKER_IMAGE \
 | |
|     $@
 | 
