| commit | e336657dd082609e98aaf890ea3776d9d9a69750 | [log] [tgz] |
|---|---|---|
| author | abhay <abhayk@radisys.com> | Thu Sep 26 11:19:18 2024 +0530 |
| committer | Abhay Kumar <abhayk@radisys.com> | Tue Nov 12 20:23:38 2024 +0000 |
| tree | cda2df50a823a8b57fd07d07ff9a2eb77258078f | |
| parent | e4baadabe6411a09463e226b0228ea7e64f97213 [diff] |
[VOL-5374] Upgrade tools with go version 1.23.1 Change-Id: I12caf4f747f934be1553b6eb0e95b590a111e922 Signed-off-by: abhay <abhayk@radisys.com>
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