|
1 | 1 | # Main Wordpress Website Docker Config
|
2 | 2 |
|
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 |
4 | 4 | main UC Davis Library website.
|
5 | 5 |
|
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. |
9 | 48 |
|
10 | 49 | ## Deployment
|
11 | 50 | See the
|
|
0 commit comments