[ https://issues.apache.org/jira/browse/MNEMONIC-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16036536#comment-16036536 ]
ASF GitHub Bot commented on MNEMONIC-274: ----------------------------------------- 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.z...@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. > Add another Dockerfile for Ubuntu system > ---------------------------------------- > > Key: MNEMONIC-274 > URL: https://issues.apache.org/jira/browse/MNEMONIC-274 > Project: Mnemonic > Issue Type: New Feature > Components: Docker > Affects Versions: 0.9.0-incubating > Reporter: Wang, Gang > Assignee: Yanhui Zhao > Fix For: 0.9.0-incubating > > > 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. -- This message was sent by Atlassian JIRA (v6.3.15#6346)