Build vnf and restapi containers for ARM 95/50395/2
authorDelia Popescu <delia.popescu@enea.com>
Tue, 9 Jan 2018 09:54:52 +0000 (11:54 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Thu, 11 Jan 2018 16:58:16 +0000 (17:58 +0100)
The root cause of the problem was the installation
of unf_ext packet. The Gemfile.lock in
https://github.com/boucherv-orange/clearwater-live-test
asked for version 0.0.6 and this version was not found for arm.
When it tried to build the package, the conversion from int
to char error was thrown (issue reported here
https://github.com/knu/ruby-unf_ext/issues/15).

As now version 0.0.7.4 is selected, then the vnf docker
images are built without any other errors.

Gemfile.lock was updated in the original repo,
this fix enables vnf and restapi containers build for ARM.

JIRA: FUNCTEST-899

Change-Id: Id2c5fe82cb3705f58a8175fcf0a17f443e9b7d9d
Signed-off-by: Delia Popescu <delia.popescu@enea.com>
(cherry picked from commit 63ec3c39ef720d265fe5a6c9d3a7c5665c2624d2)

build.sh

index 064f3a3..cfeb8f7 100644 (file)
--- a/build.sh
+++ b/build.sh
@@ -12,8 +12,7 @@ docker/components \
 docker/vnf \
 docker/parser \
 docker/restapi"}
-arm64_dirs=${arm64_dirs-$(echo "${amd64_dirs}" | sed -e "s|docker/vnf||" \
-    -e "s|docker/restapi||")}
+arm64_dirs=${arm64_dirs-${amd64_dirs}}
 build_opts=(--pull=true --no-cache --force-rm=true)
 
 find . -name Dockerfile -exec sed -i -e "s|opnfv/functest-core:euphrates|${repo}/functest-core:amd64-euphrates|g" {} +