Ensure that SDL libraries are in the image
The SDL libraries don't install into the usual /usr/local
portion of the filesystem and thus were not being included
in the final image. This change ensures they are included
by reinstalling them in the final image.
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I7c91e9e10759dd0b8ecadf2d685bf6ef1956e8d1
diff --git a/Dockerfile b/Dockerfile
index 1f8f596..8c111c7 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -73,7 +73,7 @@
make install && \
cd ${STAGE_DIR} && \
rm -rf rapidjson
-
+
#
@@ -96,10 +96,22 @@
#
-
# ----- create final, smaller, image ----------------------------------
FROM ubuntu:18.04
+# package cloud urls for wget
+ARG PC_REL_URL=https://packagecloud.io/o-ran-sc/release/packages/debian/stretch
+ARG PC_STG_URL=https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch
+ARG SDL_VER=1.0.4
+
+# sdl doesn't install into /usr/local like everybody else, and we don't want to
+# hunt for it or copy all of /usr, so we must pull and reinstall it.
+RUN apt-get update
+RUN apt-get install -y libboost-filesystem1.65.1 libboost-system1.65.1 libhiredis0.13 wget
+RUN wget -nv --content-disposition ${PC_STG_URL}/sdl_${SDL_VER}-1_amd64.deb/download.deb && \
+ wget -nv --content-disposition ${PC_STG_URL}/sdl-dev_${SDL_VER}-1_amd64.deb/download.deb &&\
+ dpkg -i sdl-dev_${SDL_VER}-1_amd64.deb sdl_${SDL_VER}-1_amd64.deb
+
RUN rm -fr /var/lib/apt/lists
# snarf the various sdl, rmr, and cpp-framework libraries as well as any binaries