Skip to content

Commit

Permalink
Merge pull request #84 from gabrielmscampos/feat/test-configurable-pa…
Browse files Browse the repository at this point in the history
…ge-size
  • Loading branch information
gabrielmscampos authored Nov 21, 2024
2 parents 5142df4 + 050651e commit 1ea31a3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion oc/prod/deployments/web/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ spec:
mountPath: /var/www/api/
readOnly: true
imagePullPolicy: Always
image: nginxinc/nginx-unprivileged
image: image-registry.openshift-image-registry.svc:5000/cms-dials-prod/nginx-unprivileged:latest
volumes:
- name: nginx-conf
configMap:
Expand Down
19 changes: 19 additions & 0 deletions oc/prod/image_stream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,22 @@ spec:
name: registry.cern.ch/cms-dqmdc/dials-frontend
referencePolicy:
type: Local

---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: nginx-unprivileged
namespace: cms-dials-prod
spec:
lookupPolicy:
local: false
tags:
- name: latest
annotations:
openshift.io/imported-from: registry.cern.ch/cms-dqmdc/nginxinc-nginx-unprivileged
from:
kind: DockerImage
name: registry.cern.ch/cms-dqmdc/nginxinc-nginx-unprivileged
referencePolicy:
type: Local
1 change: 1 addition & 0 deletions scripts/import_images_to_oc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ check_oc_project
oc import-image etl --from=registry.cern.ch/cms-dqmdc/dials-etl --confirm
oc import-image backend --from=registry.cern.ch/cms-dqmdc/dials-backend --confirm
oc import-image frontend --from=registry.cern.ch/cms-dqmdc/dials-frontend --confirm
oc import-image nginx-unprivileged --from=registry.cern.ch/cms-dqmdc/nginxinc-nginx-unprivileged --confirm
3 changes: 3 additions & 0 deletions scripts/push_containers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ REGISTRY_REPO=registry.cern.ch/cms-dqmdc
docker build -f ./etl/Dockerfile.prod -t dials_etl_release .
docker build -f ./backend/Dockerfile -t dials_backend_release .
docker build -f ./frontend/Dockerfile.prod -t dials_frontend_release .
docker pull nginxinc/nginx-unprivileged

# Tag containers according to remote registry
docker tag dials_etl_release $REGISTRY_REPO/dials-etl
docker tag dials_backend_release $REGISTRY_REPO/dials-backend
docker tag dials_frontend_release $REGISTRY_REPO/dials-frontend
docker tag nginxinc/nginx-unprivileged:latest $REGISTRY_REPO/nginxinc-nginx-unprivileged

# Login to registry and push containers
docker login https://registry.cern.ch
docker push $REGISTRY_REPO/dials-etl
docker push $REGISTRY_REPO/dials-backend
docker push $REGISTRY_REPO/dials-frontend
docker push $REGISTRY_REPO/nginxinc-nginx-unprivileged

0 comments on commit 1ea31a3

Please sign in to comment.