Skip to content

Commit

Permalink
完成基线版本
Browse files Browse the repository at this point in the history
  • Loading branch information
supermy committed Apr 12, 2015
1 parent a9d48a3 commit 0a916e1
Show file tree
Hide file tree
Showing 27 changed files with 145 additions and 266 deletions.
4 changes: 1 addition & 3 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,14 @@ docker run -i -t myjava7/debian:latest



******************************************************************
todo
规则殷勤:drools 平台使用
工作流:activiti

20150408
增加dns-docker镜像,方便通过dns配置域名

20150329
云平台:flume+kafka-storm-hbase:docker4flume+docker4kafa 完成

Expand Down
15 changes: 0 additions & 15 deletions build-cloud.sh

This file was deleted.

25 changes: 4 additions & 21 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
cd /Users/moyong/project/env-myopensource/mytools/common/mydebian
fig stop && fig rm --force -v && fig build

cd /Users/moyong/project/env-myopensource/mytools/common/myjava7
fig stop && fig rm --force -v && fig build

cd /Users/moyong/project/env-myopensource/mytools/common/myjre7
fig stop && fig rm --force -v && fig build

#cd /Users/moyong/project/env-myopensource/mytools/common/myim
#fig stop && fig rm --force -v && fig build

cd /Users/moyong/project/env-myopensource/mytools/common/mykafka
fig stop && fig rm --force -v && fig build

cd /Users/moyong/project/env-myopensource/mytools/common/mysolr
fig stop && fig rm --force -v && fig build

cd /Users/moyong/project/env-myopensource/mytools/common/mystorm
fig stop && fig rm --force -v && fig build

# 通用工具构造
cd common
sh build.sh
cd ..

#分布式系统build
cd /Users/moyong/project/env-myopensource/mytools/web+app/mynginx
Expand Down
2 changes: 2 additions & 0 deletions common/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ 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/rabbitmq:3.5 myredis

docker build -t jamesmo/myflume:latest myflume

Expand Down
2 changes: 1 addition & 1 deletion common/mycloud/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
微云(可快速扩充)
====================

大数据-介绍
大数据-介绍(https://github.com/supermy/hadoop-docker-nn)
---------------------

HBase是一个分布式的、面向列的开源数据库,该技术来源于 Fay Chang 所撰写的Google论文“Bigtable:一个结构化数据的分布式存储系统”。就像
Expand Down
46 changes: 46 additions & 0 deletions common/myredis/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
FROM jamesmo/debian:7

# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
RUN groupadd -r redis && useradd -r -g redis redis

RUN apt-get update \
&& apt-get install -y curl \
&& rm -rf /var/lib/apt/lists/*

# 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

ENV REDIS_VERSION 3.0.0
ENV REDIS_DOWNLOAD_URL http://download.redis.io/releases/redis-3.0.0.tar.gz
ENV REDIS_DOWNLOAD_SHA1 c75fd32900187a7c9f9d07c412ea3b3315691c65

# for redis-sentinel see: http://redis.io/topics/sentinel
RUN buildDeps='gcc libc6-dev make'; \
set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /usr/src/redis \
&& curl -sSL "$REDIS_DOWNLOAD_URL" -o redis.tar.gz \
&& echo "$REDIS_DOWNLOAD_SHA1 *redis.tar.gz" | sha1sum -c - \
&& tar -xzf redis.tar.gz -C /usr/src/redis --strip-components=1 \
&& rm redis.tar.gz \
&& make -C /usr/src/redis \
&& make -C /usr/src/redis install \
&& rm -r /usr/src/redis \
&& apt-get purge -y --auto-remove $buildDeps

RUN mkdir /data && chown redis:redis /data
VOLUME /data
WORKDIR /data

COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

EXPOSE 6379
CMD [ "redis-server" ]

8 changes: 8 additions & 0 deletions common/myredis/fig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
myredis:
image: redis:latest
ports:
- "6379:6379"

#export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/"
#build spring app use jdk1.7
#spring app 源代码 :https://github.com/supermy/gs-messaging-redis
Binary file not shown.
2 changes: 2 additions & 0 deletions common/myredis/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fig up -d && fig ps
java -jar gs-messaging-redis-0.1.0.jar
1 change: 1 addition & 0 deletions flume-kafka-storm-hbase/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
详见 /common/mycloud 与 /common/mystorm/
180 changes: 0 additions & 180 deletions flume-kafka-storm-hbase/fig.yml

This file was deleted.

3 changes: 3 additions & 0 deletions mymongodb/initdbi-1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
printjson(1);
config={_id: 'rs1', members:[{_id: 0,host:'172.17.0.69:27017'},{_id:1,host:'172.17.0.65:27017'},{_id:2,host:'172.17.0.67:27017'}]}
rs.initiate(config);
3 changes: 3 additions & 0 deletions mymongodb/initdbi-1.jsbak
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
printjson(1);
config={_id: 'rs1', members:[{_id: 0,host:'172.17.0.69:27017'},{_id:1,host:'172.17.0.65:27017'},{_id:2,host:'rs13:27017'}]}
rs.initiate(config);
3 changes: 3 additions & 0 deletions mymongodb/initdbi-2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
printjson(1);
config={_id: 'rs2', members:[{_id: 0,host:'172.17.0.59:27017'},{_id:1,host:'172.17.0.61:27017'},{_id:2,host:'172.17.0.63:27017'}]}
rs.initiate(config);
3 changes: 3 additions & 0 deletions mymongodb/initdbi-2.jsbak
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
printjson(1);
config={_id: 'rs1', members:[{_id: 0,host:'172.17.0.59:27017'},{_id:1,host:'172.17.0.61:27017'},{_id:2,host:'172.17.0.63:27017'}]}
rs.initiate(config);
30 changes: 30 additions & 0 deletions mymongodb/initdbi.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
printjson(1);
sh.addShard("rs1/172.17.0.69:27017");
sh.addShard("rs2/172.17.0.59:27017");
sh.status();

db.runCommand( { listshards : 1 } );
db.runCommand( { enablesharding:"test" });
db.runCommand( { shardcollection : "test.c1",key : {id: 1} } );

db = db.getSiblingDB("test");
for(var i=1;i<=2000;i++) db.c1.save({id:i,value1:"12345678"});
db.c1.stats();

db.runCommand( { enablesharding:"gndata" });
db.runCommand( { shardcollection : "gndata.tellog",key : {_id: 1} } );


//
//#创建用户
//db = db.getSiblingDB("admin");
//db.createUser( {
// user: "user1",
// pwd: "111111",
// roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
//});
//db.createUser( {
// user: "root1",
// pwd: "111111",
// roles: [ { role: "root", db: "admin" } ]
//});
Loading

0 comments on commit 0a916e1

Please sign in to comment.