47
47
hooks .Filters .ENV_TEMPLATE_TARGETS .add_items (
48
48
[
49
49
("indigo" , "build/openedx/themes" ),
50
+ ("indigo/env.config.jsx" , "plugins/mfe/build/mfe" ),
50
51
],
51
52
)
52
53
@@ -103,12 +104,16 @@ def _override_openedx_docker_image(
103
104
104
105
hooks .Filters .ENV_PATCHES .add_items (
105
106
[
107
+ # MFE will install header version 3.0.x and will include indigo-footer as a
108
+ # separate package for use in env.config.jsx
106
109
(
107
110
"mfe-dockerfile-post-npm-install-learning" ,
108
111
"""
109
112
RUN npm install '@edx/brand@npm:@edly-io/indigo-brand-openedx@^2.0.0'{% if INDIGO_ENABLE_DARK_THEME %} --theme=dark{% endif %}
110
- RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^3.0.0'
111
- RUN npm install '@edx/frontend-component-footer@npm:@edly-io/indigo-frontend-component-footer@^2.0.0'
113
+ RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@~3.0.0'
114
+ RUN npm install @edly-io/indigo-frontend-component-footer@^2.0.0
115
+
116
+ COPY indigo/env.config.jsx /openedx/app/
112
117
""" ,
113
118
),
114
119
(
@@ -123,32 +128,39 @@ def _override_openedx_docker_image(
123
128
"mfe-dockerfile-post-npm-install-discussions" ,
124
129
"""
125
130
RUN npm install '@edx/brand@npm:@edly-io/indigo-brand-openedx@^2.0.0'{% if INDIGO_ENABLE_DARK_THEME %} --theme=dark{% endif %}
126
- RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^3.0.0'
127
- RUN npm install '@edx/frontend-component-footer@npm:@edly-io/indigo-frontend-component-footer@^2.0.0'
131
+ RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@~3.0.0'
132
+ RUN npm install @edly-io/indigo-frontend-component-footer@^2.0.0
133
+
134
+ COPY indigo/env.config.jsx /openedx/app/
128
135
""" ,
129
136
),
130
137
(
131
138
"mfe-dockerfile-post-npm-install-learner-dashboard" ,
132
139
"""
133
140
RUN npm install '@edx/brand@npm:@edly-io/indigo-brand-openedx@^2.0.0'{% if INDIGO_ENABLE_DARK_THEME %} --theme=dark{% endif %}
134
- RUN npm install '@edx/frontend-component-footer@npm:@edly-io/indigo-frontend-component-footer@^2.0.0'
141
+ RUN npm install @edly-io/indigo-frontend-component-footer@^2.0.0
142
+
143
+ COPY indigo/env.config.jsx /openedx/app/
135
144
""" ,
136
145
),
137
146
(
138
147
"mfe-dockerfile-post-npm-install-profile" ,
139
148
"""
140
149
RUN npm install '@edx/brand@npm:@edly-io/indigo-brand-openedx@^2.0.0'{% if INDIGO_ENABLE_DARK_THEME %} --theme=dark{% endif %}
141
- RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^ 3.0.0'
142
- RUN npm install '@edx/frontend-component-footer@npm:@ edly-io/indigo-frontend-component-footer@^2.0.0'
150
+ RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@~ 3.0.0'
151
+ RUN npm install @ edly-io/indigo-frontend-component-footer@^2.0.0
143
152
153
+ COPY indigo/env.config.jsx /openedx/app/
144
154
""" ,
145
155
),
146
156
(
147
157
"mfe-dockerfile-post-npm-install-account" ,
148
158
"""
149
159
RUN npm install '@edx/brand@npm:@edly-io/indigo-brand-openedx@^2.0.0'{% if INDIGO_ENABLE_DARK_THEME %} --theme=dark{% endif %}
150
- RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^3.0.0'
151
- RUN npm install '@edx/frontend-component-footer@npm:@edly-io/indigo-frontend-component-footer@^2.0.0'
160
+ RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@~3.0.0'
161
+ RUN npm install @edly-io/indigo-frontend-component-footer@^2.0.0
162
+
163
+ COPY indigo/env.config.jsx /openedx/app/
152
164
""" ,
153
165
),
154
166
]
0 commit comments