Deployment
The sidecar init container is meant to be init-container part of builder and sidecar pod, provides sidecar with initial repos downloaded from archive service.
-
Make sure you have right application.yaml from indy-sidecar container, you must set
sidecar.archive-api
andsidecar.local-repository
for this to work. -
mount the same application.yaml across this sidecar-init container as well as the sidecar container.
-
Add init-container part to the pod deploymentconfig and mount preSeedRepo volume as the sidecar does (or whatever defined it in application.yaml config file)
Template of the deployment can be found in template/template-sidecar.yaml
Build container image
Use Dockerfile or BuildConfig.yaml(for Openshift) to build the container