Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9c29ea5

Browse files
Merge pull request #1 from dimadeush/ci-test
checking integration with CI
2 parents a4795ee + 9c7b497 commit 9c29ea5

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

‎.circleci/config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ jobs:
55
machine: true
66
branches:
77
ignore:
8-
- master
98
- develop
109
steps:
1110
- checkout
@@ -20,7 +19,6 @@ jobs:
2019
command: |
2120
make wait-for-db
2221
make drop-migrate
23-
make migrate
2422
make seed
2523
2624
- run:

‎.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ reports/*
1717
!reports/.gitkeep
1818
npm-debug.log
1919
yarn-error.log
20-
.phpunit.result.cache
20+
.phpunit.result.cache

‎docker/development/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ RUN openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private
4747
RUN a2enmod rewrite
4848
RUN a2enmod ssl
4949

50-
# copy source files and run composer
50+
# copy source files and config file
5151
COPY . $APP_HOME
52+
COPY .env.local $APP_HOME/.env
5253

5354
# set working dir
54-
WORKDIR /var/www/laravel
55+
WORKDIR $APP_HOME
5556

5657
# install all PHP dependencies
5758
RUN composer install --no-interaction --no-progress

‎docker/production/Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,23 @@ RUN usermod -u 1000 www-data && groupmod -g 1000 www-data
3232

3333
# put apache and php configs for Laravel
3434
COPY ./docker/hosts/laravel.conf /etc/apache2/sites-available/laravel.conf
35-
RUN a2dissite 000-default.conf && a2ensite laravel.conf
35+
COPY ./docker/hosts/laravel-ssl.conf /etc/apache2/sites-available/laravel-ssl.conf
36+
RUN a2dissite 000-default.conf && a2ensite laravel.conf && a2ensite laravel-ssl
3637
COPY ./docker/production/php.ini /usr/local/etc/php/php.ini
3738

39+
# generate certificates. TODO: change it
40+
RUN openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/ssl-cert-snakeoil.key -out /etc/ssl/certs/ssl-cert-snakeoil.pem -subj "/C=AT/ST=Vienna/L=Vienna/O=Security/OU=Development/CN=example.com"
41+
3842
# enable apache modules
3943
RUN a2enmod rewrite
44+
RUN a2enmod ssl
4045

41-
# copy source files and run composer
46+
# copy source files and config file
4247
COPY . $APP_HOME
48+
COPY .env.prod $APP_HOME/.env
4349

4450
# set working dir
45-
WORKDIR /var/www/laravel
51+
WORKDIR $APP_HOME
4652

4753
# install all PHP dependencies
4854
RUN composer install --no-interaction --no-progress --no-dev

‎readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# PHP Laravel environment
22
Docker environment required to run Laravel (based on official php and mysql docker hub repositories).
33

4+
[![CircleCI](https://circleci.com/gh/dimadeush/docker-apache-php-laravel.svg?style=svg)](https://circleci.com/gh/dimadeush/docker-apache-php-laravel)
5+
46
[Source code](https://github.com/dimadeush/docker-apache-php-laravel.git)
57

68
## Requirements

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /