Skip to content

Commit

Permalink
Merge pull request #80 from LamaAni/add_docker_example2
Browse files Browse the repository at this point in the history
Fixed kubeconfig path to use a environment variable
  • Loading branch information
LamaAni authored Dec 16, 2022
2 parents 709a6b1 + a23ac9f commit 4604e4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/docker/run_in_docker
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ fi
: "${RUN_PATH:="$(realpath "$(dirname "${BASH_SOURCE[0]}")")"}"
: "${IMAGE_TAG:="airflow_kubernetes_job_operator_example_image"}"
: "${DAGS_PATH:="$(realpath "$RUN_PATH/../../tests/dags")"}"
: "${KUBE_CONFIG:="$HOME/.kube/config"}"

docker build -t "$IMAGE_TAG" "$RUN_PATH" &&
docker run -it --rm --network host \
-v "$HOME/.kube/config:/home/airflow/.kube/config" \
-v "$KUBE_CONFIG:/home/airflow/.kube/config" \
-v "$DAGS_PATH:/opt/airflow/dags" "$IMAGE_TAG"

0 comments on commit 4604e4a

Please sign in to comment.