mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-02 14:28:18 +00:00
41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
![]() |
#!/bin/bash
|
||
|
|
||
|
pip install -r requirements.txt
|
||
|
|
||
|
echo "--------------------------------------------------------------------"
|
||
|
echo "Building java test framework"
|
||
|
echo "--------------------------------------------------------------------"
|
||
|
|
||
|
|
||
|
cd test-spark-lineage
|
||
|
./gradlew build
|
||
|
cd ..
|
||
|
|
||
|
echo "--------------------------------------------------------------------"
|
||
|
echo "Building spark images"
|
||
|
echo "--------------------------------------------------------------------"
|
||
|
|
||
|
cd docker
|
||
|
|
||
|
#build spark cluster images
|
||
|
./build_images.sh
|
||
|
|
||
|
echo "--------------------------------------------------------------------"
|
||
|
echo "Bringing up spark cluster"
|
||
|
echo "--------------------------------------------------------------------"
|
||
|
|
||
|
#bring up spark cluster
|
||
|
docker-compose -f spark-docker-compose.yml up -d
|
||
|
|
||
|
echo "--------------------------------------------------------------------"
|
||
|
echo "Executing spark-submit jobs"
|
||
|
echo "--------------------------------------------------------------------"
|
||
|
|
||
|
#Execute spark-submit jobs
|
||
|
docker run --network datahub_network spark-submit
|
||
|
|
||
|
echo "--------------------------------------------------------------------"
|
||
|
echo "Starting pytest"
|
||
|
echo "--------------------------------------------------------------------"
|
||
|
|