| commit | 88200d31ecf7cbaa4e76367e25a8325953b23757 | [log] [tgz] |
|---|---|---|
| author | Zack Williams <zdw@opennetworking.org> | Thu Apr 02 13:36:41 2020 -0700 |
| committer | Zack Williams <zdw@opennetworking.org> | Thu Apr 02 14:48:18 2020 -0700 |
| tree | c7ee460ee67e09e119f8adcc54f5de7ec08e2a1c | |
| parent | 1f99b66cd5a75975f87dfad85b9b7562335b4638 [diff] |
[VOL-2876] Update grpc-gateway to a version with improved generation of swagger docs Bump the golang and alpine image patch versions Change-Id: Id8c772dd782b29586615d585a4cf6c756da0098c
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