Skip to content

Commit

Permalink
Merge pull request griddb#12 from nobusugi246/master
Browse files Browse the repository at this point in the history
Sample Dockerfiles
  • Loading branch information
knonomura authored Sep 11, 2017
2 parents b9e129f + 67dac8a commit 9fdf278
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
20 changes: 20 additions & 0 deletions sample/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM centos:7

WORKDIR /root/
RUN yum install -y wget java-1.8.0-openjdk-devel \
&& yum groupinstall -y "Development Tools" \
&& yum clean all \
&& wget -q https://github.com/griddb/griddb_nosql/releases/download/v3.0.1/griddb_nosql-3.0.1-1.linux.x86_64.rpm \
&& rpm -ivh griddb_nosql-3.0.1-1.linux.x86_64.rpm \
&& rm griddb_nosql-3.0.1-1.linux.x86_64.rpm

ENV GS_HOME /var/lib/gridstore
ENV GS_LOG $GS_HOME/log
ENV HOME $GS_HOME

RUN gs_passwd admin -p admin \
&& sed -i -e s/\"clusterName\":\"\"/\"clusterName\":\"dockerGridDB\"/g \
/var/lib/gridstore/conf/gs_cluster.json

WORKDIR $HOME
USER gsadm
19 changes: 19 additions & 0 deletions sample/docker/rpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM centos:7

RUN yum install -y zip unzip zlib-devel ant \
&& yum groupinstall -y "Development Tools" \
&& yum clean all

RUN cd /root/ \
&& git clone https://github.com/griddb/griddb_nosql.git \
&& cd griddb_nosql \
&& ./bootstrap.sh \
&& ./configure \
&& make \
&& make dist-zip \
&& cp griddb_nosql-3.0.1.zip installer/SOURCES/ \
&& cd installer \
&& rpmbuild --define="_topdir `pwd`" -bb --clean SPECS/griddb.spec \
&& rm -rf *.o

VOLUME /root/griddb_nosql
18 changes: 18 additions & 0 deletions sample/docker/with-src/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM centos:7

RUN yum install -y zip unzip zlib-devel ant \
&& yum groupinstall -y "Development Tools" \
&& yum clean all

RUN cd /root/ \
&& git clone https://github.com/griddb/griddb_nosql.git \
&& cd griddb_nosql \
&& ./bootstrap.sh \
&& ./configure \
&& make \
&& rm -rf *.o

VOLUME /root/griddb_nosql

ENV GS_HOME=/root/griddb_nosql
ENV GS_LOG=/root/griddb_nosql/log

0 comments on commit 9fdf278

Please sign in to comment.