summaryrefslogtreecommitdiffstats
path: root/tests/Dockerfile.ci
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2022-08-09 14:18:05 +0200
committerMauro Sardara <msardara@cisco.com>2022-08-09 15:14:10 +0200
commit24a4dec7f91e9b6f0a8279f6eaeebbb35ba49c4f (patch)
tree37c5c4da37dac456c96b33da6ac80667a79705da /tests/Dockerfile.ci
parent8d27045832427a0ea345f48bfb2c42f46a357af1 (diff)
ci: add functional tests to verification/merge jobs
Ref: ICN-732 Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Iabfce26c446c502dc1d8f50da0d607791ce392e9
Diffstat (limited to 'tests/Dockerfile.ci')
-rw-r--r--tests/Dockerfile.ci41
1 files changed, 38 insertions, 3 deletions
diff --git a/tests/Dockerfile.ci b/tests/Dockerfile.ci
index 29f2e9dac..b4c03f7e3 100644
--- a/tests/Dockerfile.ci
+++ b/tests/Dockerfile.ci
@@ -1,5 +1,40 @@
-ARG BASE_IMAGE
+FROM ubuntu:focal
-FROM ${BASE_IMAGE}
+ARG DEBIAN_FRONTEND=noninteractive
+ARG DEB_FOLDER="./packages"
-RUN sudo sed -i 's,secure_path="\(.*\)",secure_path="/hicn-root/bin:\1",' /etc/sudoers
+WORKDIR /hicn-release
+
+################################################################
+# Copy DEB files
+################################################################
+COPY ${DEB_FOLDER} deb
+
+################################################################
+# Install VPP and hicn debs
+################################################################
+ARG VERSION_PATH=/tmp/versions.cmake
+COPY versions.cmake ${VERSION_PATH}
+ARG INSTALL_VPP_SCRIPT=/tmp/install-vpp.sh
+COPY scripts/install-vpp.sh ${INSTALL_VPP_SCRIPT}
+
+RUN bash -x ${INSTALL_VPP_SCRIPT} \
+ && cd deb \
+ && apt-get install -y \
+ iproute2 sudo \
+ ./libhicn_*.deb \
+ ./hicn-light_*.deb \
+ ./hicn-plugin_*.deb \
+ ./libhicnctrl_*.deb \
+ ./libhicnctrl-modules_*.deb \
+ ./libhicntransport-io-modules_*.deb \
+ ./libhicntransport_*.deb \
+ ./facemgr_*.deb \
+ ./hicn-apps_*.deb \
+ && rm ${VERSION_PATH} \
+ && rm -rf deb \
+ && rm -rf /var/lib/apt/lists/* \
+ && apt-get autoremove -y \
+ && apt-get clean
+
+WORKDIR /