Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't Merge - Doctrine config #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
FROM php:7.0-apache

RUN apt-get update \
&& apt-get install -y git zlib1g-dev \
&& docker-php-ext-install zip \
&& a2enmod rewrite \
RUN apt-get update

RUN apt-get install -y git
RUN apt-get install -y zlib1g-dev

RUN docker-php-ext-install zip
RUN docker-php-ext-install pdo_mysql

RUN a2enmod rewrite \
&& sed -i 's!/var/www/html!/var/www/public!g' /etc/apache2/sites-available/000-default.conf \
&& mv /var/www/html /var/www/public \
&& curl -sS https://getcomposer.org/installer \
&& mv /var/www/html /var/www/public

RUN curl -sS https://getcomposer.org/installer \
| php -- --install-dir=/usr/local/bin --filename=composer

WORKDIR /var/www
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -16,5 +16,10 @@ docker-compose up
For the first install, **Docker** may take some time as it will download the
images it requires. For subsequent runs, the start up time should be much faster.

3. View the test page:
3. Run init script
```
docker-compose exec app ./docker-init.sh
```

4. View the test page:
http://localhost:8080/
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -6,7 +6,8 @@
"require": {
"php": "^7.0",
"zendframework/zend-component-installer": "^1.0",
"zendframework/zend-mvc": "^3.0.1"
"zendframework/zend-mvc": "^3.0.1",
"doctrine/doctrine-orm-module": "^1.1"
},
"autoload": {
"psr-4": {
Loading