From f6d033c88c6fbe9914d0e77104bf7aaa96550d0d Mon Sep 17 00:00:00 2001 From: John Mazzitelli Date: Tue, 3 Sep 2024 12:10:50 -0400 Subject: [PATCH] install jmespath py library as root (#814) (#815) (cherry picked from commit 0907e2ab32bf943be3ff19bd031ae9e969dcd021) --- build/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 50ac259e..1e5b83a4 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -6,6 +6,9 @@ USER root # see https://github.com/operator-framework/operator-sdk/issues/5745 RUN yum remove -y subscription-manager python3-subscription-manager-rhsm RUN yum update -y && yum clean all +# pull in jmespath py library for json processing +RUN python3 -m pip install jmespath + USER ${USER_UID} COPY roles/ ${HOME}/roles/ @@ -15,9 +18,6 @@ COPY watches-os.yaml ${HOME}/watches-os.yaml COPY watches-k8s-ns.yaml ${HOME}/watches-k8s-ns.yaml COPY watches-os-ns.yaml ${HOME}/watches-os-ns.yaml -# pull in jmespath py library for json processing -RUN python3 -m pip install jmespath - COPY requirements.yml ${HOME}/requirements.yml RUN ansible-galaxy collection install -r ${HOME}/requirements.yml \ && chmod -R ug+rwx ${HOME}/.ansible