forked from griddb/griddb
-
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.
Merge pull request griddb#12 from nobusugi246/master
Sample Dockerfiles
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 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,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 |
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,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 |
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,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 |