summaryrefslogtreecommitdiffstats
path: root/ansible/docker
AgeCommit message (Collapse)AuthorFilesLines
2019-01-31Merge "Fix broken docker build due to pip-19.0"Michal Ptacek1-3/+3
2019-01-24Enable to build ansible image out of git directoryPetr Ospalý1-6/+4
Inside the build_ansible_image.sh is a variable (label for docker image) which is set to git commit hash. This is fine but you can just copy and move ansible directory elsewhere out of git and this script breaks because of this. This change preserve previous functionality but only if the script is run inside a git repository otherwise it will skip setting the label for the built docker image. Change-Id: I23f828542efddde21d1c96116de7b20272ef23ef Issue-ID: OOM-1575 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-24Fix broken docker build due to pip-19.0Petr Ospalý1-3/+3
pip-19.0 fails to build with the option --no-cache-dir Change-Id: I6494c6c6b4dc49d4fbd2ce657ed9824c5b3847e3 Issue-ID: OOM-1607 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-17Fix docker config handling in offline installerMichal Zegan1-0/+1
This fixes adding of dns address to /etc/docker/daemon.json to always use infra's ip address instead of possibly using it's hostname. Also similar change is done in handling of /etc/resolv.conf in infrastructure.yml. Ip address is specified by the "cluster_ip" variable placed on a host. Inventory specifies ip for everything except resource server (just for consistency). Change-Id: I2baa3f4c7d69b8dff109b5f8ae984134caf2af7d Issue-ID: OOM-1573 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-01-07Add support for plain files mounting into chrootPetr Ospalý1-11/+26
In this commit I tried to follow a behaviour of docker. If mounted path does not exist then it will handle it as a directory - it creates it and the mountpoint is expected to be a directory also. If the mounted path is a plain file it will do file bind mounting. The mountpoint must be a plain file. Change-Id: Ie8b29442c8ebb8da389ba6c9a152a49d8cf6e9be Issue-ID: OOM-1575 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-01-03Add /etc/hosts to the chroot environmentPetr Ospalý1-1/+2
This will change in a future commit to be little more flexible. As of now it fixes some usage when host system has defined some custom resolving which are needed. Change-Id: Ifea2ba087982006c0a399d1b225d7ab13f7e94da Issue-ID: OOM-1551 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Merge "Add a wrapper script to run ansible in chroot"Tomáš Levora1-0/+465
2018-12-19Merge "Add .gitignore to docker directory"Petr Ospalý1-0/+3
2018-12-19Add a wrapper script to run ansible in chrootPetr Ospalý1-0/+465
Script uses namespaces and overlayfs to be more robust. Also it supports bind mounting to extend the chroot with external files and directories. Issue-ID: OOM-1551 Change-Id: I8c554e1b86fca86f86e6c0d0e1b106c97a08ef15 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Add a script to convert the docker into chrootPetr Ospalý1-0/+220
The docker image will be exported into a tar archive containing the chroot directory Issue-ID: OOM-1551 Change-Id: I8709ffd59156243e42bebbaf03838120149d47b0 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Add .gitignore to docker directoryPetr Ospalý1-0/+3
To avoid including the created image in the git by accident Issue-ID: OOM-1551 Change-Id: I7144a063ed45ee8511912adb2aa1024965d452d0 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2018-12-19Add ansible docker imagePetr Ospalý2-0/+86
Dockerfile and script for building the image Change-Id: If1e83095463ae209e284ba92898447a1205a2244 Issue-ID: OOM-1551 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>