commit | d84cc444457c52e0b7110f86aa9de3d37536a5b7 | [log] [tgz] |
---|---|---|
author | Kent Hagerman <khagerma@ciena.com> | Wed Jan 29 17:09:14 2020 -0500 |
committer | Kent Hagerman <khagerma@ciena.com> | Wed Jan 29 17:09:14 2020 -0500 |
tree | df865b4091726459a2b0647b26f795fdbc492a33 | |
parent | c548705dc0ca3efad26436ed3164af963a2409ed [diff] |
Fixed an issue where protoc was failing on jenkins. The protoc container was failing due to a kernel bug triggered when using chmod in a layered file system. Change-Id: I7efb49c834bb6823e851a7fb0c7f282e5db30364
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