mnemonic-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject mnemonic git commit: MNEMONIC-510: Deploy PMDK on Ubuntu Container
Date Mon, 12 Nov 2018 01:29:38 GMT
Repository: mnemonic
Updated Branches:
  refs/heads/master d72d3e002 -> 1e3c9cdf5


MNEMONIC-510: Deploy PMDK on Ubuntu Container


Project: http://git-wip-us.apache.org/repos/asf/mnemonic/repo
Commit: http://git-wip-us.apache.org/repos/asf/mnemonic/commit/1e3c9cdf
Tree: http://git-wip-us.apache.org/repos/asf/mnemonic/tree/1e3c9cdf
Diff: http://git-wip-us.apache.org/repos/asf/mnemonic/diff/1e3c9cdf

Branch: refs/heads/master
Commit: 1e3c9cdf5bae6b14c20cd910d716f5213b12d100
Parents: d72d3e0
Author: Lan Lin <lanlin.dev@gmail.com>
Authored: Sun Nov 4 19:44:05 2018 -0800
Committer: Lan Lin <lanlin.dev@gmail.com>
Committed: Sun Nov 4 19:44:05 2018 -0800

----------------------------------------------------------------------
 docker/docker-Ubuntu/Dockerfile | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mnemonic/blob/1e3c9cdf/docker/docker-Ubuntu/Dockerfile
----------------------------------------------------------------------
diff --git a/docker/docker-Ubuntu/Dockerfile b/docker/docker-Ubuntu/Dockerfile
index a5888a4..9d74a71 100644
--- a/docker/docker-Ubuntu/Dockerfile
+++ b/docker/docker-Ubuntu/Dockerfile
@@ -31,6 +31,9 @@ RUN echo The proxy set : ${http_proxy}
 RUN apt-get -y update && \
     apt-get install -y default-jdk cmake check git pkg-config autoconf man build-essential
gcc g++ uuid-dev pandoc devscripts flex doxygen
 
+# required packages by pmdk
+RUN apt install -y autoconf asciidoc xmlto automake libtool libkmod-dev libudev-dev uuid-dev
libjson-c-dev
+
 RUN apt-get clean
 
 RUN curl -O http://mirror.cogentco.com/pub/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz
&& \
@@ -50,6 +53,21 @@ RUN cd /ws && git clone https://github.com/NonVolatileComputing/pmalloc.git
&& \
 RUN cd /ws && git clone https://github.com/pmem/nvml.git && \
     cd nvml && git checkout 630862e82f && make && make install
 
+
+# deploy ndctl required by pmdk
+RUN cd /ws && git clone https://github.com/pmem/ndctl.git && \
+    cd ndctl && git checkout ndctl-60.y && \
+    ./autogen.sh && ./configure CFLAGS='-g -O0' --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib
&& \
+    make && make check && make install
+
+# deploy pmdk
+RUN cd /ws && git clone https://github.com/pmem/pmdk.git && \
+    cd pmdk && git checkout stable-1.4 && make && \
+#    the test run time is too long
+#    cp src/test/testconfig.sh.example src/test/testconfig.sh && make check &&
\
+    make install
+
+
 RUN touch /etc/profile.d/mvn.sh && chmod +x /etc/profile.d/mvn.sh && \
     if [ "x" != "x${proxy_host}" ]; then echo export MAVEN_OPTS="\" -DproxySet=\\\"true\\\"
-DproxyHost=${proxy_host} -DproxyPort=${proxy_port} \"" > /etc/profile.d/mvn.sh; fi
 


Mime
View raw message