commit | 271afae1a8f0ea0291f1efaf08bc5eb4bc32a58e | [log] [tgz] |
---|---|---|
author | Andrea Campanella <andrea@opennetworking.org> | Wed Apr 28 14:17:22 2021 +0200 |
committer | Andrea Campanella <andrea@opennetworking.org> | Wed Apr 28 14:17:22 2021 +0200 |
tree | 99c4bd9f79324bd5b75e8d20cda02247f4ab2aa4 | |
parent | a13b2c5648d7f90296eb75fddaff9e922db67de3 [diff] |
Correct version of 1.31.1 Change-Id: Ib86e13280a289ecac4692415e1003d5b76f21601
This repo contains Dockerfiles used to generate versioned tool containers.
Final docker images are tagged with the image version from the VERSION file. This allows projects to specify a single "voltha toolchain version" and get all relevant tool versions.
The VERSION file should be changed using these rules:
Only use containers tagged with <VERSION>-tool
.
Do NOT use containers tagged with tool-<TOOL_VERSION>
.
Some examples of how to use these containers:
docker run --rm --user $(id -u):$(id -g) -v $PWD:/app -v gocache:/.cache -v gocache-${VOLTHA_TOOLS_VERSION}:/go/pkg voltha/voltha-ci-tools:${VOLTHA_TOOLS_VERSION}-golang go <args>
docker run --rm --user $(id -u):$(id -g) -v $PWD:/app -v gocache:/.cache -v gocache-${VOLTHA_TOOLS_VERSION}:/go/pkg voltha/voltha-ci-tools:${VOLTHA_TOOLS_VERSION}-golangci-lint golangci-lint <args>
docker run --rm --user $(id -u):$(id -g) -v $PWD:/app voltha/voltha-ci-tools:${VOLTHA_TOOLS_VERSION}-protoc protoc <args>
docker run --rm --user $(id -u):$(id -g) -v $PWD:/app voltha/voltha-ci-tools:${VOLTHA_TOOLS_VERSION}-hadolint hadolint <args>
Details:
--user
is specified so that generated files have sane ownership and permissions.-v
bind-mounts the local folder into the container.-v
is also used by golang containers to bind-mount volumes for caches.make build
to build containersmake lint
to lint the Dockerfilesmake docker-push
to push built containers to a registry