https://github.com/hacklabr/timtec-php-env
https://github.com/hacklabr/timtec-php-env
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hacklabr/timtec-php-env
- Owner: hacklabr
- Created: 2014-01-23T16:08:33.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-10T17:16:19.000Z (over 12 years ago)
- Last Synced: 2024-04-16T01:27:31.576Z (about 2 years ago)
- Language: Python
- Size: 734 KB
- Stars: 0
- Watchers: 17
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
timtec-php-env
==============
This repository contains a Vagrantfile for building a development VM,
a Dockerfile to setup the docker container with a fully functional PHP
environment and a importd/python web application that is responsible for
an API to manage the containers / environments.
Dockerfile
==========
The container includes an Ubuntu with php-fpm and nginx listening to requests
on port 80
The Document Root (/var/www) is mapped when a container is started
Development
===========
vagrant up
Web App
=======
The web app API:
- GET / returns info about running containers
- GET /user_id/ returns info about user_id container
- GET /user_id/start/ creates (if needed) and starts a container
- GET /user_id/stop/ stops a container
- GET /user_id/restart/ restarts a container
- GET /user_id/rm/ removes/delete the container
- POST /user_id/documents/ pushes a new document root to the container
- GET /user_id/url/ returns the url to access the container