https://github.com/bashofmann/symfony-demo-kubernetes
https://github.com/bashofmann/symfony-demo-kubernetes
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bashofmann/symfony-demo-kubernetes
- Owner: bashofmann
- License: mit
- Created: 2018-05-16T15:25:20.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T02:06:02.000Z (over 3 years ago)
- Last Synced: 2025-06-10T06:09:56.172Z (about 1 year ago)
- Language: PHP
- Size: 3.34 MB
- Stars: 40
- Watchers: 3
- Forks: 17
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
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
------------
* PHP 7.1.3 or higher;
* PDO-SQLite PHP extension enabled;
* and the [usual Symfony application requirements][1].
Installation
------------
Execute this command to install the project:
```bash
$ composer create-project symfony/symfony-demo
```
[](https://heroku.com/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 :
```bash
$ cd symfony-demo/
$ php bin/console server:run
```
Alternatively, you can [configure a fully-featured web server][2] like Nginx
or Apache to run the application.
Run in Kubernetes
-----------------
```bash
$ docker build -t symfony-demo:1.0.0 .
$ kubectl create -f deployment
```
Tests
-----
Execute this command to run tests:
```bash
$ cd symfony-demo/
$ ./vendor/bin/simple-phpunit
```
[1]: https://symfony.com/doc/current/reference/requirements.html
[2]: https://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html