commit | ab4cd69c49edb22207973b61b3a08cb774210013 | [log] [tgz] |
---|---|---|
author | Girish Gowdra <girish@opennetworking.org> | Thu Feb 13 17:36:54 2020 +0530 |
committer | Girish Gowdra <girish@opennetworking.org> | Sat Feb 15 21:48:26 2020 +0530 |
tree | 05f5c49b9f5f53bf1ef1b443b5aae474d72c57b0 | |
parent | 242b815973d0f8dc2948fd902be756142e378c69 [diff] |
[VOL-2597]: - Create Dockerfile for building docker container with prereq software for building and running openolt agent UT. Change-Id: I0f7d244d3253953b8bfe96598047be1f9a6c7b7b
This repo contains Dockerfile used to generate docker container with prerequisite software for running openolt agent unit tests.
Final docker images are tagged with the image version from the VERSION file.
The VERSION file should be changed using these rules:
Only use containers tagged with <VERSION>
.
Once you are the root folder of the openolt agent repo, execute the below command to build and run the unit tests. Replace VERSION
to use a specific version of the container.
docker run --rm -v $PWD:/app voltha/openolt-test:<VERSION> make test
Details:
-v
bind-mounts the local folder into the container.make build
to build containermake docker-push
to push built container to a registrymake lint
to lint the Dockerfiles