Skip to content

Commit

Permalink
fix: add dependencies compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
MaferMazu committed Aug 30, 2024
1 parent 5f10a56 commit c68fe8f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tutorpicasso/patches/openedx-dockerfile-pre-assets
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,30 @@
COPY --chown=app:app ./themes/ /openedx/themes
{% if (current_version[0] < redwood_version[0]) %}
# This compiles the Picasso themes assets in the releases < redwood.

# These commands are already in the Dockerfile Tutor template,
# but we needed them for the Picasso themes compilation.
ENV NO_PYTHON_UNINSTALL 1
ENV NO_PREREQ_INSTALL 1
RUN openedx-assets xmodule \
&& openedx-assets npm \
&& openedx-assets webpack --env=prod \
&& openedx-assets common
# Compiling the Picasso themes.
RUN openedx-assets themes \
--theme-dirs {{ PICASSO_THEME_DIRS | join(' ') }} \
--themes {{ PICASSO_THEMES_NAME | join(' ') }} \
&& openedx-assets collect --settings=tutor.assets \
&& rdfind -makesymlinks true -followsymlinks true /openedx/staticfiles/
{% else %}
# This compiles the Picasso themes assets from the redwood release.

# These commands are already in the Dockerfile Tutor template,
# but we needed them for the Picasso themes compilation.
RUN npm run postinstall
RUN npm run compile-sass -- --skip-themes
RUN npm run webpack
# Compiling the Picasso themes.
RUN npm run compile-sass -- \
--theme-dir {{ PICASSO_THEME_DIRS | join(' --theme-dir ') }} \
--theme {{ PICASSO_THEMES_NAME | join(' --theme ') }} \
Expand Down

0 comments on commit c68fe8f

Please sign in to comment.