From fbb5c6991767a11bd7ecb3e6ced20e2ae877c79a Mon Sep 17 00:00:00 2001 From: Schnitzel Date: Tue, 28 Nov 2017 21:03:53 -0600 Subject: [PATCH] old templates --- .../cli-drupal-docroot/template.yml | 106 --------- .../nginx-php-drupal-docroot/template.yml | 215 ------------------ 2 files changed, 321 deletions(-) delete mode 100644 images/oc-build-deploy/openshift-templates/cli-drupal-docroot/template.yml delete mode 100644 images/oc-build-deploy/openshift-templates/nginx-php-drupal-docroot/template.yml diff --git a/images/oc-build-deploy/openshift-templates/cli-drupal-docroot/template.yml b/images/oc-build-deploy/openshift-templates/cli-drupal-docroot/template.yml deleted file mode 100644 index afc9968dba..0000000000 --- a/images/oc-build-deploy/openshift-templates/cli-drupal-docroot/template.yml +++ /dev/null @@ -1,106 +0,0 @@ -apiVersion: v1 -kind: Template -metadata: - creationTimestamp: null - name: lagoon-openshift-template-cli -parameters: - - name: SERVICE_NAME - description: Name of this service - required: true - - name: SAFE_BRANCH - description: Which branch this belongs to, special chars replaced with dashes - required: true - - name: SAFE_PROJECT - description: Which project this belongs to, special chars replaced with dashes - required: true - - name: BRANCH - description: Which branch this belongs to, original value - required: true - - name: PROJECT - description: Which project this belongs to, original value - required: true - - name: LAGOON_GIT_SHA - description: git hash sha of the current deployment - required: true - - name: ROUTER_URL - description: URL of the Router - required: true -objects: -- apiVersion: v1 - kind: PersistentVolumeClaim - metadata: - name: drupal-files - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 5Gi -- apiVersion: v1 - kind: DeploymentConfig - metadata: - creationTimestamp: null - labels: - branch: ${SAFE_BRANCH} - project: ${SAFE_PROJECT} - name: ${SERVICE_NAME} - spec: - replicas: 1 - selector: - service: ${SERVICE_NAME} - strategy: - resources: {} - template: - metadata: - creationTimestamp: null - labels: - service: ${SERVICE_NAME} - branch: ${SAFE_BRANCH} - project: ${SAFE_PROJECT} - spec: - volumes: - - name: drupal-files - persistentVolumeClaim: - claimName: drupal-files - containers: - - image: ' ' - name: ${SERVICE_NAME} - volumeMounts: - - name: drupal-files - mountPath: /app/docroot/sites/default/files/ - env: - - name: LAGOON_GIT_BRANCH - valueFrom: - configMapKeyRef: - name: lagoon-env - key: LAGOON_GIT_BRANCH - - name: LAGOON_GIT_SAFE_BRANCH - valueFrom: - configMapKeyRef: - name: lagoon-env - key: LAGOON_GIT_SAFE_BRANCH - ## LAGOON_GIT_SHA is injected directly and not loaded via `lagoon-env` config - ## This will cause the cli to redeploy on every deployment, even the files have not changed - - name: LAGOON_GIT_SHA - value: ${LAGOON_GIT_SHA} - - name: LAGOON_PROJECT - valueFrom: - configMapKeyRef: - name: lagoon-env - key: LAGOON_PROJECT - resources: - requests: - cpu: 100m - memory: 100Mi - test: false - triggers: - - type: ConfigChange - - imageChangeParams: - automatic: true - containerNames: - - ${SERVICE_NAME} - from: - kind: ImageStreamTag - name: ${SERVICE_NAME}:latest - type: ImageChange - status: {} diff --git a/images/oc-build-deploy/openshift-templates/nginx-php-drupal-docroot/template.yml b/images/oc-build-deploy/openshift-templates/nginx-php-drupal-docroot/template.yml deleted file mode 100644 index 7da178d4e0..0000000000 --- a/images/oc-build-deploy/openshift-templates/nginx-php-drupal-docroot/template.yml +++ /dev/null @@ -1,215 +0,0 @@ -apiVersion: v1 -kind: Template -metadata: - creationTimestamp: null - name: lagoon-openshift-template-nginx-php -parameters: - - name: SERVICE_NAME - description: Name of this service - required: true - - name: SAFE_BRANCH - description: Which branch this belongs to, special chars replaced with dashes - required: true - - name: SAFE_PROJECT - description: Which project this belongs to, special chars replaced with dashes - required: true - - name: BRANCH - description: Which branch this belongs to, original value - required: true - - name: PROJECT - description: Which project this belongs to, original value - required: true - - name: LAGOON_GIT_SHA - description: git hash sha of the current deployment - required: true - - name: ROUTER_URL - description: URL of the Router - required: true -objects: -- apiVersion: v1 - kind: PersistentVolumeClaim - metadata: - name: drupal-files - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 5Gi -- apiVersion: v1 - kind: DeploymentConfig - metadata: - creationTimestamp: null - labels: - branch: ${SAFE_BRANCH} - project: ${SAFE_PROJECT} - name: ${SERVICE_NAME} - spec: - replicas: 1 - selector: - service: ${SERVICE_NAME} - strategy: - resources: {} - template: - metadata: - creationTimestamp: null - labels: - service: ${SERVICE_NAME} - branch: ${SAFE_BRANCH} - project: ${SAFE_PROJECT} - spec: - volumes: - - name: drupal-files - persistentVolumeClaim: - claimName: drupal-files - containers: - - image: ' ' - name: nginx - volumeMounts: - - name: drupal-files - mountPath: /app/docroot/sites/default/files/ - ports: - - containerPort: 8080 - protocol: TCP - readinessProbe: - httpGet: - path: /nginx_status - port: 50000 - initialDelaySeconds: 5 - timeoutSeconds: 3 - livenessProbe: - httpGet: - path: /nginx_status - port: 50000 - initialDelaySeconds: 90 - timeoutSeconds: 3 - failureThreshold: 5 - env: - - name: NGINX_FASTCGI_PASS - value: '127.0.0.1' - - name: LAGOON_GIT_BRANCH - valueFrom: - configMapKeyRef: - name: lagoon-env - key: LAGOON_GIT_BRANCH - - name: LAGOON_GIT_SAFE_BRANCH - valueFrom: - configMapKeyRef: - name: lagoon-env - key: LAGOON_GIT_SAFE_BRANCH - - name: LAGOON_GIT_SHA - valueFrom: - configMapKeyRef: - name: lagoon-env - key: LAGOON_GIT_SHA - - name: LAGOON_PROJECT - valueFrom: - configMapKeyRef: - name: lagoon-env - key: LAGOON_PROJECT - resources: - requests: - cpu: 100m - memory: 100Mi - - image: ' ' - name: php - volumeMounts: - - name: drupal-files - mountPath: /app/docroot/sites/default/files/ - ports: - - containerPort: 9000 - protocol: TCP - readinessProbe: - exec: - command: - - /usr/sbin/check_fcgi - initialDelaySeconds: 2 - periodSeconds: 5 - livenessProbe: - exec: - command: - - /usr/sbin/check_fcgi - initialDelaySeconds: 60 - periodSeconds: 5 - env: - - name: LAGOON_GIT_BRANCH - valueFrom: - configMapKeyRef: - name: lagoon-env - key: LAGOON_GIT_BRANCH - - name: LAGOON_GIT_SAFE_BRANCH - valueFrom: - configMapKeyRef: - name: lagoon-env - key: LAGOON_GIT_SAFE_BRANCH - - name: LAGOON_GIT_SHA - valueFrom: - configMapKeyRef: - name: lagoon-env - key: LAGOON_GIT_SHA - - name: LAGOON_PROJECT - valueFrom: - configMapKeyRef: - name: lagoon-env - key: LAGOON_PROJECT - resources: - requests: - cpu: 100m - memory: 100Mi - test: false - triggers: - - type: ConfigChange - - imageChangeParams: - automatic: true - containerNames: - - nginx - from: - kind: ImageStreamTag - name: nginx:latest - type: ImageChange - - imageChangeParams: - automatic: true - containerNames: - - php - from: - kind: ImageStreamTag - name: php:latest - type: ImageChange - status: {} -- apiVersion: v1 - kind: Service - metadata: - creationTimestamp: null - labels: - service: ${SERVICE_NAME} - branch: ${SAFE_BRANCH} - project: ${SAFE_PROJECT} - name: ${SERVICE_NAME} - spec: - ports: - - name: 8080-tcp - port: 8080 - protocol: TCP - targetPort: 8080 - selector: - service: ${SERVICE_NAME} - status: - loadBalancer: {} -- apiVersion: v1 - kind: Route - metadata: - creationTimestamp: null - labels: - service: ${SERVICE_NAME} - branch: ${SAFE_BRANCH} - project: ${SAFE_PROJECT} - name: ${SERVICE_NAME} - spec: - host: ${SERVICE_NAME}.${ROUTER_URL} - port: - targetPort: 8080-tcp - tls: - termination: edge - to: - kind: Service - name: ${SERVICE_NAME} \ No newline at end of file