sonic-buildimage/dockers/docker-fpm-gobgp
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
..
critical_processes [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
daemons Add bgp container with gobgp (#358) 2017-03-02 11:33:46 -08:00
Dockerfile.j2 Parallel building of sonic dockers using native dockerd(dood). (#10352) 2022-04-28 08:39:37 +08:00
gobgpd.conf.j2 [config] Fix an issue that bgp asn data type is not consistent (#953) 2017-09-13 21:23:06 -07:00
isolate.j2 [ConfigDB] Move all BGP configuration into DB (#861) 2017-08-08 16:23:58 -07:00
start.sh [frr] Reduce Calls to SONiC Cfggen (#5176) 2020-08-17 15:47:42 -07:00
supervisord.conf [dockers][supervisor] Increase event buffer size for process exit listener; Set all event buffer sizes to 1024 (#7083) 2021-03-27 21:14:24 -07:00
unisolate.j2 [ConfigDB] Move all BGP configuration into DB (#861) 2017-08-08 16:23:58 -07:00
zebra.conf.j2 Generate interface table to have an entry designated to default VRF. (#2848) 2019-06-10 14:02:55 -07:00