Skip to content

Commit

Permalink
Merge branch 'stage'
Browse files Browse the repository at this point in the history
  • Loading branch information
spelkey-ucd committed Dec 19, 2024
2 parents 9b801b2 + 22dea5e commit 0b30c22
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 23 deletions.
42 changes: 21 additions & 21 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ ARG PLUGIN_ROOT="$WP_SRC_ROOT/wp-content/plugins"
ARG WP_LOG_ROOT=/var/log/wordpress
ARG PLUGINS_BUCKET=wordpress-general/plugins
ARG NODE_VERSION=20
ARG PLUGIN_ACF="advanced-custom-fields-pro-6.2.5.zip"
ARG PLUGIN_BROKEN_LINK_CHECKER="broken-link-checker-2.2.4.zip"
ARG PLUGIN_DEFENDER="defender-pro-4.5.zip"
ARG PLUGIN_FORMINATOR="forminator-pro-1.29.zip"
ARG PLUGIN_HUMMINGBIRD="hummingbird-pro-3.7.2.zip"
ARG PLUGIN_LIGHTBOX="gallery-block-lightbox-1.13.zip"
ARG PLUGIN_REDIRECTION="redirection-5.4.2.zip"
ARG PLUGIN_SMTP_MAILER="smtp-mailer-1.1.12.zip"
ARG PLUGIN_SMUSH="smush-pro-3.15.5.zip"
ARG PLUGIN_USER_ROLE_EDITOR="user-role-editor-4.64.1.zip"
ARG PLUGIN_WPMUDEV_UPDATES="wpmu-dev-dashboard-4.11.24.zip"
ARG PLUGIN_ACF="advanced-custom-fields-pro-6.3.11.zip"
ARG PLUGIN_BROKEN_LINK_CHECKER="broken-link-checker-2.4.2.zip"
ARG PLUGIN_DEFENDER="defender-pro-4.11.zip"
ARG PLUGIN_FORMINATOR="forminator-pro-1.37.1.zip"
ARG PLUGIN_HUMMINGBIRD="hummingbird-pro-3.9.4.zip"
ARG PLUGIN_LIGHTBOX="gallery-block-lightbox-1.15.zip"
ARG PLUGIN_REDIRECTION="redirection-5.5.1.zip"
ARG PLUGIN_SMTP_MAILER="smtp-mailer-1.11.17.zip"
ARG PLUGIN_SMUSH="smush-pro-3.16.9.zip"
ARG PLUGIN_USER_ROLE_EDITOR="user-role-editor-4.64.2.zip"
ARG PLUGIN_WPMUDEV_UPDATES="wpmu-dev-dashboard-4.11.28.zip"

# Download third-party plugins from cloud bucket
# note, they still have to be activated
FROM google/cloud-sdk:alpine as gcloud
FROM google/cloud-sdk:alpine AS gcloud
RUN mkdir -p /cache
WORKDIR /cache
ARG GOOGLE_KEY_FILE_CONTENT
Expand Down Expand Up @@ -48,7 +48,7 @@ RUN gsutil cp gs://${PLUGINS_BUCKET}/advanced-custom-fields-pro/${PLUGIN_ACF} .
&& gsutil cp gs://${PLUGINS_BUCKET}/gallery-block-lightbox/${PLUGIN_LIGHTBOX} . \
&& gsutil cp gs://${PLUGINS_BUCKET}/defender-pro/${PLUGIN_DEFENDER} .

FROM node:${NODE_VERSION} as ucdlib-theme-wp
FROM node:${NODE_VERSION} AS ucdlib-theme-wp

RUN mkdir -p /plugin/ucdlib-theme-wp/src/public
WORKDIR /plugin/ucdlib-theme-wp/src/public
Expand All @@ -72,7 +72,7 @@ COPY ucdlib-theme-wp/src/public/lib src/public/lib
COPY ucdlib-theme-wp/src/public/elements src/public/elements
COPY ucdlib-theme-wp/src/public/page-scripts src/public/page-scripts

FROM node:${NODE_VERSION} as ucdlib-assets
FROM node:${NODE_VERSION} AS ucdlib-assets

RUN mkdir -p /plugin/ucdlib-assets/src/public
WORKDIR /plugin/ucdlib-assets/src/public
Expand All @@ -93,7 +93,7 @@ COPY ucdlib-wp-plugins/ucdlib-assets/src/editor/ucdlib-editor.js src/editor/ucdl
COPY ucdlib-wp-plugins/ucdlib-assets/src/public/index.js src/public/index.js
COPY ucdlib-wp-plugins/ucdlib-assets/src/public/lib src/public/lib

FROM node:${NODE_VERSION} as ucdlib-locations
FROM node:${NODE_VERSION} AS ucdlib-locations

RUN mkdir -p /plugin/ucdlib-locations/src/public
WORKDIR /plugin/ucdlib-locations/src/public
Expand All @@ -115,7 +115,7 @@ COPY ucdlib-wp-plugins/ucdlib-locations/src/public/lib src/public/lib
COPY ucdlib-wp-plugins/ucdlib-locations/src/editor/index.js src/editor/index.js
COPY ucdlib-wp-plugins/ucdlib-locations/src/editor/lib src/editor/lib

FROM node:${NODE_VERSION} as ucdlib-migration
FROM node:${NODE_VERSION} AS ucdlib-migration

RUN mkdir -p /plugin/ucdlib-migration/src/editor
WORKDIR /plugin/ucdlib-migration/src/editor
Expand All @@ -129,7 +129,7 @@ COPY ucdlib-wp-plugins/ucdlib-migration/ucdlib-migration.php ucdlib-migration.ph
COPY ucdlib-wp-plugins/ucdlib-migration/src/editor/index.js src/editor/index.js
COPY ucdlib-wp-plugins/ucdlib-migration/src/editor/lib src/editor/lib

FROM node:${NODE_VERSION} as ucdlib-directory
FROM node:${NODE_VERSION} AS ucdlib-directory

RUN mkdir -p /plugin/ucdlib-directory/src/editor
WORKDIR /plugin/ucdlib-directory/src/editor
Expand All @@ -151,7 +151,7 @@ COPY ucdlib-wp-plugins/ucdlib-directory/src/editor/lib src/editor/lib
COPY ucdlib-wp-plugins/ucdlib-directory/src/public/src src/public/src
COPY ucdlib-wp-plugins/ucdlib-directory/src/public/index.js src/public/index.js

FROM node:${NODE_VERSION} as ucdlib-search
FROM node:${NODE_VERSION} AS ucdlib-search
RUN mkdir -p /plugin/ucdlib-search/src/public
WORKDIR /plugin/ucdlib-search/src/public
COPY ucdlib-wp-plugins/ucdlib-search/src/public/package.json package.json
Expand All @@ -166,7 +166,7 @@ COPY ucdlib-wp-plugins/ucdlib-search/src/public/lib src/public/lib
COPY ucdlib-wp-plugins/ucdlib-search/views views
COPY ucdlib-wp-plugins/ucdlib-search/ucdlib-search.php ucdlib-search.php

FROM node:${NODE_VERSION} as ucdlib-special
FROM node:${NODE_VERSION} AS ucdlib-special

RUN mkdir -p /plugin/ucdlib-special/src/public
WORKDIR /plugin/ucdlib-special/src/public
Expand All @@ -189,7 +189,7 @@ COPY ucdlib-wp-plugins/ucdlib-special/src/editor/index.js src/editor/index.js
COPY ucdlib-wp-plugins/ucdlib-special/src/editor/lib src/editor/lib


FROM wordpress:6.4.3 as wordpress
FROM wordpress:6.7.1 AS wordpress

ARG WP_SRC_ROOT
ENV WP_SRC_ROOT=${WP_SRC_ROOT}
Expand Down Expand Up @@ -292,7 +292,7 @@ RUN unzip ${PLUGIN_ACF} && rm ${PLUGIN_ACF} \
# our forms rt extension
RUN git clone https://github.com/UCDavisLibrary/forminator-addon-rt.git \
&& cd forminator-addon-rt \
&& git checkout v1.2.0
&& git checkout v2.0.0

# copy our theme
COPY --from=ucdlib-theme-wp /plugin/ucdlib-theme-wp $THEME_ROOT/ucdlib-theme-wp
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"description": "The main UC Davis Library website",
"type":"wordpress-theme",
"license": "MIT",
"minimum-stability" : "dev",
"authors": [
{
"email": "[email protected]",
Expand All @@ -17,7 +16,7 @@
}
],
"require": {
"timber/timber": "2.0.0",
"timber/timber": "2.3.0",
"apereo/phpcas" : "^1.6.1",
"elasticsearch/elasticsearch": "~7.0"
},
Expand Down

0 comments on commit 0b30c22

Please sign in to comment.