Last active
February 2, 2020 16:51
-
-
Save yuxel/b8331daa0358d9c55d782dba53393a09 to your computer and use it in GitHub Desktop.
elastic-smile-6
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
FROM ubuntu:18.04 | |
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y git wget curl nano unzip sudo vim net-tools software-properties-common haveged apt-transport-https | |
RUN sudo apt-get install -y openjdk-8-jre | |
RUN wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
RUN sudo apt-get install -y | |
RUN echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list | |
RUN sudo apt-get update && sudo apt-get install -y elasticsearch | |
RUN echo "network.host: 0.0.0.0" >> /etc/elasticsearch/elasticsearch.yml | |
EXPOSE 9200 9300 | |
RUN echo "cd /usr/share/elasticsearch && sudo bin/elasticsearch-plugin install analysis-phonetic && sudo bin/elasticsearch-plugin install analysis-icu" > /usr/local/bin/docker_start.sh | |
RUN echo "service elasticsearch start && bash" >> /usr/local/bin/docker_start.sh | |
RUN chmod +x /usr/local/bin/docker_start.sh | |
CMD /usr/local/bin/docker_start.sh && bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment