-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2fc3206
commit 211ac4f
Showing
1 changed file
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |