mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-18 22:28:01 +00:00
18 lines
447 B
Bash
18 lines
447 B
Bash
![]() |
#!/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=linkedin/datahub-ingestion:latest
|
||
|
|
||
|
docker pull --quiet $DOCKER_IMAGE
|
||
|
|
||
|
docker run --rm \
|
||
|
--network host \
|
||
|
--workdir=/dir \
|
||
|
--mount type=bind,source="$(pwd)",target=/dir \
|
||
|
$DOCKER_IMAGE \
|
||
|
$@
|