-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Openeuropa 778: Relax dependencies. (#77)
* OPENEUROPA-778: Remove docker-compose.yml. * OPENEUROPA-778: Add editorconfig file. * OPENEUROPA-778: Relax dependencies on composer.json. * OPENEUROPA-778: Add Packagist badge. * OPENEUROPA-778: Add documentation for docker-compose.yml.dist.
- Loading branch information
1 parent
0b4b024
commit aa7bbec
Showing
7 changed files
with
94 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
|
||
# PHP PSR-2 Coding Standards | ||
# http://www.php-fig.org/psr/psr-2/ | ||
|
||
root = true | ||
|
||
[*.php] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = space | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ phpunit.xml | |
composer.lock | ||
.idea | ||
log.txt | ||
docker-compose.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,33 @@ | ||
# Poetry Client Library | ||
[![Build Status](https://drone.fpfis.eu/api/badges/ec-europa/oe-poetry-client/status.svg)](https://drone.fpfis.eu/ec-europa/oe-poetry-client/) | ||
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/ec-europa/oe-poetry-client/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/ec-europa/oe-poetry-client/?branch=master) | ||
[![Packagist](https://img.shields.io/packagist/v/ec-europa/oe-poetry-client.svg)](https://packagist.org/packages/ec-europa/oe-poetry-client) | ||
|
||
The Poetry Client Library aims to hide Poetry service complexity behind and easy-to-use client library so that | ||
users don't have to worry about building their own request messages nor implementing SOAP interactions. | ||
|
||
## Installation using Docker Compose | ||
|
||
The setup procedure can be simplified by using Docker Compose. | ||
|
||
Requirements: | ||
|
||
- [Docker](https://www.docker.com/get-docker) | ||
- [Docker-compose](https://docs.docker.com/compose/) | ||
|
||
Copy docker-compose.yml.dist into docker-compose.yml. | ||
|
||
You can make any alterations you need for your local Docker setup. However, the defaults should be enough to set the project up. | ||
|
||
Run: | ||
|
||
``` | ||
$ docker-compose up -d | ||
``` | ||
|
||
Then: | ||
|
||
``` | ||
$ docker-compose exec web composer install | ||
``` | ||
|
||
For more information check the documentation [here](docs/00-overview.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: '2' | ||
services: | ||
web: | ||
image: fpfis/httpd-php-dev:7.1 | ||
working_dir: /var/www/html | ||
ports: | ||
- 8080:8080 | ||
volumes: | ||
- .:/var/www/html # Non Mac users. | ||
# - nfsmount:/var/www/html # Mac Users with the nfsmount volume. | ||
environment: | ||
XDEBUG_CONFIG: "remote_enable=1 remote_host=10.254.254.254 remote_port=9000 idekey=PHPSTORM remote_autostart=1" | ||
PHP_IDE_CONFIG: "serverName=Docker" | ||
# For Xdebug setup, run this command in the terminal: | ||
# For Mac users: sudo ifconfig en0 alias 10.254.254.254 255.255.255.0 | ||
# For Linux users: sudo ip addr add 10.254.254.254/32 dev lo label lo:1 | ||
|
||
#### Mac users: uncomment the "volumes" key to enable the NFS file sharing. You can find more information about Docker for Mac here: https://github.com/openeuropa/openeuropa/blob/master/docs/starting/tooling.md#using-docker-on-macos | ||
|
||
#volumes: | ||
# nfsmount: | ||
# driver: local | ||
# driver_opts: | ||
# type: nfs | ||
# o: addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3 | ||
# device: ":${PWD}/" | ||
|
||
#### End Mac users. |