Skip to content

Commit

Permalink
Cleanup after consolodating plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
mikethicke committed Dec 18, 2024
1 parent d8eac88 commit 5a57908
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 48 deletions.
17 changes: 9 additions & 8 deletions Dockerfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,20 @@
RUN mkdir -p /app && chown www-data:www-data /app
RUN mkdir -p /app/site && chown www-data:www-data /app/site
RUN mkdir -p /app/site/web && chown www-data:www-data /app/site/web
COPY --chown=www-data:www-data ./scripts /app/scripts
COPY --chown=www-data:www-data ./site/web/*.* /app/site/web/
COPY --chown=www-data:www-data ./plugins /app/plugins
COPY --chown=www-data:www-data ./mu-plugins /app/mu-plugins
COPY --chown=www-data:www-data ./themes /app/themes
COPY --chown=www-data:www-data ./site/config /app/site/config
COPY --chown=www-data:www-data wp-cli.yml /app/
COPY --chown=www-data:www-data ./simplesamlphp /app/simplesamlphp
COPY --chown=www-data:www-data ./config /app/config
COPY --chown=www-data:www-data ./scripts /app/scripts

COPY --chown=www-data:www-data composer.json /app/
COPY --chown=www-data:www-data composer.lock /app/

# Linking uploads folders to EFS volume mounted at /media
#Linking uploads folders to EFS volume mounted at /media
RUN mkdir -p /media && \
chown www-data:www-data /media && \
ln -sf /media/uploads /app/site/web/app/uploads && \
Expand All @@ -114,12 +115,12 @@

WORKDIR /app
USER www-data
RUN composer install --no-dev --no-interaction --no-progress --optimize-autoloader && \
cd /app/scripts/cron/mailchimp && composer install --no-dev --no-interaction --no-progress --optimize-autoloader && \
cd /app/scripts/dev-scripts/content-export/ && composer install --no-dev --no-interaction --no-progress --optimize-autoloader && \
cd /app/themes/dahd-tainacan/ && composer install --no-dev --no-interaction --no-progress --optimize-autoloader && \
cd /app/plugins/wp-graphql-tax-query/ && composer install --no-dev --no-interaction --no-progress --optimize-autoloader && \
cd /app/themes/learningspace/ && composer install --no-dev --no-interaction --no-progress --optimize-autoloader
RUN php -d default_socket_timeout=30000 $(which composer) install --no-dev --no-interaction --no-progress --optimize-autoloader --no-cache && \
cd /app/scripts/cron/mailchimp && php -d default_socket_timeout=30000 $(which composer) install --no-dev --no-interaction --no-progress --optimize-autoloader --no-cache && \
cd /app/scripts/dev-scripts/content-export/ && php -d default_socket_timeout=30000 $(which composer) install --no-dev --no-interaction --no-progress --optimize-autoloader --no-cache && \
cd /app/themes/dahd-tainacan/ && php -d default_socket_timeout=30000 $(which composer) install --no-dev --no-interaction --no-progress --optimize-autoloader --no-cache && \
cd /app/plugins/wp-graphql-tax-query/ && php -d default_socket_timeout=30000 $(which composer) install --no-dev --no-interaction --no-progress --optimize-autoloader --no-cache && \
cd /app/themes/learningspace/ && php -d default_socket_timeout=30000 $(which composer) install --no-dev --no-interaction --no-progress --optimize-autoloader --no-cache

RUN cd /app/site/web/app/plugins/cc-client && npm ci && npm run build && \
cd /app/themes/boss-child && npm ci && npm install gulp && node node_modules/gulp-cli/bin/gulp sass && \
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"process-timeout": 3600,
"allow-plugins": {
"composer/installers": true,
"roots/wordpress-core-installer": true,
Expand Down
71 changes: 35 additions & 36 deletions composer.lock

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

2 changes: 0 additions & 2 deletions scripts/build-scripts/phpinfo.php

This file was deleted.

1 change: 0 additions & 1 deletion site/.env

This file was deleted.

1 change: 0 additions & 1 deletion site/web/phpinfo.php

This file was deleted.

2 changes: 2 additions & 0 deletions site/web/phpinfo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
phpinfo();

0 comments on commit 5a57908

Please sign in to comment.