Skip to content

Commit 4604e4a

Browse files
authored
Merge pull request #80 from LamaAni/add_docker_example2
Fixed kubeconfig path to use a environment variable
2 parents 709a6b1 + a23ac9f commit 4604e4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/docker/run_in_docker

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ fi
99
: "${RUN_PATH:="$(realpath "$(dirname "${BASH_SOURCE[0]}")")"}"
1010
: "${IMAGE_TAG:="airflow_kubernetes_job_operator_example_image"}"
1111
: "${DAGS_PATH:="$(realpath "$RUN_PATH/../../tests/dags")"}"
12+
: "${KUBE_CONFIG:="$HOME/.kube/config"}"
1213

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

0 commit comments

Comments
 (0)