This is an automated email from the ASF dual-hosted git repository.

shahar1 pushed a commit to branch gha-arc-rebase
in repository https://gitbox.apache.org/repos/asf/airflow-ci-infra.git

commit 6906ebdbf293d1baa415fd981c5156412ac6bf6c
Author: Hussein Awala <[email protected]>
AuthorDate: Sun Aug 13 19:00:14 2023 +0200

    fix permissions in docker image and add a conf to enable/disable runner 
auto update in runners deploy
---
 helm/runners-config/templates/runners.yaml | 3 +++
 runner/Dockerfile                          | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/helm/runners-config/templates/runners.yaml 
b/helm/runners-config/templates/runners.yaml
index 80e8dce..78eaba5 100644
--- a/helm/runners-config/templates/runners.yaml
+++ b/helm/runners-config/templates/runners.yaml
@@ -47,6 +47,9 @@ spec:
                     values:
                       - {{ $runner.name }}-runners-deployment
               topologyKey: kubernetes.io/hostname
+      env:
+        - name: DISABLE_RUNNER_UPDATE
+          value: "false"  # TODO: Set to true to disable runner update after 
patching the latest version
 ---
 apiVersion: actions.summerwind.dev/v1alpha1
 kind: HorizontalRunnerAutoscaler
diff --git a/runner/Dockerfile b/runner/Dockerfile
index d720480..c752696 100644
--- a/runner/Dockerfile
+++ b/runner/Dockerfile
@@ -20,6 +20,8 @@ RUN rm -rf $RUNNER_ASSETS_DIR/* \
 # TODO: Remove this once https://github.com/actions/setup-python/issues/705 is 
solved
 RUN apt-get update && \
     apt-get install -y --no-install-recommends \
-    curl nodejs wget unzip vim git jq build-essential libssl-dev libffi-dev 
python3 python3-venv python3-dev python3-pip
+    curl nodejs wget unzip vim git jq build-essential libssl-dev libffi-dev 
python3 python3-venv python3-dev python3-pip python-is-python3 \
+    && chown -R runner:runner /usr/local/lib/ --recursive \
+    && chown -R runner:runner /usr/local/bin/ --recursive
 
 USER runner
\ No newline at end of file

Reply via email to