Migrate docker support to meson
- bmcweb seems to have x86 docker support which was broken
due to build system migration.
- This commit would migrate the docker to leverage the meson
build system.
- There are a couple of changes that are needed to for meson :
- Right now meson does not support the subprojects to be downloaded
elsewhere other than subprojects directory, because of that we
cannot delete the source directory in the bmcweb-base container as
that affect the incremental builds.
- Docker infrastructure had now does not by-default allow DNS lookups
for the latest rpm-based distributions, because of which I need to
add --network to the base container(so that apt update succeeds)
Tested By:
- Was able to successfully compile bmcweb & tests in a container and
was able to get the build directory out of the container to the host
machine post completion.
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: Ica23bd3de22e262a27c91167181161fc459cda0d
diff --git a/Dockerfile b/Dockerfile
index 978a4c3..8155764 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,7 +4,7 @@
ADD . /source
-RUN cmake --build .
+RUN ninja -C /source/build
RUN mkdir -p /usr/share/www