Skip to content

Commit

Permalink
add dotnet ef proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
LonghronShen committed Jul 29, 2017
1 parent 2fc3206 commit 211ac4f
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
FROM centos:7
RUN echo "root:root" | chpasswd
RUN yum -y install net-tools
FROM microsoft/dotnet:1.0.1-runtime

# install java
ADD http://mirrors.linuxeye.com/jdk/jdk-7u80-linux-x64.tar.gz /usr/local/
#RUN cd /usr/local && tar -zxvf jdk-7u80-linux-x64.tar.gz && rm -f jdk-7u80-linux-x64.tar.gz

ENV JAVA_HOME /usr/local/jdk1.7.0_80
ENV CLASSPATH ${JAVA_HOME}/lib/dt.jar:$JAVA_HOME/lib/tools.jar
ENV PATH $PATH:${JAVA_HOME}/bin

#install mycat
ADD http://dl.mycat.io/1.6-RELEASE/Mycat-server-1.6-RELEASE-20161028204710-linux.tar.gz /usr/local
#RUN cd /usr/local && tar -zxvf Mycat-server-1.6-RELEASE-20161028204710-linux.tar.gz && rm -f Mycat-server-1.6-RELEASE-20161028204710-linux.tar.gz

#download mycat-ef-proxy
ADD https://github.com/PomeloFoundation/Entity-Framework-Core-MyCat-Proxy/releases/download/1.0.0-alpha2/MyCat-Entity-Framework-Core-Proxy.1.0.0-alpha2-netcore100.zip /usr/local/proxy
RUN cd /usr/local/proxy && sed -i -e 's#C:\\MyCat#/usr/local/mycat#g' config.json

VOLUME /usr/local/mycat/conf

EXPOSE 8066 9066
EXPOSE 7066

RUN nohup dotnet Pomelo.EntityFrameworkCore.MyCat.Proxy.dll

CMD ["/usr/local/mycat/bin/mycat", "console"]

0 comments on commit 211ac4f

Please sign in to comment.