Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…mplate into feat/SLB-314
  • Loading branch information
HagerDakroury committed Apr 30, 2024
2 parents 432d4dd + 575ecf8 commit 1471956
Show file tree
Hide file tree
Showing 92 changed files with 4,096 additions and 321 deletions.
6 changes: 6 additions & 0 deletions .lagoon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ environments:
- example.cms.amazeelabs.dev
- build:
- example.build.amazeelabs.dev
- preview:
- example.preview.amazeelabs.dev
cronjobs:
- name: drush cron
schedule: '*/15 * * * *'
Expand All @@ -47,6 +49,8 @@ environments:
- stage-example.cms.amazeelabs.dev
- build:
- stage-example.build.amazeelabs.dev
- preview:
- stage-example.preview.amazeelabs.dev
cronjobs:
- name: drush cron
schedule: '*/15 * * * *'
Expand All @@ -58,6 +62,8 @@ environments:
- dev-example.cms.amazeelabs.dev
- build:
- dev-example.build.amazeelabs.dev
- preview:
- dev-example.preview.amazeelabs.dev
cronjobs:
- name: drush cron
schedule: '*/15 * * * *'
Expand Down
14 changes: 13 additions & 1 deletion .lagoon/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN npm install -g [email protected] && pnpm config set store-dir /tmp/cache/pnpm

# Copy pnpm lockfile and install dependencies.
COPY pnpm-lock.yaml .npmrc /app/
#COPY patches /app/patches
# COPY patches /app/patches
RUN --mount=type=cache,target=/tmp/cache pnpm fetch && \
# There is a bug in pnpm: `pnpm fetch` creates _some_ node_modules folders
# with _some_ packages. This can lead to an incomplete package installation.
Expand Down Expand Up @@ -47,6 +47,7 @@ RUN --mount=type=cache,target=/tmp/cache pnpm i && \
# Deploy apps.
RUN --mount=type=cache,target=/tmp/cache pnpm deploy --filter "@custom/cms" /tmp/.deploy/cms --prod
RUN --mount=type=cache,target=/tmp/cache pnpm deploy --filter "@custom/website" /tmp/.deploy/website --prod
RUN --mount=type=cache,target=/tmp/cache pnpm deploy --filter "@custom/preview" /tmp/.deploy/preview --prod

# ====================================================================================================
# CLI IMAGE
Expand Down Expand Up @@ -82,11 +83,22 @@ FROM uselagoon/nginx-drupal as nginx

COPY --from=cli /app /app
RUN cd /app/web && cp ../node_modules/@custom/ui/build/gutenberg.css .
RUN cd /app/web && cp ../node_modules/@custom/ui/build/iframe.css .
COPY .lagoon/nginx-conf/redirects-map.conf /etc/nginx/redirects-map.conf

WORKDIR /app
ENV WEBROOT=web

# ====================================================================================================
# PREVIEW IMAGE
# ====================================================================================================

FROM uselagoon/node-18:23.12.0 as preview

RUN npm install -g [email protected]
COPY --from=builder /tmp/.deploy/preview /app
CMD pnpm start

# ====================================================================================================
# PUBLISHER IMAGE
# ====================================================================================================
Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@
"*.profile": "php"
},
"graphql-config.load.filePath": ".graphqlrc.json",
"graphql-config.load.rootDir": "packages/schema"
"graphql-config.load.rootDir": "packages/schema",
"phpsab.executablePathCBF": "./apps/cms/vendor/bin/phpcbf",
"phpsab.executablePathCS": "./apps/cms/vendor/bin/phpcs"
}
8 changes: 8 additions & 0 deletions apps/cms/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

273 changes: 273 additions & 0 deletions apps/cms/.idea/cms.iml

Large diffs are not rendered by default.

140 changes: 140 additions & 0 deletions apps/cms/.idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions apps/cms/.idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1471956

Please sign in to comment.