Skip to content

Commit fb5ca70

Browse files
committed
update schema + fix travis
1 parent cceaf01 commit fb5ca70

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

.travis.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,23 @@ services:
77
- docker
88

99
before_install:
10-
- mkdir symfony
10+
# docker install
11+
- sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-precise main" > /etc/apt/sources.list.d/docker.list'
12+
- sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
13+
- sudo apt-get update
14+
- sudo apt-key update
15+
- sudo apt-get -qqy -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install docker-engine=1.11.1-0~precise
1116
- sudo rm /usr/local/bin/docker-compose
1217
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
1318
- chmod +x docker-compose
1419
- sudo mv docker-compose /usr/local/bin
20+
- docker-compose -v
21+
- docker -v
22+
# symfony application folder
23+
- mkdir symfony
24+
- line_old='../../sites/lab/symfony-rest-beer-edition:/var/www/symfony'
25+
- line_new='symfony:/var/www/symfony'
26+
- sed -i "s%$line_old%$line_new%g" docker-compose.yml
1527

1628
script:
1729
- docker-compose up -d

README.md

+11-8
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/maxpou/docker-symfony.svg?branch=master)](https://travis-ci.org/maxpou/docker-symfony)
44

5-
*Credit: this is a kind of fork from [eko/docker-symfony](https://github.com/eko/docker-symfony). Thanks to him :-)*
6-
7-
![](http://www.maxpou.fr/images/articles/symfony-docker/schema.png)
5+
![](http://www.maxpou.fr/images/articles/symfony-docker/schema-v2.png)
86

97
## Installation
108

@@ -14,7 +12,15 @@
1412
$ git clone https://github.com/maxpou/docker-symfony
1513
```
1614

17-
2. Move your Symfony project into symfony folder
15+
2. In the docker-compose file, indicate where's your Symfony project
16+
17+
```yml
18+
services:
19+
php:
20+
volumes:
21+
- path/to/your/symfony-project:/var/www/symfony
22+
```
23+
1824
3. Build containers with (with and without detached mode)
1925
2026
```bash
@@ -40,7 +46,7 @@
4046
4147
**Note:** If it's empty, run `docker inspect $(docker ps -f name=db -q) | grep IPAddress` instead.
4248

43-
2. Update app/config/parameters.yml (adapt hosts according to previous results)
49+
2. Update app/config/parameters.yml
4450

4551
```yml
4652
# path/to/sfApp/app/config/parameters.yml
@@ -158,7 +164,4 @@ Also, while creating your Pull Request on GitHub, please write a description whi
158164

159165
## TODO
160166

161-
- [ ] Update diagram:
162-
* indicate ES/Kibana ports
163-
* remove code container
164167
- [ ] Upgrade ELK stack + install [Timelion](https://github.com/elastic/timelion) plugin <3

0 commit comments

Comments
 (0)