1 Star 0 Fork 14

zzylml/updiff

forked from 行者.孙/updiff 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 2.62 KB
一键复制 编辑 原始数据 按行查看 历史
sun.mt 提交于 2015-08-27 12:00 . 修改jdk版本
# updiff
#
# VERSION 1.0.4
# use the ubuntu base image provided by dotCloud
FROM ubuntu
MAINTAINER Victor Coisne victor.coisne@dotcloud.com
# make sure the package repository is up to date
RUN echo "deb http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse" > /etc/apt/sources.list
RUN echo "deb http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse" >> /etc/apt/sources.list
RUN echo "deb http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse" >> /etc/apt/sources.list
RUN echo "deb http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse" >> /etc/apt/sources.list
RUN echo "deb http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse" >> /etc/apt/sources.list
RUN echo "deb-src http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse" >> /etc/apt/sources.list
RUN echo "deb-src http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse" >> /etc/apt/sources.list
RUN echo "deb-src http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse" >> /etc/apt/sources.list
RUN echo "deb-src http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse" >> /etc/apt/sources.list
RUN echo "deb-src http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse" >> /etc/apt/sources.list
# RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee /etc/apt/sources.list.d/webupd8team-java.list
# RUN echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
# RUN sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
RUN sudo apt-get update
# RUN sudo apt-get install oracle-java7-installer -y
RUN sudo apt-get install openjdk-7-jdk -y
# ENV JAVA_HOME /usr/lib/jvm/java-7-oracle/
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64/
ENV PATH $PATH:$JAVA_HOME/bin
# install maven
RUN sudo apt-get install maven -y
# install curl
RUN sudo apt-get install curl -y
# build updiff
RUN curl -sf -o $HOME/updiff-1.0.4.tar.gz -L https://github.com/soenter/updiff/archive/v1.0.4.tar.gz
RUN tar -zxvf $HOME/updiff-1.0.4.tar.gz -C $HOME/
RUN mvn -f $HOME/updiff-1.0.4/pom.xml clean package -DskipTests=true -Pchina
# install upper
RUN mv $HOME/updiff-1.0.4/updiff-upper/target/updiff-upper-1.0.4-assembly.tar.gz $HOME/
RUN tar -zxvf $HOME/updiff-upper-1.0.4-assembly.tar.gz -C $HOME/
ENV UPPER_HOME $HOME/updiff-upper-1.0.4
ENV PATH $UPPER_HOME/bin:$PATH
# run updiff
# Set default container command
ENTRYPOINT $UPPER_HOME/bin/upper
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/zzylml/updiff.git
git@gitee.com:zzylml/updiff.git
zzylml
updiff
updiff
master

搜索帮助