diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2016-07-12 15:03:55 +0200 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2016-07-12 15:07:29 +0200 |
commit | eabbbf82217faac0e9563b1372464e797bd71b32 (patch) | |
tree | 9bbfe1736eae85f6ff5bb57c1b4e01bd71c7946c /patches/fuel-plugin-opendaylight | |
parent | d3e30dfb0671fede8ba867e6559f447e30a2eff3 (diff) |
ODL wget: --no-check-certificate for local cache.
Change-Id: Idbc45b4d1aeddf5450b756d23faf56c95fccc975
Diffstat (limited to 'patches/fuel-plugin-opendaylight')
-rw-r--r-- | patches/fuel-plugin-opendaylight/0003-FIXME-ODL-wget-no-check-certificate-for-cache.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/patches/fuel-plugin-opendaylight/0003-FIXME-ODL-wget-no-check-certificate-for-cache.patch b/patches/fuel-plugin-opendaylight/0003-FIXME-ODL-wget-no-check-certificate-for-cache.patch new file mode 100644 index 00000000..b57de503 --- /dev/null +++ b/patches/fuel-plugin-opendaylight/0003-FIXME-ODL-wget-no-check-certificate-for-cache.patch @@ -0,0 +1,42 @@ +From: Alexandru Avadanii <Alexandru.Avadanii@enea.com> +Date: Tue, 12 Jul 2016 14:26:22 +0200 +Subject: [PATCH] FIXME: ODL wget: --no-check-certificate for cache. + +ODL tarball is normally fetched from nexus.opendaylight.org domain, +which has a very limited bandwidth, taking up to 10-15mins for our +build server to download the ODL archive at each ISO build. +This adds up to 15-25% of each ISO build time spent on downloading +ODL archive. +Therefore, we chose to set up a local HTTPS cache of nexus repos, +(just for the sake of not hardcoding the URL in our Makefile), +and just disable certificate check for wget from local URL. + +Allow using a HTTPS local cache, so we don't override the whole +URL of the ODL archive. Our local cache has HTTPS enabled, but the +certificate won't match the domain name. + +FIXME: This patch is only needed if you have a local cache of +nexus.opendaylight.org! + +Only use this option if you are otherwise convinced of the site's +authenticity, or if you really don't care about the validity of +its certificate. + +Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> +--- + pre_build_hook | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pre_build_hook b/pre_build_hook +index 4785917..c3dd664 100755 +--- a/pre_build_hook ++++ b/pre_build_hook +@@ -64,7 +64,7 @@ function cleanup { + } + + function download { +- wget "$1" -qO $2 ++ wget --no-check-certificate "$1" -qO $2 + } + + function unpack { |