Skip to content

Commit

Permalink
feat: introduces MFE_DOCKER_IMAGE_DEV_PREFIX (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
rediris committed Jul 1, 2024
1 parent d95de70 commit eab8bba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Feature] Introduce a `MFE_DOCKER_IMAGE_DEV_PREFIX` setting to customize dev MFE image docker repos. (by @rediris)
2 changes: 1 addition & 1 deletion tutormfe/patches/local-docker-compose-dev-services
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mfe:
{%- set mounts = iter_mounts(MOUNTS, app_name)|list %}
{%- if mounts %}
{{ app_name }}: # Work on this MFE for development
image: "{{ DOCKER_REGISTRY }}overhangio/openedx-{{ app_name }}-dev:{{ MFE_VERSION }}"
image: "{{ MFE_DOCKER_IMAGE_DEV_PREFIX }}-{{ app_name }}-dev:{{ MFE_VERSION }}"
ports:
- "{{ app["port"] }}:{{ app["port"] }}"
stdin_open: true
Expand Down
3 changes: 2 additions & 1 deletion tutormfe/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"defaults": {
"VERSION": __version__,
"DOCKER_IMAGE": "{{ DOCKER_REGISTRY }}overhangio/openedx-mfe:{{ MFE_VERSION }}",
"DOCKER_IMAGE_DEV_PREFIX": "{{ DOCKER_REGISTRY }}overhangio/openedx",
"HOST": "apps.{{ LMS_HOST }}",
"COMMON_VERSION": "{{ OPENEDX_COMMON_VERSION }}",
"CADDY_DOCKER_IMAGE": "{{ DOCKER_IMAGE_CADDY }}",
Expand Down Expand Up @@ -152,7 +153,7 @@ def get_mfe(mfe_name: str) -> MFE_ATTRS_TYPE:
def _mounted_mfe_image_management() -> None:
for mfe_name, _mfe_attrs in iter_mfes():
name = f"{mfe_name}-dev"
tag = "{{ DOCKER_REGISTRY }}overhangio/openedx-" + name + ":{{ MFE_VERSION }}"
tag = "{{ MFE_DOCKER_IMAGE_DEV_PREFIX }}-" + name + ":{{ MFE_VERSION }}"
tutor_hooks.Filters.IMAGES_BUILD.add_item(
(
name,
Expand Down

0 comments on commit eab8bba

Please sign in to comment.