forked from supermy/mytools
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
20 changed files
with
145 additions
and
138 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
docker build -t jamesmo/debian:7 mydebian | ||
docker build -t jamesmo/jre:7 myjre7 | ||
docker build -t jamesmo/jdk:7 myjava7 | ||
docker build -t jamesmo/solr:4.10.2 mysolr | ||
|
||
docker build -t jamesmo/kafka:0.8 mykafka | ||
docker build -t jamesmo/rabbitmq_base:3.5 myrabbitmq | ||
docker build -t jamesmo/rabbitmq:3.5 myrabbitmq/rabbitmq | ||
|
||
docker build -t jamesmo/myflume:latest myflume | ||
|
||
|
||
docker build -t jamesmo/storm_base:0.9.3 mystorm/storm | ||
docker build -t jamesmo/storm-nimbus:0.9.3 mystorm/storm-nimbus | ||
docker build -t jamesmo/storm-supervisor:0.9.3 mystorm/storm-supervisor | ||
docker build -t jamesmo/storm-ui:0.9.3 mystorm/storm-ui |
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3,27 +3,32 @@ FROM debian:latest | |
#2015-01-24修订,中文语言 | ||
MAINTAINER JamesMo <[email protected]> | ||
|
||
RUN sed -i '1,3d' /etc/apt/sources.list | ||
RUN echo '#hello'>> /etc/apt/sources.list | ||
#RUN sed -i '1,3d' /etc/apt/sources.list | ||
|
||
RUN sed -i '1a \ | ||
RUN sed -i '4a \ | ||
deb http://mirrors.163.com/debian/ wheezy main non-free contrib \n \ | ||
deb http://mirrors.163.com/debian/ wheezy-proposed-updates main contrib non-free \n \ | ||
deb http://mirrors.163.com/debian-security/ wheezy/updates main contrib non-free \n \ | ||
deb-src http://mirrors.163.com/debian/ wheezy main non-free contrib \n \ | ||
deb-src http://mirrors.163.com/debian/ wheezy-proposed-updates main contrib non-free \n \ | ||
deb-src http://mirrors.163.com/debian-security/ wheezy/updates main contrib non-free \n \ | ||
deb http://ftp.sjtu.edu.cn/debian/ wheezy main non-free contrib \n \ | ||
deb http://ftp.sjtu.edu.cn/debian/ wheezy-proposed-updates main contrib non-free \n \ | ||
deb http://ftp.sjtu.edu.cn/debian-security/ wheezy/updates main contrib non-free \n \ | ||
deb-src http://ftp.sjtu.edu.cn/debian/ wheezy main non-free contrib \n \ | ||
deb-src http://ftp.sjtu.edu.cn/debian/ wheezy-proposed-updates main contrib non-free \n \ | ||
deb-src http://ftp.sjtu.edu.cn/debian-security/ wheezy/updates main contrib non-free \n \ | ||
' /etc/apt/sources.list | ||
|
||
# 慢 | ||
# deb http://ftp.sjtu.edu.cn/debian/ wheezy main non-free contrib \n \ | ||
# deb http://ftp.sjtu.edu.cn/debian/ wheezy-proposed-updates main contrib non-free \n \ | ||
# deb http://ftp.sjtu.edu.cn/debian-security/ wheezy/updates main contrib non-free \n \ | ||
# deb-src http://ftp.sjtu.edu.cn/debian/ wheezy main non-free contrib \n \ | ||
# deb-src http://ftp.sjtu.edu.cn/debian/ wheezy-proposed-updates main contrib non-free \n \ | ||
# deb-src http://ftp.sjtu.edu.cn/debian-security/ wheezy/updates main contrib non-free \n \ | ||
|
||
RUN cat /etc/apt/sources.list | ||
|
||
RUN apt-get -qq update && apt-get -qq upgrade | ||
|
||
RUN apt-get -y update | ||
#&& apt-get -y upgrade | ||
|
||
RUN apt-get install -qq -y curl wget sudo | ||
|
||
RUN apt-get -y install locales && \ | ||
sed -i 's/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/' /etc/locale.gen && \ | ||
|
@@ -33,21 +38,26 @@ RUN apt-get -y install locales && \ | |
export LANG=zh_CN.UTF-8 && \ | ||
locale | ||
|
||
RUN apt-get install -qq curl | ||
RUN apt-get -qq install wget | ||
RUN apt-get -qq install sudo | ||
|
||
# grab gosu for easy step-down from root | ||
RUN gpg --keyserver pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 | ||
RUN curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture)" \ | ||
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture).asc" \ | ||
&& gpg --verify /usr/local/bin/gosu.asc \ | ||
&& rm /usr/local/bin/gosu.asc \ | ||
&& chmod +x /usr/local/bin/gosu | ||
|
||
RUN apt-get -y update && apt-get install -qq -y unzip | ||
|
||
#--net=none | ||
RUN wget https://github.com/jpetazzo/pipework/archive/master.zip | ||
RUN unzip master.zip | ||
|
||
RUN cp pipework-master/pipework /usr/local/bin/ | ||
RUN chmod +x /usr/local/bin/pipework | ||
#RUN pipework kbr0 test1 172.17.1.3/[email protected] | ||
#RUN brctl show | ||
#RUN ip a | ||
|
||
RUN apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
|
||
ENV LANG zh_CN.UTF-8 | ||
ENV LANGUAGE zh_CN:zh | ||
|
||
#userage | ||
#docker build -t mydebian mydebian | ||
#docker build -t jamesmo/debian:7 mydebian |
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,17 @@ | ||
#源和中文环境配置 | ||
base: | ||
build: . | ||
ports: | ||
- "22" | ||
volumes_from: | ||
- data | ||
|
||
#常用工具集合 | ||
data: | ||
image: busybox | ||
command: /bin/true | ||
volumes: | ||
- /Users/moyong/docker-share/www/:/data/www/ | ||
- /Users/moyong/docker-share/logs/web/:/usr/local/nginx/logs/ | ||
- /tmp/:/keys | ||
image: jamesmo/debian:7 | ||
# ports: | ||
# - "22" | ||
# volumes_from: | ||
# - data | ||
# | ||
##常用工具集合 | ||
#data: | ||
# image: busybox | ||
# command: /bin/true | ||
# volumes: | ||
# - /Users/moyong/docker-share/www/:/data/www/ | ||
# - /Users/moyong/docker-share/logs/web/:/usr/local/nginx/logs/ | ||
# - /tmp/:/keys | ||
|
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#shell 定制启动脚本;fig 启动脚本的名称与父目录相关,不能指定 | ||
|
||
#启动dns服务器,指定域名 aabb | ||
docker run --name dns -v /var/run/docker.sock:/docker.sock phensley/docker-dns \ | ||
--domain aabb.com | ||
docker logs -f dns | ||
#启动容器的时候指定DNS服务器,可选 使用--no-recursion 禁止外网访问 | ||
docker run -it --dns $(docker inspect -f '{{.NetworkSettings.IPAddress}}' dns) \ | ||
--dns-search aabb.com debian:wheezy bash | ||
>cat /etc/resolv.conf | ||
nameserver 172.17.0.22 | ||
search aabb.com | ||
>ping trusting_jang.aabb.com | ||
PING trusting_jang.aabb.com (172.17.0.23): 48 data bytes | ||
56 bytes from 172.17.0.23: icmp_seq=0 ttl=64 time=0.074 ms |
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
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,15 +1,17 @@ | ||
FROM mydebian_base | ||
FROM jamesmo/debian:7 | ||
|
||
## Install Oracle JDK | ||
RUN wget --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" \ | ||
http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz | ||
http://download.oracle.com/otn-pub/java/jdk/7u76-b13/jdk-7u76-linux-x64.tar.gz | ||
|
||
RUN mkdir /opt/jdk | ||
RUN tar -zxf jdk-7u67-linux-x64.tar.gz -C /opt/jdk | ||
RUN rm jdk-7u67-linux-x64.tar.gz | ||
RUN update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.7.0_67/bin/java 100 | ||
RUN update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.7.0_67/bin/javac 100 | ||
ENV JAVA_HOME /opt/jdk/jdk1.7.0_67/ | ||
RUN tar -zxf jdk-7u76-linux-x64.tar.gz -C /opt/jdk | ||
RUN rm jdk-7u76-linux-x64.tar.gz | ||
|
||
RUN update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.7.0_76/bin/java 100 | ||
RUN update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.7.0_76/bin/javac 100 | ||
|
||
ENV JAVA_HOME /opt/jdk/jdk1.7.0_76/ | ||
|
||
RUN apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
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,6 +1,6 @@ | ||
#源和中文环境配置 | ||
base: | ||
build: . | ||
image: jamesmo/jdk:7 | ||
ports: | ||
- "22" | ||
volumes_from: | ||
|
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,19 +1,20 @@ | ||
FROM mydebian_base | ||
FROM jamesmo/debian:7 | ||
|
||
RUN wget --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" \ | ||
http://download.oracle.com/otn-pub/java/jdk/7u75-b13/server-jre-7u75-linux-x64.tar.gz | ||
http://download.oracle.com/otn-pub/java/jdk/7u76-b13/server-jre-7u76-linux-x64.tar.gz | ||
|
||
RUN mkdir /opt/jre | ||
RUN tar -zxf server-jre-7u75-linux-x64.tar.gz -C /opt/jre | ||
RUN rm server-jre-7u75-linux-x64.tar.gz | ||
RUN update-alternatives --install /usr/bin/java java /opt/jre/jdk1.7.0_75/bin/java 100 | ||
RUN update-alternatives --install /usr/bin/javac javac /opt/jre/jdk1.7.0_75/bin/javac 100 | ||
RUN update-alternatives --install /usr/bin/jar jar /opt/jre/jdk1.7.0_75/bin/jar 100 | ||
RUN tar -zxf server-jre-7u76-linux-x64.tar.gz -C /opt/jre | ||
RUN rm server-jre-7u76-linux-x64.tar.gz | ||
|
||
RUN update-alternatives --install /usr/bin/java java /opt/jre/jdk1.7.0_76/bin/java 100 | ||
RUN update-alternatives --install /usr/bin/javac javac /opt/jre/jdk1.7.0_76/bin/javac 100 | ||
RUN update-alternatives --install /usr/bin/jar jar /opt/jre/jdk1.7.0_76/bin/jar 100 | ||
|
||
#docker镜像不保存当前状态,状态写在配置文件里面 | ||
RUN sed -i '1a JAVA_HOME="/opt/jre/jdk1.7.0_75/"' /etc/profile | ||
RUN sed -i '1a JAVA_HOME="/opt/jre/jdk1.7.0_76/"' /etc/profile | ||
|
||
ENV JAVA_HOME /opt/jre/jdk1.7.0_75/ | ||
ENV JAVA_HOME /opt/jre/jdk1.7.0_76/ | ||
|
||
RUN apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
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,6 +1,6 @@ | ||
#源和中文环境配置 | ||
base: | ||
build: . | ||
build: jamesmo/jre:7 | ||
ports: | ||
- "22" | ||
volumes_from: | ||
|
Oops, something went wrong.