Skip to content

Commit

Permalink
🚧(edxapp) add IS + BC
Browse files Browse the repository at this point in the history
WIP.
  • Loading branch information
jmaupetit committed Sep 3, 2018
1 parent 88b6868 commit 42855ef
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/edxapp/templates/cms/_dc_base.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
27 changes: 27 additions & 0 deletions apps/edxapp/templates/lms/bc.yml.j2
Original file line number Diff line number Diff line change
@@ -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 }}"
7 changes: 7 additions & 0 deletions apps/edxapp/templates/lms/is.yml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: "v1"
kind: "ImageStream"
metadata:
name: "augmented-{{ edxapp_image_name }}-lms"
labels:
app: "edxapp"
service: "lms"

0 comments on commit 42855ef

Please sign in to comment.