Skip to content
This repository has been archived by the owner on Jan 28, 2019. It is now read-only.

Commit

Permalink
Port to docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Kaperys committed May 17, 2017
1 parent 10fc2a6 commit 2a0c832
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 92 deletions.
86 changes: 0 additions & 86 deletions container

This file was deleted.

10 changes: 4 additions & 6 deletions doc/04-development.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
It is recommended to use the included Docker container when developing the library. It contains the required php extensions for running the example files and test suite.

## Using the container
Included in the root of the project is a `container` bash file. This is a basic wrapper for the included Docker container. You can use the `container` file to easily manager your Docker container.
You can use `docker-compose` to build and run the container. Simply run the following commands:

```bash
./container start
./container ssh
```
- `docker-compose up`
- `docker-compose run financial`

The above will start the Docker instance and 'ssh' into the box. The mount point is `/src` locally, to `/var/cli/financial` on the container.
The above will start the Docker instance and 'ssh' into the box. The mount point is `./` locally, to `/var/cli/financial` in the container.
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '3'

services:
financial:
container_name: financial
hostname: financial
build: .
volumes:
- .:/var/cli/financial

0 comments on commit 2a0c832

Please sign in to comment.