Skip to content

bashofmann/symfony-demo-kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony Demo Application for Kubernetes

This is an example on how to package the symfony demo application into a Docker image and deploy it to Kubernetes.

For the Kubernetes Deployment example see deployment/webapp.yaml.

Symfony Demo Application

The "Symfony Demo Application" is a reference application created to show how to develop Symfony applications following the recommended best practices.

Requirements

Installation

Execute this command to install the project:

$ composer create-project symfony/symfony-demo

Deploy

Usage

There's no need to configure anything to run the application. Just execute this command to run the built-in web server and access the application in your browser at http://localhost:8000:

$ cd symfony-demo/
$ php bin/console server:run

Alternatively, you can configure a fully-featured web server like Nginx or Apache to run the application.

Run in Kubernetes

$ docker build -t symfony-demo:1.0.0 .
$ kubectl create -f deployment

Tests

Execute this command to run tests:

$ cd symfony-demo/
$ ./vendor/bin/simple-phpunit

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages