mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-01 05:47:17 +00:00
41 lines
1.2 KiB
Bash
Executable File
41 lines
1.2 KiB
Bash
Executable File
#!/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 "--------------------------------------------------------------------"
|
|
|