diff --git a/apps/edxapp/templates/cms/_dc_base.yml.j2 b/apps/edxapp/templates/cms/_dc_base.yml.j2 index 18e583a2d..ba8a12d80 100644 --- a/apps/edxapp/templates/cms/_dc_base.yml.j2 +++ b/apps/edxapp/templates/cms/_dc_base.yml.j2 @@ -115,3 +115,12 @@ spec: - name: edxapp-v-data persistentVolumeClaim: claimName: edxapp-pvc-data + triggers: + - type: ImageChange + imageChangeParams: + automatic: true + containerNames: + - "{{ service_variant }}" + from: + kind: ImageStreamTag + name: "augmented-{{ edxapp_image_name }}:{{ edxapp_image_tag }}" diff --git a/apps/edxapp/templates/lms/bc.yml.j2 b/apps/edxapp/templates/lms/bc.yml.j2 new file mode 100644 index 000000000..6162c8e8c --- /dev/null +++ b/apps/edxapp/templates/lms/bc.yml.j2 @@ -0,0 +1,27 @@ +apiVersion: "v1" +kind: "BuildConfig" +metadata: + name: "edxapp-lms" + labels: + app: "edxapp" + service: "lms" +spec: + strategy: + type: Docker + source: + {% if edxapp_theme_url is defined and edxapp_theme_url %} + git: + uri: "{{ edxapp_theme_url }}" + ref: "{{ edxapp_theme_tag | default("master") }}" + sourceSecret: + name: "edxapp_theme_ssh_key" + {% endif %} + dockerfile: |- + FROM {{ edxapp_image_name }}:{{ edxapp_image_tag }} + USER 0 + RUN NO_PREREQ_INSTALL=1 paver update_assets --settings={{ edxapp_build_settings }} --skip-collect + USER 10000 + output: + to: + kind: "ImageStreamTag" + name: "augmented-{{ edxapp_image_name }}-lms:{{ edxapp_image_tag }}" diff --git a/apps/edxapp/templates/lms/is.yml.j2 b/apps/edxapp/templates/lms/is.yml.j2 new file mode 100644 index 000000000..9c9b1e6c9 --- /dev/null +++ b/apps/edxapp/templates/lms/is.yml.j2 @@ -0,0 +1,7 @@ +apiVersion: "v1" +kind: "ImageStream" +metadata: + name: "augmented-{{ edxapp_image_name }}-lms" + labels: + app: "edxapp" + service: "lms"