For OSX install dlite according to keboola/connection setup
docker-compose build
or in docker
directory run
make build-images
go to docker
directory
cd ./docker
and then having file parameters_shared.yml
prepared in the current directory(docker) run make command that prepares everything
make docker-dev
this command does the following:
- cleans vendor dir
- prepares cache dir
- runs composer install (requires interaction during installation to type
s
- skip copying parameters.yml ) - set 777 permissions on vendor dir
- copies both parameters files
- adjust logs
- migrates DB - creates DB tables
Script ./adjust-logs.sh
or make adjust-logs
command in docker
dir to adjusts logs to dump the exceptions log directly to the screen. See the adjust-logs.sh
script for more details. This script is called automatically on make docker-dev
command;
run all services
docker-compose up apache
or from docker
dir
make up
The api is then running on the following URL:
http://docker.local:8000/app.php/oauth-v2
To run bash on the running server type:
docker-compose run --rm apache bash
or from docker
dir
make bash
make test
or
docker-compose run --rm apache ./vendor/bin/phpunit
Database is setup and initialized with structure defined in ./Resources/sql
and running on port 8701.
Credentials to db: host: docker.local port: 8701 database: oauth_v2 username: docker passwor: docker ROOT_PASSWORD: root