changes made to build using image
[platform-oam.git] / elk-stack / logstash / Dockerfile
index 033b139..3a93068 100644 (file)
 # ===============LICENSE_END=========================================================
 # https://github.com/elastic/logstash-docker
 FROM docker.elastic.co/logstash/logstash:5.5.1
-ENV ACUMOS_ELK_JDBC_DRIVER_LIBRARY=/usr/share/logstash/vendor/bundle/mariadb-java-client-2.1.0.jar
-ENV ACUMOS_ELK_JDBC_DRIVER_CLASS=org.mariadb.jdbc.Driver
-ENV ACUMOS_ELK_DATABASE_PORT=3306
-ENV ACUMOS_ELK_DATABASE_NAME=databasename
-ENV ACUMOS_ELK_DATABASE_URL=databaseurl
-ENV ACUMOS_ELK_JDBC_CONNECTION_STRING=jdbc:mariadb://$ACUMOS_ELK_DATABASE_URL:$ACUMOS_ELK_DATABASE_PORT/$ACUMOS_ELK_DATABASE_NAME
-ENV ACUMOS_ELK_JDBC_USERNAME=username
-ENV ACUMOS_ELK_JDBC_PASSWORD=password
-RUN /usr/share/logstash/bin/logstash-plugin install logstash-input-jdbc
+RUN /usr/share/logstash/bin/logstash-plugin install --version "4.3.0" logstash-input-jdbc
 ADD https://downloads.mariadb.com/enterprise/1prc-8jnh/connectors/java/connector-java-2.1.0/mariadb-java-client-2.1.0.jar /usr/share/logstash/vendor/bundle/
 USER root
 RUN ls -al /usr/share/logstash/vendor/bundle \