Implement branding with folders 'config-all', 'config-webapp', 'config-backend'

This commit is contained in:
Wolfgang Huß 2024-01-02 12:39:45 +01:00
parent 13d8c19b5a
commit 2ef6f40161
4 changed files with 10 additions and 6 deletions

View File

@ -25,7 +25,8 @@ ARG CONFIGURATION=example
# COPY configurations/${CONFIGURATION}/branding/email/ src/middleware/helpers/email/
# copy public constants and email templates into the Docker image to brand it
COPY configurations/${CONFIGURATION}/branding/config/ src/branding/
COPY configurations/${CONFIGURATION}/branding/config-all/ src/branding/
COPY configurations/${CONFIGURATION}/branding/config-backend/ src/branding/
COPY configurations/${CONFIGURATION}/branding/email/ src/middleware/helpers/email/
##################################################################################

View File

@ -13,9 +13,10 @@ ARG CONFIGURATION=example
# copy public constants into the Docker image to brand it
COPY configurations/${CONFIGURATION}/branding/static/ static/
# COPY configurations/${CONFIGURATION}/branding/constants/ constants/
# RUN /bin/sh -c 'cd constants && for f in *.ts; do mv -- "$f" "${f%.ts}.js"; done'
COPY configurations/${CONFIGURATION}/branding/config/ branding/
# Wolle: COPY configurations/${CONFIGURATION}/branding/constants/ constants/
# Wolle: RUN /bin/sh -c 'cd constants && for f in *.ts; do mv -- "$f" "${f%.ts}.js"; done'
COPY configurations/${CONFIGURATION}/branding/config-all/ branding/
COPY configurations/${CONFIGURATION}/branding/config-webapp/ branding/
RUN /bin/sh -c 'cd branding && for f in *.ts; do mv -- "$f" "${f%.ts}.js"; done'
# locales

View File

@ -13,8 +13,9 @@ ARG CONFIGURATION=example
# copy public constants into the Docker image to brand it
COPY configurations/${CONFIGURATION}/branding/static/ static/
# Wolle COPY configurations/${CONFIGURATION}/branding/constants/ constants/
COPY configurations/${CONFIGURATION}/branding/config/ branding/
# Wolle: COPY configurations/${CONFIGURATION}/branding/constants/ constants/
COPY configurations/${CONFIGURATION}/branding/config-all/ branding/
COPY configurations/${CONFIGURATION}/branding/config-webapp/ branding/
RUN /bin/sh -c 'cd branding && for f in *.ts; do mv -- "$f" "${f%.ts}.js"; done'
COPY configurations/${CONFIGURATION}/branding/locales/html/ locales/html/
COPY configurations/${CONFIGURATION}/branding/assets/styles/imports/ assets/styles/imports/

View File

@ -97,6 +97,7 @@ COPY --from=build ${DOCKER_WORKDIR}/nuxt.config.js ./nuxt.config.js
# Copy static files
# TODO - this seems not be needed anymore for the new rebranding
# TODO - this should be one Folder containign all stuff needed to be copied
# Wolle: what shall happen here?
COPY --from=build ${DOCKER_WORKDIR}/config/ ./config/
COPY --from=build ${DOCKER_WORKDIR}/constants ./constants
COPY --from=build ${DOCKER_WORKDIR}/static ./static