I am seeing a very weird behaviour with building /updating wordpress docker image from source (either locally on my laptop or via Cloud Build) and pushing to AR or even GCR. The images after pushing to AR and GCR do not have my updates or even missing files in cases where I am adding new files. Any other codebase Go, Node works fine, issue is see only with WP builds.
FYI I compared layers and Digest on both local and remote image and they look fine.
First of all thank you so much for your reply. I now realize that this is not WP related or any other programming language it is just files updated that are modified / added and not reflecting in the container image so runtime does not matter i feel . I am pasting the Dockerfile and also the CloudBuild file.
Hi @RonEtch , the issue we are facing here is whenever we have new changes to the Wordpress files through CI (cloudbuild file) it will build the new image and deploy the new image to GKE but when we exec into POD we can’t see the new changes in the Wordpress files changes.
You can isolate the troubleshooting by creating identifiable new image name with tags while using the Ci (cloudbuild file), and verify that the exact image is being used when deployed in the GKE cluster.
If you are using Google CD (cloud deploy) you can create an isolated pipeline by following this documentation and run the release to an isolated GKE by following this documentation.
If you need further assistance, you can always file a ticket on our support team.
@RonEtch We are building the new image and tagging with GH commit id (whenever new changes to the wordpress files has been commited to GH it builds new image with the commit id tags using cloudbuild).
The new image commit id tag which has the latest changes has been deployed to the GKE(using cloudbuild) but when we exec into the POD we dont see the latest changes.