Skip to content

Commit b416c63

Browse files
committed
1 parent 35ddff5 commit b416c63

File tree

3 files changed

+52
-13
lines changed

3 files changed

+52
-13
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"timber/timber": "2.3.0",
19+
"timber/timber": "2.3.1",
2020
"apereo/phpcas" : "^1.6.1",
2121
"elasticsearch/elasticsearch": "~7.0"
2222
},

devops/Dockerfile

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ ARG PLUGIN_ROOT="$WP_SRC_ROOT/wp-content/plugins"
44
ARG WP_LOG_ROOT=/var/log/wordpress
55
ARG PLUGINS_BUCKET=wordpress-general/plugins
66
ARG NODE_VERSION=20
7-
ARG PLUGIN_ACF="advanced-custom-fields-pro-6.3.11.zip"
7+
ARG PLUGIN_ACF="advanced-custom-fields-pro-6.3.12.zip"
88
ARG PLUGIN_BROKEN_LINK_CHECKER="broken-link-checker-2.4.2.zip"
9-
ARG PLUGIN_DEFENDER="defender-pro-4.11.zip"
10-
ARG PLUGIN_FORMINATOR="forminator-pro-1.37.1.zip"
11-
ARG PLUGIN_HUMMINGBIRD="hummingbird-pro-3.9.4.zip"
9+
ARG PLUGIN_DEFENDER="defender-pro-5.1.1.zip"
10+
ARG PLUGIN_FORMINATOR="forminator-pro-1.41.1.zip"
11+
ARG PLUGIN_HUMMINGBIRD="hummingbird-pro-3.12.zip"
1212
ARG PLUGIN_LIGHTBOX="gallery-block-lightbox-1.15.zip"
13-
ARG PLUGIN_REDIRECTION="redirection-5.5.1.zip"
13+
ARG PLUGIN_REDIRECTION="redirection-5.5.2.zip"
1414
ARG PLUGIN_SMTP_MAILER="smtp-mailer-1.11.17.zip"
15-
ARG PLUGIN_SMUSH="smush-pro-3.16.9.zip"
16-
ARG PLUGIN_USER_ROLE_EDITOR="user-role-editor-4.64.2.zip"
15+
ARG PLUGIN_SMUSH="smush-pro-3.18.zip"
16+
ARG PLUGIN_USER_ROLE_EDITOR="user-role-editor-4.64.4.zip"
1717
ARG PLUGIN_WPMUDEV_UPDATES="wpmu-dev-dashboard-4.11.28.zip"
1818
ARG UCDLIB_THEME_WP_NODE_IMAGE
1919
ARG UCDLIB_WP_PLUGINS_NODE_IMAGE
@@ -53,7 +53,7 @@ RUN gsutil cp gs://${PLUGINS_BUCKET}/advanced-custom-fields-pro/${PLUGIN_ACF} .
5353

5454
FROM ${UCDLIB_THEME_WP_NODE_IMAGE} AS ucdlib-theme-wp
5555
FROM ${UCDLIB_WP_PLUGINS_NODE_IMAGE} AS ucdlib-wp-plugins
56-
FROM wordpress:6.7.1 AS wordpress
56+
FROM wordpress:6.7.2 AS wordpress
5757

5858
ARG WP_SRC_ROOT
5959
ENV WP_SRC_ROOT=${WP_SRC_ROOT}

readme.md

+43-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,50 @@
11
# Main Wordpress Website Docker Config
22

3-
This repo contains the Dockerfile and code (as git submodules) for running the
3+
This repo contains the Dockerfiles and custom utilities for running the
44
main UC Davis Library website.
55

6-
## PHP Composer Dependencies
7-
Both theme and plugin php dependencies should go in the `composer.json`, which
8-
will be installed in `/var/www/html/vendor` in the container.
6+
Most src code will be found in either the [theme](https://github.com/UCDavisLibrary/ucdlib-theme-wp) or [plugins](https://github.com/UCDavisLibrary/ucdlib-wp-plugins).
7+
8+
## Basic Maintenance
9+
10+
Basic maintenance will need to be performed every few months to ensure that all dependencies stay up-to-date and patched.
11+
12+
### Timber
13+
Timber is a framework that organizes Wordpress into a more object-oriented approach, and enables the use of the twig templating language.
14+
To update, find most [recent release](https://github.com/timber/timber/releases), and update `composer.json` file.
15+
16+
### Worpdress Core, Apache, PHP
17+
Apache, PHP, and Wordpress versions are all controlled by the [official WP docker image](https://hub.docker.com/_/wordpress). Generally, not specifying the Apache/PHP version is fine, e.g. `wordpress:6.7.1`.
18+
19+
In `devops/Dockerfile`, update the Wordpress stage of the build: `FROM wordpress:6.7.1 AS wordpress`
20+
21+
### Third-party Plugins
22+
All third-party plugins are stored in Google Cloud Storage in the [wordpress-general bucket](https://console.cloud.google.com/storage/browser/wordpress-general;tab=objects?project=digital-ucdavis-edu&prefix=&forceOnObjectsSortingFiltering=false) in the digital-ucdavis-edu project.
23+
24+
You will need to go through each item in the table below, and:
25+
1. Check if there has been an update
26+
2. Download the new version
27+
3. Rename the file if necessary
28+
4. Upload to corresponding directory in bucket
29+
5. Update `devops/Dockerfile` with new version number
30+
31+
| Plugin | Download Website |
32+
| ------ | -------- |
33+
| ACF Pro | https://www.advancedcustomfields.com/my-account/view-licenses/ |
34+
| Broken Link Checker | https://wordpress.org/plugins/broken-link-checker/ |
35+
| Defender Pro | https://wpmudev.com/project/wp-defender/ |
36+
| Forminator Pro | https://wpmudev.com/project/forminator-pro/ |
37+
| Hummingbird Pro | https://wpmudev.com/project/wp-hummingbird/ |
38+
| Gallery Block Lightbox | https://wordpress.org/plugins/gallery-block-lightbox/ |
39+
| Redirection | https://wordpress.org/plugins/redirection/ |
40+
| SMTP Mailer | https://wordpress.org/plugins/smtp-mailer/ |
41+
| Smush Pro | https://wpmudev.com/project/wp-smush-pro/ |
42+
| User Role Editor | https://wordpress.org/plugins/user-role-editor/ |
43+
| WPMU DEV Dashboard | https://wpmudev.com/project/wpmu-dev-dashboard/ |
44+
45+
The login credentials for wpmudev can be found in [Google Cloud Secret Manager](https://console.cloud.google.com/security/secret-manager/secret/wpmudev-account/versions?project=digital-ucdavis-edu).
46+
47+
After downloading, you will have to rebuild your local images to see the updates.
948

1049
## Deployment
1150
See the

0 commit comments

Comments
 (0)