Skip to content

Template project for transitioning old PHP5 projects to Kubernetes

License

Notifications You must be signed in to change notification settings

iz-sathish/tpl-kube-ubuntu14-php5

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template Project for PHP5 -> Kubernetes/Ducker

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

About

Template project for transitioning old PHP5 projects to Kubernetes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Smarty 34.9%
  • Shell 34.1%
  • PHP 24.1%
  • Dockerfile 6.9%