Skip to main content

Scripts

Scripts are included in container images to simplify development work and to enable testing and hotfixes in running environments. What scripts are available and how to use them is described in this chapter.

The change.sh script may be used to update repositories to development branches. Different targets may be passed as a first parameter and existing branch names as a second. The availability of targets depends on the container it is run in.

In this example, the main branch of osism/ansible-collection-services is used in the osism-ansible container.

docker exec -u root -it osism-ansible /change.sh services main

The respective container should always be restarted after a change.

docker restart osism-ansible

If something has been changed in the defaults and is to be tested, this must be changed in the inventory reconciler service. Regardless of which of the Ansible services the customised defaults are intended for.

docker exec -u root -it manager-inventory_reconciler-1 /change.sh defaults main
docker restart manager-inventory_reconciler-1