Tagged by CORD Jenkins version-tag job: 3785, for Gerrit patchset: 17550
[VOL-2597]:
- Create Dockerfile for building docker container with prereq software
  for building and running openolt agent UT.

Change-Id: I0f7d244d3253953b8bfe96598047be1f9a6c7b7b
6 files changed
tree: 05f5c49b9f5f53bf1ef1b443b5aae474d72c57b0
  1. CODE_OF_CONDUCT.md
  2. LICENSE
  3. Makefile
  4. README.md
  5. VERSION
  6. docker/
README.md

openolt-test : Docker container with prereqs for running openolt agent unit tests

This repo contains Dockerfile used to generate docker container with prerequisite software for running openolt agent unit tests.

Versioning

Final docker images are tagged with the image version from the VERSION file.

The VERSION file should be changed using these rules:

  • Bump Patch version if:
    • Patch version of a tool has changed.
    • This repo's supporting files have changed (Makefile, readme, etc.) This rule assumes that the containers generated are backwards-compatible; if they are not, bump the major version instead.
  • Bump Minor version if:
    • Minor version of a tool has changed.
    • A new tool has been added.
  • Bump Major version if:
    • Major version of a tool has changed.
  • Bump patch/minor/major version according to semver rules if a Dockerfile is changed.
  • Reset lesser versions if greater versions change.
  • Do not use -dev versions.

Tool Usage

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.

Key Commands

  • make build to build container
  • make docker-push to push built container to a registry
  • make lint to lint the Dockerfiles