Skip to content
/ tpl-kube-ubuntu14-php5 Public template

Template project for transitioning old PHP5 projects to Kubernetes

License

Notifications You must be signed in to change notification settings

jgz/tpl-kube-ubuntu14-php5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template Project for PHP5 -> Kubernetes/Docker

This project serves as a template for transitioning old websites that require php5 to containers that can run in a modern kubernetes/ducker cluster.

Local Development

All files in src/ will be hosted at the web root.

Build the image with docker compose.

docker compose build

Launch it.

docker compose up

Site will be available at http://localhost:8080/

Extending this template

The main way you would extend this is by updating the DockerFile to load a different base image and then modifying it from there to suit your needs, 

Github actions

This project contains 2 github actions that can be used to build the image and helm chart and deploy them in various ways when a release is published.

ghcr-docker-publish.yml is a standard docker build action that will build and push the image to GHCR or Docker Hub and attach the chart to the release.

ecr-s3-publish.yml is designed to publish images to a private AWS ECR repository and a helm repository hosted on s3.  guide