GithubHelp home page GithubHelp logo

6.5's Introduction

  • Задание_1
  • составьте Dockerfile-манифест для elasticsearch
FROM centos:7

RUN cd /opt && \
	curl https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.13.3-linux-x86_64.tar.gz \
		> elasticsearch-7.13.3-linux-x86_64.tar.gz && \
	curl https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.13.3-linux-x86_64.tar.gz.sha512 \
		> elasticsearch-7.13.3-linux-x86_64.tar.gz.sha512 && \
	sha512sum -c elasticsearch-7.13.3-linux-x86_64.tar.gz.sha512 && \
	tar -xzf elasticsearch-7.13.3-linux-x86_64.tar.gz && \
	rm -f elasticsearch-7.13.3-linux-x86_64.tar.gz* && \
	useradd -r es_user && \
	chown -R es_user /opt/elasticsearch-7.13.3/

WORKDIR /opt/elasticsearch-7.13.3/

RUN	mkdir -p /var/lib/elasticsearch && \
	chown -R es_user /var/lib/elasticsearch && \
	echo 'node.name: netology_test' >> config/elasticsearch.yml && \
	echo 'path.data: /var/lib/elasticsearch' >> config/elasticsearch.yml && \
	echo 'network.host: 0.0.0.0' >> config/elasticsearch.yml && \
	echo 'discovery.type: single-node' >> config/elasticsearch.yml && \
	echo 'xpack.security.enabled: false' >> config/elasticsearch.yml && \
        echo 'path.repo: /opt/elasticsearch-7.13.3/snapshots' >> config/elasticsearch.yml && \
	mkdir snapshots && chown es_user snapshots

EXPOSE 9200
USER es_user
ENTRYPOINT ["bin/elasticsearch"]
  • Задание_2

6.5's People

Contributors

jekker600 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.