Created
July 26, 2019 07:35
-
-
Save alexanderzobnin/fb0be81269722a0b2741ba23568711b2 to your computer and use it in GitHub Desktop.
Dockerfile for deploying griddb
This file contains hidden or 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
FROM ubuntu:xenial | |
ENV GRIDDB_VERSION="4.2.1" | |
ENV DOWNLOAD_URL=https://github.com/griddb/griddb_nosql/releases/download/v${GRIDDB_VERSION}/griddb-nosql_${GRIDDB_VERSION}_amd64.deb | |
RUN apt-get -y update \ | |
&& apt-get -y install curl python openjdk-9-jre vim | |
RUN curl ${DOWNLOAD_URL} --output griddb-nosql_amd64.deb --silent --location | |
RUN ls -lh ./ | |
RUN dpkg -i griddb-nosql_amd64.deb | |
ADD start.sh /start.sh | |
RUN chmod +x /start.sh | |
RUN ls /var/lib/gridstore/* | |
RUN ls -lh /usr/bin/gs_* | |
RUN which /usr/bin/gs_startnode | |
RUN ls /usr/griddb-4.2.1/bin/* | |
USER gsadm | |
ENV GS_HOME /var/lib/gridstore/ | |
ENV GS_LOG ${GS_HOME}/log | |
# RUN chown -R root ${GS_HOME} | |
RUN sed -i -e s/\"clusterName\":\"\"/\"clusterName\":\"test\"/g \ | |
/var/lib/gridstore/conf/gs_cluster.json | |
RUN gs_passwd admin -p admin | |
CMD ["/start.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment