From bb28985a47728a6336057e92cff5b8f276464ef2 Mon Sep 17 00:00:00 2001 From: David Gamero Date: Tue, 19 Sep 2023 12:54:19 -0400 Subject: [PATCH] image pull policy always --- template/deployments/helm/charts/production.yaml | 2 +- template/deployments/helm/charts/values.yaml | 2 +- template/dockerfiles/python/Dockerfile | 6 +++--- test/templates/helm/charts/production.yaml | 2 +- test/templates/helm/charts/values.yaml | 2 +- test/templates/helm_prod_values.yaml | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/template/deployments/helm/charts/production.yaml b/template/deployments/helm/charts/production.yaml index 58cbd3de..92d65a30 100644 --- a/template/deployments/helm/charts/production.yaml +++ b/template/deployments/helm/charts/production.yaml @@ -1,6 +1,6 @@ image: repository: "{{APPNAME}}" - pullPolicy: IfNotPresent + pullPolicy: Always tag: "latest" service: annotations: {} diff --git a/template/deployments/helm/charts/values.yaml b/template/deployments/helm/charts/values.yaml index 65b0f17e..4e0d08d4 100644 --- a/template/deployments/helm/charts/values.yaml +++ b/template/deployments/helm/charts/values.yaml @@ -11,7 +11,7 @@ containerPort: {{PORT}} image: repository: {{IMAGENAME}} tag: {{IMAGETAG}} - pullPolicy: IfNotPresent + pullPolicy: Always imagePullSecrets: [] diff --git a/template/dockerfiles/python/Dockerfile b/template/dockerfiles/python/Dockerfile index 9516b0c4..665a0119 100644 --- a/template/dockerfiles/python/Dockerfile +++ b/template/dockerfiles/python/Dockerfile @@ -3,10 +3,10 @@ ENV PORT {{PORT}} EXPOSE {{PORT}} WORKDIR /usr/src/app -COPY requirements.txt ./ -RUN pip install --no-cache-dir -r requirements.txt +COPY requirements.tx[t] ./ +RUN [ -f requirements.txt ] && pip install --no-cache-dir -r requirements.txt COPY . . ENTRYPOINT ["python"] -CMD ["{{ENTRYPOINT}}"] \ No newline at end of file +CMD ["{{ENTRYPOINT}}"] diff --git a/test/templates/helm/charts/production.yaml b/test/templates/helm/charts/production.yaml index 725c98e5..dc887970 100644 --- a/test/templates/helm/charts/production.yaml +++ b/test/templates/helm/charts/production.yaml @@ -1,6 +1,6 @@ image: repository: "test" - pullPolicy: IfNotPresent + pullPolicy: Always tag: "latest" service: annotations: {} diff --git a/test/templates/helm/charts/values.yaml b/test/templates/helm/charts/values.yaml index 2cf3f276..940d630e 100644 --- a/test/templates/helm/charts/values.yaml +++ b/test/templates/helm/charts/values.yaml @@ -8,7 +8,7 @@ containerPort: 8080 image: repository: test - pullPolicy: IfNotPresent + pullPolicy: Always # Overrides the image tag whose default is the chart appVersion. tag: "latest" diff --git a/test/templates/helm_prod_values.yaml b/test/templates/helm_prod_values.yaml index 5449216c..956e85cd 100644 --- a/test/templates/helm_prod_values.yaml +++ b/test/templates/helm_prod_values.yaml @@ -1,4 +1,4 @@ image: repository: "prodImage" - pullPolicy: IfNotPresent - tag: "latest" \ No newline at end of file + pullPolicy: Always + tag: "latest"