mnemonic-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject incubator-mnemonic git commit: MNEMONIC-80: Simplify the process of dev. enviroment setup
Date Thu, 11 Aug 2016 22:10:03 GMT
Repository: incubator-mnemonic
Updated Branches:
  refs/heads/master 2d22b745c -> 6fd4b9c01


MNEMONIC-80: Simplify the process of dev. enviroment setup


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

Branch: refs/heads/master
Commit: 6fd4b9c0165376c96f8c379011b73e4360e1ee95
Parents: 2d22b74
Author: Wang, Gang(Gary) <gang1.wang@intel.com>
Authored: Thu Aug 11 15:05:45 2016 -0700
Committer: Wang, Gang(Gary) <gang1.wang@intel.com>
Committed: Thu Aug 11 15:05:45 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/6fd4b9c0/docker/Dockerfile
----------------------------------------------------------------------
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 0000000..8c02bf2
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1,55 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+FROM centos
+MAINTAINER Gang Wang (garyw@apache.org)
+
+ENV proxy_host "172.17.42.1"
+ENV proxy_port "8668"
+ENV http_proxy "http://${proxy_host}:${proxy_port}"
+ENV https_proxy ${http_proxy}
+ENV HTTP_PROXY ${http_proxy}
+ENV HTTPS_PROXY ${http_proxy}
+ENV proxy ${http_proxy}
+
+RUN echo $proxy
+
+RUN yum -y update && yum -y groupinstall 'Development Tools' && \
+    yum -y install java-devel cmake check check-devel libuuid-devel man && yum clean
all
+RUN curl -O http://apache.mirrors.ionfish.org/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
&& \
+    tar xvf apache-maven-3.3.9-bin.tar.gz && \
+    mv apache-maven-3.3.9 /usr/local/apache-maven
+
+ENV M2_HOME /usr/local/apache-maven
+ENV M2 $M2_HOME/bin
+ENV PATH $M2:$PATH
+ENV JAVA_HOME /usr/lib/jvm/java
+ENV PATH $JAVA_HOME/bin:$PATH
+
+RUN mkdir -p /ws && cd /ws && git clone https://github.com/NonVolatileComputing/pmalloc.git
&& \
+    cd pmalloc && mkdir build && cd build && cmake .. &&
make && make install
+
+RUN cd /ws && git clone https://github.com/pmem/nvml.git && \
+    cd nvml && git checkout tags/0.1+b16 && make && make install
+
+RUN echo export MAVEN_OPTS="\" $([[ \"x\" != \"x${proxy_host}\" ]] && echo -DproxySet=\\\"true\\\"
-DproxyHost=${proxy_host} -DproxyPort=${proxy_port}) \"" \
+    > /etc/profile.d/mvn.sh && chmod +x /etc/profile.d/mvn.sh
+RUN cd /ws && git clone https://github.com/apache/incubator-mnemonic.git &&
\
+    cd incubator-mnemonic && source /etc/profile.d/mvn.sh && mvn clean package
install
+
+WORKDIR /ws
+CMD ["bash"]


Mime
View raw message