Skip to content

Commit ef7dc23

Browse files
authored
Merge pull request #83 from bcgov/feature/descw-3022-update-dependency-WP-WPCLI-NGINX
Feature/descw 3022 update dependency wp wpcli nginx
2 parents 2c8c3da + bc6aa84 commit ef7dc23

5 files changed

Lines changed: 17 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
### May 16, 2025
4+
- ([DESCW-3022](https://citz-gdx.atlassian.net/browse/DESCW-3022))
5+
- update WordPress from 6.7.1 - 6.8.1
6+
- update WordPress CLI from 2.7.1 -> 2.12.0
7+
- update Nginx from 1.26.2 -> 1.27.5
8+
39
### April 4, 2025
410
- improve workflow for wp-cli container ([DESCW-2977](https://citz-gdx.atlassian.net/browse/DESCW-2977))
511

deployments/kustomize/image-builds/nginx-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ spec:
2626
dockerStrategy:
2727
from:
2828
kind: DockerImage
29-
name: nginx:1.26.2
29+
name: nginx:1.27.5
3030
type: Docker
3131
output:
3232
to:

deployments/kustomize/image-builds/wordpress-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ spec:
2626
dockerStrategy:
2727
from:
2828
kind: DockerImage
29-
name: wordpress:6.7.1-php8.3-fpm-alpine
29+
name: wordpress:6.8.1-php8.3-fpm-alpine
3030
type: Docker
3131
source:
3232
type: Git

openshift/templates/images/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ Base images are images that would use dockerhub image streams to create an addit
3434
* Creates Sidecar image used for WordPress maintenance and diagnostics.
3535
* ubuntu -> wordpress-sidecar
3636
* `oc process -f openshift/templates/images/sidecar/build.yaml | oc apply -f -`
37+
#### Build Locally
38+
* `docker build -t wordpress-sidecar-run:dev -f openshift/templates/images/sidecar/docker/Dockerfile openshift/templates/images/sidecar/docker`
39+
* verify image `docker run -it wordpress-sidecar-run:dev wp --version --allow-root`
3740

3841
## Naming Conventions
3942
### Base Images

openshift/templates/images/sidecar/docker/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# OpenShift uses version from buildconfig - Don't update
2-
FROM ubuntu:latest
2+
FROM ubuntu:22.04
33

44
ARG CHANGE_USER=0
55

@@ -40,18 +40,18 @@ RUN set -ex; \
4040
# Fix up dpkg to run in a baby-root environment. (Needed for some apt packages).
4141
mv /usr/bin/dpkg /usr/bin/ddpkg ; \
4242
echo '#!/bin/bash\n/usr/bin/ddpkg --force-not-root "$@"\n' > /usr/bin/dpkg ; \
43-
chmod +x /usr/bin/dpkg ; \
43+
chmod +x /usr/bin/dpkg ;
44+
RUN set -ex; \
4445
# Install WP-CLI
45-
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar ; \
46+
curl -L -o ./wp-cli.phar https://github.com/wp-cli/wp-cli/releases/download/v2.12.0/wp-cli-2.12.0.phar ; \
4647
chmod +x wp-cli.phar ; \
47-
mv wp-cli.phar /usr/local/bin/wp ; \
48-
\
48+
mv wp-cli.phar /usr/local/bin/wp ;
4949
# Make a nice git-enabled shell prompt.
5050
#echo "source /usr/local/bin/git-prompt.sh\nexport PS1='\n\[\e[1;32m\]\u\[\e[0;39m\]@\[\e[1;36m\]\h\[\e[0;39m\]:\[\e[1;33m\]\w\[\e[0;39m\]\[\e[1;35m\]\$(__git_ps1 \" (%s)\")\[\e[0;39m\] \[\e[0;39m\]\n$ '\n" >> /home/sidecar/.bashrc ; \
5151
#curl -O https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh ; \
5252
#chmod +x git-prompt.sh ; \
5353
#mv git-prompt.sh /usr/local/bin/git-prompt.sh ; \
54-
\
54+
RUN set -ex; \
5555
# Replace the garbage dash interactive shell with bash when an interactive shell is opened, cleaning up the garbage shell when bash is done.
5656
echo '/bin/bash --login && exit\n' >> /home/sidecar/.shinit ; \
5757
# Make a shell prompt that is kinder to maintenance folk, more informative than "$".

0 commit comments

Comments
 (0)