commit | 49a3545faa7f81604126477ecb2f5510d3db52b1 | [log] [tgz] |
---|---|---|
author | Andrey Pozolotin <posandrey@gmail.com> | Fri Aug 14 22:14:51 2020 +0200 |
committer | Andrey Pozolotin <posandrey@gmail.com> | Mon Aug 24 19:30:20 2020 +0200 |
tree | 4e982fe2446482f1fa03dec173fdb6bc673c4cb2 | |
parent | 88200d31ecf7cbaa4e76367e25a8325953b23757 [diff] |
[VOL-3353] Python CI tools container Change-Id: I2e15c641736ef5e7687b65bb0583b6b5349e79d3
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