File tree Expand file tree Collapse file tree
apps/spark-job/job-streaming-satellite Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ .venv /
2+ __pycache__ /
3+ * .pyc
4+ * .pyo
5+ .python-version
6+ README.md
7+ build-and-push.sh
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
4+
5+ JOB_NAME=" streaming-satellite"
6+ GITHUB_USERNAME=" cukhoaimon"
7+ REGISTRY=" ghcr.io/${GITHUB_USERNAME} /spark-job-${JOB_NAME} "
8+ TAG=" ${1:- latest} "
9+
10+ echo " ==> Building ${REGISTRY} :${TAG} (linux/amd64)"
11+
12+ docker build \
13+ --platform linux/amd64 \
14+ -t " ${REGISTRY} :${TAG} " \
15+ " $( dirname " $0 " ) "
16+
17+ echo " ==> Logging in to ghcr.io"
18+ gh auth token | docker login ghcr.io -u " ${GITHUB_USERNAME} " --password-stdin
19+
20+ echo " ==> Pushing ${REGISTRY} :${TAG} "
21+ docker push " ${REGISTRY} :${TAG} "
22+ echo " ==> Done: ${REGISTRY} :${TAG} "
Original file line number Diff line number Diff line change 1313 - ghcr-pull-secret
1414 mainApplicationFile : local:///opt/spark/work-dir/main.py
1515
16- sparkVersion : " 3.5.3 "
16+ sparkVersion : " 4.0.0 "
1717 sparkConfigMap : spark-defaults
1818
1919 sparkConf :
5454 value : " latest"
5555 # ── Streaming tuning ───────────────────────────────────────────────────
5656 - name : CHECKPOINT_LOCATION
57- value : " s3a://warehouse/checkpoints/satellite-telemetry/"
57+ value : " s3a://warehouse/checkpoints/satellite-telemetry/v2/ "
5858 - name : TRIGGER_INTERVAL_SECONDS
5959 value : " 30"
6060
You can’t perform that action at this time.
0 commit comments