Skip to content

Commit

Permalink
Update doc to add docker installation
Browse files Browse the repository at this point in the history
  • Loading branch information
yoanngesquiere committed Mar 21, 2015
1 parent 8f13f71 commit ded0d7e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ All commands shall be ran at the application's root unless otherwise specified.
- Run `composer install` to install back-end dependencies
- Run `npm install` to install front-end dependencies

You can also install Airlines using [Docker](https://www.docker.com/). If you are interested in using this method, just
follow the [guide](doc/docker_installation.md).

### Development

- Run `cp open.json.dist open.json` and edit the latter to define the app's root URL
Expand Down
22 changes: 22 additions & 0 deletions doc/docker_installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Docker installation

To run Airlines in Docker, you need to install Docker and check that the version is greater than 1.2.

To verify your version, run:
```sh
sudo docker --version
```

To upgrade your docker version or to install it, take a look at
[this section](https://docs.docker.com/installation/ubuntulinux/#docker-maintained-package-installation)
of the docker installation guide.

Once you are done with this, you can build your image and run your container:
```sh
sudo docker build -t airlines .
sudo docker run airlines
sudo docker inspect $(sudo docker ps | grep airlines | awk '{ print $(NF) }') | grep IPAddress
```

It will output the IP address of your container. Now, you just have to open a browser, paste the address
and choose app.php or app_dev.php.

0 comments on commit ded0d7e

Please sign in to comment.