Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update php + wordpress versions #31

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

theogainey
Copy link
Contributor

Description

This PR updates the Dockerfile to use php version 8.1 and Wordpress version 6.3. Additionally this PR updates composer.json to use php version 8.1

Closes #16

To Validate

  1. Pull down this branch
  2. Stop and remove any existing containers running sparkpress
  3. Build the Docker containers docker compose build
  4. Start the containers npm run start
  5. Confirm that the newly started container is using php version 8.1. docker exec sparkpress php -v

@theogainey theogainey force-pushed the chore--upgrade-php-wordpress branch 4 times, most recently from b4e1b58 to c73c55c Compare September 14, 2023 15:11
@jonoliver jonoliver force-pushed the chore--upgrade-php-wordpress branch from c73c55c to 285c4e7 Compare September 18, 2023 18:07
Copy link
Contributor

@rise-erpelding rise-erpelding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋 This seems to work fine overall, I just had a question about changing the php version in the docker image for the circleCI pipeline--do we need to, and how can that be validated?

@@ -6,7 +6,7 @@ jobs:
- image: circleci/php:7.1-node-browsers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed this and wondered if the php version needs to be updated here too?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, we should update it here, although we don't have a way to validate it since we don't have circle CI set up for the project. This configuration will likely go away when we address #21 in favor of a Github action, but we can updated it now to keep it in sync.

Dockerfile Outdated

# When changings, also change in .circleci/config.yml
ENV WP_VERSION=5.5
ENV WP_VERSION=6.3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can go ahead and update this to 6.3.1, the latest current version

Copy link
Member

@jonoliver jonoliver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, Theo! Just a few more minor updates needed:

  • Update WordPress version to 6.3.1 from 6.3
  • Update PHP version in Circle CI config

@theogainey theogainey force-pushed the chore--upgrade-php-wordpress branch from 285c4e7 to 6ad0baf Compare September 18, 2023 19:01
@theogainey theogainey force-pushed the chore--upgrade-php-wordpress branch from 6ad0baf to 1a4e078 Compare September 19, 2023 13:23
- modified Dockerfile to support updated php & wordpress versions
- modified composer.json to support updated php version
@theogainey theogainey force-pushed the chore--upgrade-php-wordpress branch from 1a4e078 to b4c169d Compare September 19, 2023 17:30
@theogainey theogainey merged commit b4c169d into main Sep 19, 2023
1 check passed
@theogainey theogainey deleted the chore--upgrade-php-wordpress branch September 19, 2023 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade PHP / Wordpress versions
3 participants