Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Commit

Permalink
Change to use /schema sql to initialize cassandra
Browse files Browse the repository at this point in the history
  • Loading branch information
mookjp committed Nov 18, 2015
1 parent abc8880 commit 1b87d34
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 394 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Expand Up @@ -2,8 +2,10 @@ FROM java:8

RUN mkdir -p /app/src/cmb
ADD . /app/src/cmb

WORKDIR /app/src/cmb
ENV ROOTDIR=/app/src/cmb

EXPOSE 6059 6061

CMD ./docker/cmb/bin/start.sh
CMD $ROOTDIR/docker/cmb/bin/start.sh
4 changes: 4 additions & 0 deletions Dockerfile-cassandra
@@ -0,0 +1,4 @@
FROM cassandra:2.1

# Add initial data for cmb
ADD ./schema/cassandra_1.2.cql.schema /tmp/cassandra_1.2.cql.schema
2 changes: 1 addition & 1 deletion docker/redis/Dockerfile → Dockerfile-redis
@@ -1,4 +1,4 @@
FROM redis:2.6

COPY redis.conf /usr/local/etc/redis/redis.conf
COPY ./docker/redis/redis.conf /usr/local/etc/redis/redis.conf
CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
4 changes: 0 additions & 4 deletions docker/cassandra/Dockerfile

This file was deleted.

0 comments on commit 1b87d34

Please sign in to comment.