diff --git a/sample/docker/Dockerfile b/sample/docker/Dockerfile new file mode 100644 index 00000000..00d3c58c --- /dev/null +++ b/sample/docker/Dockerfile @@ -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 diff --git a/sample/docker/rpm/Dockerfile b/sample/docker/rpm/Dockerfile new file mode 100644 index 00000000..9140a810 --- /dev/null +++ b/sample/docker/rpm/Dockerfile @@ -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 diff --git a/sample/docker/with-src/Dockerfile b/sample/docker/with-src/Dockerfile new file mode 100644 index 00000000..63a66997 --- /dev/null +++ b/sample/docker/with-src/Dockerfile @@ -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