Skip to content

Instantly share code, notes, and snippets.

@alexanderzobnin
Created July 26, 2019 07:35
Show Gist options
  • Save alexanderzobnin/fb0be81269722a0b2741ba23568711b2 to your computer and use it in GitHub Desktop.
Save alexanderzobnin/fb0be81269722a0b2741ba23568711b2 to your computer and use it in GitHub Desktop.
Dockerfile for deploying griddb
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