├── Dockerfile ├── README.md └── fig.yml /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM tutum/apache-php 2 | RUN apt-get update && apt-get install -yq git 3 | RUN rm -rf /var/lib/apt/lists/* 4 | RUN rm -fr /app 5 | RUN git clone https://github.com/benkeen/generatedata.git /app 6 | RUN composer install 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | A Dockerfile to automatically build generatedata.com found at benkeen/generatedata. This docker container simplifies setup of an apache with the code used for generatedata.com. The image is based off of tutum/apache-php. It simply automatically pulls the code from benkeen/generatedata, puts it in the app directory, and then runs composer install. You will need to point to a mysql database during the setup in order to use it. 2 | 3 | Simply pull the image 4 | > docker pull lai475nathaniel/docker-generatedata 5 | 6 | then start up the server by running 7 | 8 | > docker run --name generatedata -p 80:80 lai475nathaniel/docker-generatedata 9 | 10 | The server should then be running on the IP address of the machine running the service on port 80. 11 | 12 | Additionally the fig file in the repository sets up both a php server with generate data and a mysql server with a schema by the name of "app" to be used by generatedata. Simply run 13 | > fig up 14 | 15 | and it will spin up both the php server and the mysql database in two different containers. On setup of generatedata, use "mysql" as the hostname of the mysql server, and "app" as the database name. 16 | -------------------------------------------------------------------------------- /fig.yml: -------------------------------------------------------------------------------- 1 | app: 2 | build: . 3 | ports: 4 | - "80:80" 5 | links: 6 | - mysql 7 | mysql: 8 | image: mysql:latest 9 | environment: 10 | - MYSQL_ROOT_PASSWORD=root 11 | - MYSQL_DATABASE=app 12 | ports: 13 | - "3306:3306" --------------------------------------------------------------------------------