Make it possible to override individual docker registry
This commit is contained in:
parent
96e2fd4302
commit
c8dc0218dd
@ -29,7 +29,7 @@ Configuration
|
||||
- ``NOTES_MYSQL_PASSWORD`` (default: ``"{{ 8|random_string }}"``)
|
||||
- ``NOTES_SECRET_KEY`` (default: ``"{{ 24|random_string }}"``)
|
||||
- ``NOTES_OAUTH2_SECRET`` (default: ``"{{ 24|random_string }}"``)
|
||||
- ``NOTES_DOCKER_IMAGE`` (default: ``"overhangio/openedx-notes:{{ NOTES_VERSION }}"``)
|
||||
- ``NOTES_DOCKER_IMAGE`` (default: ``"{{ DOCKER_REGISTRY }}overhangio/openedx-notes:{{ NOTES_VERSION }}"``)
|
||||
- ``NOTES_HOST`` (default: ``"notes.{{ LMS_HOST }}"``)
|
||||
- ``NOTES_MYSQL_DATABASE`` (default: ``"notes"``)
|
||||
- ``NOTES_MYSQL_USERNAME`` (default: ``"notes"``)
|
||||
|
||||
@ -1 +1 @@
|
||||
__version__ = "10.0.1"
|
||||
__version__ = "10.1.0"
|
||||
|
||||
@ -16,7 +16,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: notes
|
||||
image: {{ DOCKER_REGISTRY }}{{ NOTES_DOCKER_IMAGE }}
|
||||
image: {{ NOTES_DOCKER_IMAGE }}
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
env:
|
||||
|
||||
@ -11,7 +11,7 @@ spec:
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: notes
|
||||
image: {{ DOCKER_REGISTRY }}{{ NOTES_DOCKER_IMAGE }}
|
||||
image: {{ NOTES_DOCKER_IMAGE }}
|
||||
env:
|
||||
- name: DJANGO_SETTINGS_MODULE
|
||||
value: notesserver.settings.tutor
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
notes-job:
|
||||
image: {{ DOCKER_REGISTRY }}{{ NOTES_DOCKER_IMAGE }}
|
||||
image: {{ NOTES_DOCKER_IMAGE }}
|
||||
environment:
|
||||
DJANGO_SETTINGS_MODULE: notesserver.settings.tutor
|
||||
volumes:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
############# Notes: backend store for edX Student Notes
|
||||
notes:
|
||||
image: {{ DOCKER_REGISTRY }}{{ NOTES_DOCKER_IMAGE }}
|
||||
image: {{ NOTES_DOCKER_IMAGE }}
|
||||
environment:
|
||||
DJANGO_SETTINGS_MODULE: notesserver.settings.tutor
|
||||
volumes:
|
||||
|
||||
@ -14,7 +14,7 @@ config = {
|
||||
},
|
||||
"defaults": {
|
||||
"VERSION": __version__,
|
||||
"DOCKER_IMAGE": "overhangio/openedx-notes:{{ NOTES_VERSION }}",
|
||||
"DOCKER_IMAGE": "{{ DOCKER_REGISTRY }}overhangio/openedx-notes:{{ NOTES_VERSION }}",
|
||||
"HOST": "notes.{{ LMS_HOST }}",
|
||||
"MYSQL_DATABASE": "notes",
|
||||
"MYSQL_USERNAME": "notes",
|
||||
@ -24,8 +24,8 @@ config = {
|
||||
templates = pkg_resources.resource_filename("tutornotes", "templates")
|
||||
hooks = {
|
||||
"init": ["mysql", "lms", "notes"],
|
||||
"build-image": {"notes": "{{ DOCKER_REGISTRY }}{{ NOTES_DOCKER_IMAGE }}"},
|
||||
"remote-image": {"notes": "{{ DOCKER_REGISTRY }}{{ NOTES_DOCKER_IMAGE }}"},
|
||||
"build-image": {"notes": "{{ NOTES_DOCKER_IMAGE }}"},
|
||||
"remote-image": {"notes": "{{ NOTES_DOCKER_IMAGE }}"},
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user