aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2020-08-05 15:49:30 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2020-08-05 15:49:30 +0200
commit9b25801f4563dc0f190d9c8ba9c8a0715f66aa08 (patch)
tree8d2d076f8029de8b0a2032ebbeb258e6d1d68f3c /docker
parent32eb7687bf7b8440aa87805480789ef61ae65ec9 (diff)
Set CFLAGS="-O0" when cross-compiling lxml
Change-Id: I57ae3a76d1838ccde2699a1a206487079c7f2fae Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/core/Dockerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/core/Dockerfile b/docker/core/Dockerfile
index 58389734..d8f1672e 100644
--- a/docker/core/Dockerfile
+++ b/docker/core/Dockerfile
@@ -6,6 +6,11 @@ ARG OPENSTACK_TAG=master
RUN apk --no-cache add --update python3 py3-pip bash git mailcap libxml2 libxslt && \
apk --no-cache add --virtual .build-deps --update \
python3-dev build-base libxml2-dev libxslt-dev && \
+ case $(uname -m) in aarch*|arm*) CFLAGS="-O0" \
+ pip3 install --no-cache-dir \
+ -chttps://opendev.org/openstack/requirements/raw/branch/$OPENSTACK_TAG/upper-constraints.txt \
+ -chttps://git.opnfv.org/functest-xtesting/plain/upper-constraints.txt?h=$BRANCH \
+ lxml && \
git init /src/functest-xtesting && \
(cd /src/functest-xtesting && \
git fetch --tags https://gerrit.opnfv.org/gerrit/functest-xtesting $BRANCH && \