You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mnemonic.apache.org by yzz127 <gi...@git.apache.org> on 2017/06/05 03:19:29 UTC

[GitHub] incubator-mnemonic pull request #45: MNEMONIC-274 Add another Dockerfile for...

GitHub user yzz127 opened a pull request:

    https://github.com/apache/incubator-mnemonic/pull/45

    MNEMONIC-274 Add another Dockerfile for Ubuntu system

    The existed Dockerfile has described how to setup Mnemonic development environment for CentOS only, so we need another one for Ubuntu, because the Ubuntu also is one of most popular server system.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/yzz127/incubator-mnemonic master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-mnemonic/pull/45.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #45
    
----
commit 16cb782f3d3ca2ae508b775bc918156f5c9d8fac
Author: Yanhui Zhao <ya...@outlook.com>
Date:   2017-06-05T01:19:47Z

    MNEMONIC-274: Add another Dockerfile for Ubuntu system

commit 5d75e0ba155308b3cc6958164c2e98b5584e5371
Author: Yanhui Zhao <ya...@outlook.com>
Date:   2017-06-05T03:02:52Z

    MNEMONIC-274 Add README.md for Dockerfile

commit 134b0c451fefccba7dd2fae7d0a60f09468acb00
Author: Yanhui Zhao <ya...@gmail.com>
Date:   2017-06-05T03:12:00Z

    Update README.md

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-mnemonic pull request #45: MNEMONIC-274 Add another Dockerfile for...

Posted by bigdata-memory <gi...@git.apache.org>.
Github user bigdata-memory commented on a diff in the pull request:

    https://github.com/apache/incubator-mnemonic/pull/45#discussion_r120042228
  
    --- Diff: docker-ubuntu/Dockerfile ---
    @@ -0,0 +1,63 @@
    +#
    +# 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 ubuntu:16.04
    +MAINTAINER Yanhui Zhao (yanhui.zhao@outlook.com)
    +
    +#set up your proxy below, please refer to readme in the Docker folder
    +ARG proxy_host=""
    +ARG proxy_port=""
    +ENV http_proxy ${proxy_host:+"http://${proxy_host}:${proxy_port}"}
    +ENV https_proxy ${http_proxy}
    +ENV HTTP_PROXY ${http_proxy}
    +ENV HTTPS_PROXY ${http_proxy}
    +
    +RUN echo The proxy set : ${http_proxy}
    +
    +RUN apt-get -y update && \
    +    apt-get install -y default-jdk cmake check git maven pkg-config autoconf man build-essential gcc g++ uuid-dev pandoc devscripts flex doxygen
    +
    +RUN apt-get clean
    +    
    +ENV M2_HOME /usr/share/maven
    +ENV M2 $M2_HOME/bin
    +ENV PATH $M2:$PATH
    +ENV JAVA_HOME /usr/lib/jvm/default-java
    +ENV PATH $JAVA_HOME/bin:$PATH
    +
    +RUN mkdir -p /ws
    +RUN 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 630862e82f && 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 /bin/bash -c "source /etc/profile.d/mvn.sh"
    +    
    +RUN cd /ws && git clone https://github.com/apache/incubator-mnemonic.git && \
    +    cd incubator-mnemonic && mvn clean package install
    +
    +ENV MNEMONIC_HOME /ws/incubator-mnemonic
    +
    +#RUN cd /ws/incubator-mnemonic && build-tools/runall.sh -y
    +
    +WORKDIR /ws
    +
    +CMD ["bash"]
    --- End diff --
    
    Please add one blank line in the end of this file.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-mnemonic pull request #45: MNEMONIC-274 Add another Dockerfile for...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-mnemonic/pull/45


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-mnemonic pull request #45: MNEMONIC-274 Add another Dockerfile for...

Posted by bigdata-memory <gi...@git.apache.org>.
Github user bigdata-memory commented on a diff in the pull request:

    https://github.com/apache/incubator-mnemonic/pull/45#discussion_r120042347
  
    --- Diff: docker-ubuntu/README.md ---
    @@ -0,0 +1,74 @@
    +<img src="http://nonvolatilecomputing.github.io/Mnemonic/images/mnemonic_logo.png" width=200 />
    +
    +================================ 
    +
    +This is the "Dockerfile" that will automatically build the environment of this project under ubuntu. 
    +
    +--------------
    +### Features:
    +
    +*What does this Dockerfile do?* 
    +
    +- 1. Build from ubuntu 16.04.
    +- 2. Default is not using proxy. Please see instruction below to set up http/https proxy.
    +- 3. Install dependency packages.
    +- 4. Set up environment variables of paths.
    +- 5. Create /ws folder.
    +- 6. Install pmalloc in /ws
    +- 7. Install nvml in /ws.
    +- 8. Set up maven proxy mvn.sh.
    +- 9. Clone mnemonic code then build/install.  
    +- 10. Go to /ws fold and start bash.  
    +
    +#### How to set up proxy? 
    +
    +Set the argument "http_proxy" for the docker option "--build-arg" as follows
    +```bash
    +  $ docker build -t NAME[:TAG] --build-arg proxy_host="<proxy_host>" proxy_port="<proxy_port>" .
    +```
    +
    +For old version docker v1.10 below, Please replace ARG with ENV and set its value as proxy strings in Dockerfile instead
    +
    +### How to build the docker image from Dockerfile in host OS?
    +Build from git repository
    +
    +```bash
    +  $ docker build -t NAME[:TAG] https://github.com/apache/incubator-mnemonic.git#:docker
    --- End diff --
    
    Please replace the "#:docker" with "#:docker-ubuntu"


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---