Fix os layer build failures 66/2266/1
authorJuha Kosonen <juha.kosonen@nokia.com>
Mon, 2 Mar 2020 12:21:31 +0000 (14:21 +0200)
committerJuha Kosonen <juha.kosonen@nokia.com>
Mon, 2 Mar 2020 12:23:33 +0000 (14:23 +0200)
Following changes implemented:

- pkg-config is required for building recent version of LTP [1]
- do not try to re-create vuls directory

[1] https://github.com/linux-test-project/ltp/issues/649

JIRA: VAL-100

Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
Change-Id: Ib6050dead7e296306ed3f860797fdf6b3944fb43

docker/os/Dockerfile

index 95d8cfe..fc0d033 100644 (file)
@@ -32,6 +32,7 @@ RUN apt-get update && apt-get -y install \
     sqlite3 \
     debian-goodies \
     build-essential \
+    pkg-config \
     autoconf automake autotools-dev m4 \
     linux-headers-generic \
     libaio-dev libattr1-dev libcap-dev
@@ -98,7 +99,6 @@ RUN wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz -P /root/ && \
     git -C /root/go/src/github.com/kotakanbe clone https://github.com/kotakanbe/go-cve-dictionary.git && \
     cd /root/go/src/github.com/kotakanbe/go-cve-dictionary/ && \
     make install && \
-    mkdir /opt/akraino/validation/tests/os/vuls/ && \
     for i in $(seq 2002 "$(date +"%Y")"); do go-cve-dictionary fetchnvd -http-proxy=${HTTP_PROXY} -dbpath /opt/akraino/validation/tests/os/vuls/cve.sqlite3 -years "$i"; done && \
     git -C /root/go/src/github.com/kotakanbe clone https://github.com/kotakanbe/goval-dictionary.git && \
     cd /root/go/src/github.com/kotakanbe/goval-dictionary && \