XDev Davinci DevEnv is a docker-compose based environment.
Clone all the XDevDavinci repos <https://bitbucket.org/account/user/xdevdavinci/projects/DAV>_ on a folder
If you are running bay, be sure you stopped all your containers before starting::
bay stop
Pull all the required images from Docker Cloud <https://cloud.docker.com/u/xdevdavinci/repository/list>_ ::
docker-compose pull
Run the containers::
docker-compose up
Config your /etc/hosts file to include this domains::
cat <> /etc/hosts 127.0.0.1 xdevdavinci.com 127.0.0.1 www.xdevdavinci.com 127.0.0.1 xdevdavinciapi.com 127.0.0.1 www.xdevdavinciapi.com EOT
Navigate in your browser to www.xdevdavinci.com
To debug in a service be sure you have all the services running::
docker-compose up
Stop the service you want to debug ::
docker-compose stop gateway
Run the /bin/bash command in the service ::
docker-compose run gateway /bin/bash
In the same directory of Dockerfile in your project create <SERVICE_NAME>.test.yml and create a docker compose for test environment for example::
version: '3' services: sut: build: . command: pytest
The command is the one that runs the tests, in this case pytest, and sut meaning is Service under testing
Content type
Image
Digest
Size
186.7 MB
Last updated
over 7 years ago
docker pull xdevdavinci/redis