summaryrefslogtreecommitdiffstats
path: root/build/create_repo.sh
AgeCommit message (Collapse)AuthorFilesLines
2020-11-23Enhance repo creation scripts idempotency by supporting cachingBartek Grzybowski1-2/+19
While 'yumdownloader' and 'apt-get download' commands do not re-download packages that are already present in working dir, scripts still need to perform package dependencies resolution which is a time consuming activity hence a feature was added to skip any further actions (download or deps resolution) on packages that are already present locally. For cold versus warm cache the gain in run time is: cold warm RPM 90s 10s DEB 7m 90s Change-Id: Ie502934cff6484844557832251e7ce0991789cfb Issue-ID: OOM-2635 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-30Run docker container in foregroundBartek Grzybowski1-4/+2
This equals current behaviour of running in background and then attaching running container to print logs but will allow wrapper script to inherit exit code from entrypoint script. Change-Id: Ida447ef8024995de6cad81aa2dc857aec36e0d04 Issue-ID: OOM-2615 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-28Support setting custom Docker container name suffixBartek Grzybowski1-9/+14
Change-Id: Ic3e4553442efd4c565c834a80184ff78e978cdba Issue-ID: OOM-2612 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-28Drop docker container cleanup statementBartek Grzybowski1-4/+0
Container is run with "--rm" option hence manual cleanup is not needed in any case. Change-Id: Iafe8287b8486abcd4a44fec102db8bfb89af1b63 Issue-ID: OOM-2612 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-28Fix English in comments; fix script synopsis textBartek Grzybowski1-30/+29
Change-Id: I6a67a8e675bdde8d9febc3edf8205c7516d979b8 Issue-ID: OOM-2612 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-09-08Fix repository directory nameBartek Grzybowski1-1/+1
This fixes a regression bug introduced in 5907acf due to not all 'rhel' path elements updated. Change-Id: I21a7448aa4605f705cfb7a75030d69a0db04319f Issue-ID: OOM-2150 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-04-30Adding support for another packages listsJan Benedikt1-12/+42
Adding support for another packages lists in create_repo script. Additional package lists is for packages which are for example helpful tools for debugging. Issue-ID: OOM-2340 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: If0bcb437809b60d83ed92436adade086314ccfac
2020-04-21Adding support for Ubuntu in create_repo and docker_entrypoint scriptsJan Benedikt1-13/+65
Extend script for creating repository with adding Ubuntu platform support. Issue-ID: OOM-1671 Change-Id: I6b1c63cda18e53277fc2aad6dfa3eceefc9a0023 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
2019-11-05Chaging name of rhel resource directory to rpmJan Benedikt1-3/+3
Changing name of rhel resource directory in "resources/pkg" from rhel to rpm due to platfrom independent repository for all distributions supporting RPM packages. Issue-ID: OOM-2150 Change-Id: Ie5425df8b8550c618440586b495907f86c4cc509 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
2019-10-17Fixing wrong dependency directory in create_repoJan Benedikt1-29/+50
Improving logic of create_repo.sh script. Changed from one common path to two different paths. One path for cloned offline-installer directory and second for resources directory. Issue-ID: OOM-2136 Change-Id: I627db02594c25df172c270ea015f167ea7050ca0 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
2019-10-15Adding platform independent RPM downloadJan Benedikt1-0/+65
Updated onap_rpm.list with new versions of packages. Added scripts for creating centos container in docker with rpm repository. RPM repo is now created in centos container during download phase, but will work on both centos/rhel platforms. Issue-ID: OOM-2094 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: I1b5bfe99da25e6815e85b449304b12fa6036c6b3