Steps (unit tests)
- Install Docker CE for your platform
- Create Work Directory
- Download Docker File (from this GIST) into the work directory
- git clone keystone ( git clone https://git.openstack.org/openstack/keystone ) or other openstack project
- build the docker container
- If the project is not Keystone, or the downloaded directory is different than 'keystone' in your working direcytory, set
OS_PROJECT
environment variable to the name of the project directory - Run:
docker build . --force-rm -t keystone-dev:16.04
(name the tag appropriate to the project name)
- If the project is not Keystone, or the downloaded directory is different than 'keystone' in your working direcytory, set
- Develop code in the cloned directory
- Run unit tests in the docker container
cd ${OS_PROJECT:-keystone}
(if needed)docker run -v `pwd`:/opt/src --rm -t keystone-dev:16.04 tox -epep8,py27,py35
-- NOTE you may pass arguments such as-- --failing
for repeated runs and cleaning up failed tests
If you change/update/modify the requirements.txt or test-requirements.txt, you will need to re-run the docker build command from your work directory.
Steps (PyCharm Remote Interpreter)
- TBD (needs screen shots)