sonic-buildimage/dockers/docker-platform-monitor
Kalimuthu-Velappan bc30528341
Parallel building of sonic dockers using native dockerd(dood). (#10352)
Currently, the build dockers are created as a user dockers(docker-base-stretch-<user>, etc) that are
specific to each user. But the sonic dockers (docker-database, docker-swss, etc) are
created with a fixed docker name and common to all the users.

    docker-database:latest
    docker-swss:latest

When multiple builds are triggered on the same build server that creates parallel building issue because
all the build jobs are trying to create the same docker with latest tag.
This happens only when sonic dockers are built using native host dockerd for sonic docker image creation.

This patch creates all sonic dockers as user sonic dockers and then, while
saving and loading the user sonic dockers, it rename the user sonic
dockers into correct sonic dockers with tag as latest.

	docker-database:latest <== SAVE/LOAD ==> docker-database-<user>:tag

The user sonic docker names are derived from 'DOCKER_USERNAME and DOCKER_USERTAG' make env
variable and using Jinja template, it replaces the FROM docker name with correct user sonic docker name for
loading and saving the docker image.
2022-04-28 08:39:37 +08:00
..
base_image_files [submodule update] Add SSD Health tools (#3218) 2019-10-04 10:52:58 -07:00
ssd_tools [submodule update] Add SSD Health tools (#3218) 2019-10-04 10:52:58 -07:00
critical_processes [pmon]: Enable Autorestart of the daemons in PMON for unexpected exit cases (#8326) 2021-08-04 09:57:54 -07:00
docker_init.j2 [y_cable] Support for initialization of new daemon ycable to support ycables (#9125) 2022-01-25 11:10:25 -08:00
docker-pmon.supervisord.conf.j2 Removed python2 dependency for sonic-pcied in sonic-platform-daemons (#10421) 2022-04-09 13:16:50 -07:00
Dockerfile.j2 Parallel building of sonic dockers using native dockerd(dood). (#10352) 2022-04-28 08:39:37 +08:00
lm-sensors.sh [sensors]: Workaround for apparent bug in lm-sensors (#1058) 2017-10-20 11:01:26 -07:00