X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=docker-build%2Felasticsearch%2FDockerfile;h=bf4ad191b910ed514f6a047e5fa7a526234dae1a;hb=e4c698f4ece22b2fe2b212801b6d5597c91535e4;hp=39f8ecbaf641a608625c059e2387d5fce666b71d;hpb=dbb52626787b945265e4dbfaee8a2905fa410b67;p=ta%2Fcaas-logging.git diff --git a/docker-build/elasticsearch/Dockerfile b/docker-build/elasticsearch/Dockerfile index 39f8ecb..bf4ad19 100644 --- a/docker-build/elasticsearch/Dockerfile +++ b/docker-build/elasticsearch/Dockerfile @@ -12,16 +12,17 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM centos:7.6.1810 +FROM scratch +ADD centos-7-docker.tar.xz / +CMD ["/bin/bash"] MAINTAINER Levente Kale ARG VERSION -ENV ES_VERSION=$VERSION ENV PATH /usr/share/elasticsearch/bin:$PATH -ENV JAVA_HOME /usr/lib/jvm/jre-1.8.0-openjdk +ENV JAVA_HOME /usr/lib/jvm/jre-13-openjdk ENV DOWNLOAD_URL "https://artifacts.elastic.co/downloads/elasticsearch" -ENV ES_TARBAL "${DOWNLOAD_URL}/elasticsearch-oss-${ES_VERSION}-linux-x86_64.tar.gz" +ENV ES_TARBAL "${DOWNLOAD_URL}/elasticsearch-oss-${VERSION}-linux-x86_64.tar.gz" WORKDIR /usr/share/elasticsearch @@ -29,7 +30,7 @@ RUN groupadd -g 202 elasticsearch \ && adduser -u 202 -g 202 -d /usr/share/elasticsearch elasticsearch \ && yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \ && yum install -y --setopt=skip_missing_names_on_install=False \ - java-1.8.0-openjdk-headless \ + java-latest-openjdk-headless \ unzip \ which \ coreutils \ @@ -47,3 +48,4 @@ RUN groupadd -g 202 elasticsearch \ COPY elasticsearch-logrotate.sh /etc/cron.hourly/ COPY elasticsearch-setindex.sh /usr/share/elasticsearch/ COPY log4j2.properties /usr/share/elasticsearch/config/ +COPY supervisord.conf /etc/