-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github action to build all images
- Loading branch information
1 parent
9f0891a
commit 2d2daf5
Showing
14 changed files
with
82 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
export SPARK_MASTER_HOST=${SPARK_MASTER_HOST:-`hostname`} | ||
|
||
export SPARK_HOME=/spark | ||
|
||
. "/spark/sbin/spark-config.sh" | ||
|
||
. "/spark/bin/load-spark-env.sh" | ||
|
||
mkdir -p $SPARK_MASTER_LOG | ||
|
||
ln -sf /dev/stdout $SPARK_MASTER_LOG/spark-master.out | ||
|
||
cd /spark/bin && /spark/sbin/../bin/spark-class org.apache.spark.deploy.master.Master \ | ||
--ip $SPARK_MASTER_HOST --port $SPARK_MASTER_PORT --webui-port $SPARK_MASTER_WEBUI_PORT >> $SPARK_MASTER_LOG/spark-master.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ LABEL maintainer="Gezim Sejdiu <[email protected]>, Giannis Mouchakis <gmouchak | |
ENV SPARK_MASTER_NAME spark-master | ||
ENV SPARK_MASTER_PORT 7077 | ||
|
||
COPY submit.sh /gen3spark/ | ||
WORKDIR /gen3spark | ||
COPY submit.sh / | ||
|
||
CMD ["/bin/bash", "/submit.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
export SPARK_MASTER_URL=spark://${SPARK_MASTER_NAME}:${SPARK_MASTER_PORT} | ||
export SPARK_HOME=/spark | ||
|
||
/wait-for-step.sh | ||
/execute-step.sh | ||
|
||
if [ ! -z "${SPARK_APPLICATION_JAR_LOCATION}" ]; then | ||
echo "Submit application ${SPARK_APPLICATION_JAR_LOCATION} with main class ${SPARK_APPLICATION_MAIN_CLASS} to Spark master ${SPARK_MASTER_URL}" | ||
echo "Passing arguments ${SPARK_APPLICATION_ARGS}" | ||
/${SPARK_HOME}/bin/spark-submit \ | ||
--class ${SPARK_APPLICATION_MAIN_CLASS} \ | ||
--master ${SPARK_MASTER_URL} \ | ||
${SPARK_SUBMIT_ARGS} \ | ||
${SPARK_APPLICATION_JAR_LOCATION} ${SPARK_APPLICATION_ARGS} | ||
else | ||
if [ ! -z "${SPARK_APPLICATION_PYTHON_LOCATION}" ]; then | ||
echo "Submit application ${SPARK_APPLICATION_PYTHON_LOCATION} to Spark master ${SPARK_MASTER_URL}" | ||
echo "Passing arguments ${SPARK_APPLICATION_ARGS}" | ||
PYSPARK_PYTHON=python3 /spark/bin/spark-submit \ | ||
--master ${SPARK_MASTER_URL} \ | ||
${SPARK_SUBMIT_ARGS} \ | ||
${SPARK_APPLICATION_PYTHON_LOCATION} ${SPARK_APPLICATION_ARGS} | ||
else | ||
echo "Not recognized application." | ||
fi | ||
fi | ||
|
||
/finish-step.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
export SPARK_HOME=/spark | ||
|
||
. "/spark/sbin/spark-config.sh" | ||
|
||
. "/spark/bin/load-spark-env.sh" | ||
|
||
mkdir -p $SPARK_WORKER_LOG | ||
|
||
ln -sf /dev/stdout $SPARK_WORKER_LOG/spark-worker.out | ||
|
||
/spark/sbin/../bin/spark-class org.apache.spark.deploy.worker.Worker \ | ||
--webui-port $SPARK_WORKER_WEBUI_PORT $SPARK_MASTER >> $SPARK_WORKER_LOG/spark-worker.out |