diff --git a/entgra-elasticsearch/Dockerfile b/entgra-elasticsearch/Dockerfile index 0be8d4f..e6ce51e 100644 --- a/entgra-elasticsearch/Dockerfile +++ b/entgra-elasticsearch/Dockerfile @@ -1,5 +1,21 @@ +# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved. +# +# Entgra (Pvt) Ltd. licenses this file to you under the Apache License, +# Version 2.0 (the "License"); you may not use this file except +# in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + FROM docker.elastic.co/elasticsearch/elasticsearch:8.2.0 RUN rm -Rf /usr/share/elasticsearch/config/elasticsearch.yml -COPY elasticsearch.yml /usr/share/elasticsearch/config/elasticsearch.yml \ No newline at end of file +COPY elasticsearch.yml /usr/share/elasticsearch/config/elasticsearch.yml diff --git a/entgra-elasticsearch/README.md b/entgra-elasticsearch/README.md index c219b13..9250ac3 100644 --- a/entgra-elasticsearch/README.md +++ b/entgra-elasticsearch/README.md @@ -1,12 +1,10 @@ ## Instructions -1. Pull the elasticsearch image +1. Build the Docker image ```bash -docker pull docker.elastic.co/elasticsearch/elasticsearch:8.2.0 +docker build -t registry.entgra.io/entgra-elasticsearch:8.2.0-entgra-v2 -f Dockerfile . ``` -Note: Change the required image version name or tag in the Dockerfile. -3. Build the Docker image -```bash -docker build -t elasticsearch:8.2.0-entgra-v1 . -``` +2. docker-compose up -d +3. docker exec -it $(docker ps -aq -n 1) /bin/bash +4. docker-compose down diff --git a/entgra-elasticsearch/docker-compose.yml b/entgra-elasticsearch/docker-compose.yml index 923873d..797a575 100644 --- a/entgra-elasticsearch/docker-compose.yml +++ b/entgra-elasticsearch/docker-compose.yml @@ -1,3 +1,19 @@ +# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved. +# +# Entgra (Pvt) Ltd. licenses this file to you under the Apache License, +# Version 2.0 (the "License"); you may not use this file except +# in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + version: "3.8" services: @@ -23,4 +39,4 @@ services: interval: 60s retries: 10 start_period: 30s - timeout: 10s \ No newline at end of file + timeout: 10s diff --git a/entgra-elasticsearch/elasticsearch.yml b/entgra-elasticsearch/elasticsearch.yml index c660745..a3df086 100644 --- a/entgra-elasticsearch/elasticsearch.yml +++ b/entgra-elasticsearch/elasticsearch.yml @@ -1,3 +1,19 @@ +# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved. +# +# Entgra (Pvt) Ltd. licenses this file to you under the Apache License, +# Version 2.0 (the "License"); you may not use this file except +# in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + cluster.name: "docker-cluster" network.host: 0.0.0.0 diff --git a/entgra-filebeat/Dockerfile b/entgra-filebeat/Dockerfile index e63f579..20ec312 100644 --- a/entgra-filebeat/Dockerfile +++ b/entgra-filebeat/Dockerfile @@ -1,3 +1,19 @@ +# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved. +# +# Entgra (Pvt) Ltd. licenses this file to you under the Apache License, +# Version 2.0 (the "License"); you may not use this file except +# in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + FROM docker.elastic.co/beats/filebeat:8.2.0 # Switch to root user diff --git a/entgra-filebeat/README.md b/entgra-filebeat/README.md index 9b5c4c6..39d9223 100644 --- a/entgra-filebeat/README.md +++ b/entgra-filebeat/README.md @@ -1,12 +1,11 @@ ## Instructions -1. Pull the filebeat image +1. Build the Docker image ```bash -docker pull docker.elastic.co/beats/filebeat:8.2.0 +docker build -t registry.entgra.io/entgra-filebeat:8.2.0-entgra-v2 -f Dockerfile . ``` -Note: Change the required image version name or tag in the Dockerfile. -3. Build the Docker image -```bash -docker build -t filebeat:8.2.0-entgra-v1 . -``` +2. docker-compose up -d +3. docker exec -it $(docker ps -aq -n 1) /bin/bash +4. docker-compose down + diff --git a/entgra-filebeat/docker-compose.yml b/entgra-filebeat/docker-compose.yml index 6a60339..189af13 100644 --- a/entgra-filebeat/docker-compose.yml +++ b/entgra-filebeat/docker-compose.yml @@ -1,3 +1,19 @@ +# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved. +# +# Entgra (Pvt) Ltd. licenses this file to you under the Apache License, +# Version 2.0 (the "License"); you may not use this file except +# in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + version: "3.8" services: @@ -14,4 +30,4 @@ services: environment: - TZ=Asia/Colombo - LOGSTASH_HOST=logstash - - LOGSTASH_PORT=5044 \ No newline at end of file + - LOGSTASH_PORT=5044 diff --git a/entgra-filebeat/entrypoint.sh b/entgra-filebeat/entrypoint.sh index ab0bc69..ae59520 100644 --- a/entgra-filebeat/entrypoint.sh +++ b/entgra-filebeat/entrypoint.sh @@ -1,5 +1,21 @@ #!/bin/bash +# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved. +# +# Entgra (Pvt) Ltd. licenses this file to you under the Apache License, +# Version 2.0 (the "License"); you may not use this file except +# in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # Check if ECS_CONTAINER_METADATA_FILE is set if [ -z "$ECS_CONTAINER_METADATA_FILE" ]; then echo "ECS_CONTAINER_METADATA_FILE is not set or the server is running on local deployment environment" @@ -34,4 +50,4 @@ else fi # Execute the original Filebeat entry point with passed arguments -exec /usr/local/bin/docker-entrypoint "$@" \ No newline at end of file +exec /usr/local/bin/docker-entrypoint "$@" diff --git a/entgra-filebeat/files/filebeat/filebeat.template.yml b/entgra-filebeat/files/filebeat/filebeat.template.yml index b429c54..f5f2ea5 100644 --- a/entgra-filebeat/files/filebeat/filebeat.template.yml +++ b/entgra-filebeat/files/filebeat/filebeat.template.yml @@ -1,3 +1,19 @@ +# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved. +# +# Entgra (Pvt) Ltd. licenses this file to you under the Apache License, +# Version 2.0 (the "License"); you may not use this file except +# in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + filebeat.inputs: - type: log enabled: true diff --git a/entgra-kibana/Dockerfile b/entgra-kibana/Dockerfile index ccb1e4c..9140c27 100644 --- a/entgra-kibana/Dockerfile +++ b/entgra-kibana/Dockerfile @@ -1,3 +1,19 @@ +# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved. +# +# Entgra (Pvt) Ltd. licenses this file to you under the Apache License, +# Version 2.0 (the "License"); you may not use this file except +# in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + FROM docker.elastic.co/kibana/kibana:8.2.0 -COPY kibana.yml /usr/share/kibana/kibana.yml \ No newline at end of file +COPY kibana.yml /usr/share/kibana/kibana.yml diff --git a/entgra-kibana/README.md b/entgra-kibana/README.md index e9ac868..52fba2e 100644 --- a/entgra-kibana/README.md +++ b/entgra-kibana/README.md @@ -1,12 +1,11 @@ ## Instructions -1. Pull the kibana image +1. Build the Docker image ```bash -docker pull docker.elastic.co/kibana/kibana:8.2.0 +docker build -t registry.entgra.io/entgra-kibana:8.2.0-entgra-v2 -f Dockerfile . ``` -Note: Change the required image version name or tag in the Dockerfile. -3. Build the Docker image -```bash -docker build -t kibana:8.2.0-entgra-v1 . -``` +2. docker-compose up -d +3. docker exec -it $(docker ps -aq -n 1) /bin/bash +4. docker-compose down + diff --git a/entgra-kibana/kibana.yml b/entgra-kibana/kibana.yml index 2db5738..20ad89b 100644 --- a/entgra-kibana/kibana.yml +++ b/entgra-kibana/kibana.yml @@ -1,3 +1,19 @@ +# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved. +# +# Entgra (Pvt) Ltd. licenses this file to you under the Apache License, +# Version 2.0 (the "License"); you may not use this file except +# in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + security.showInsecureClusterWarning: false monitoring.ui.container.elasticsearch.enabled: true logging.quiet: true diff --git a/entgra-logstash/Dockerfile b/entgra-logstash/Dockerfile index ba7a656..728caa0 100644 --- a/entgra-logstash/Dockerfile +++ b/entgra-logstash/Dockerfile @@ -1,3 +1,19 @@ +# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved. +# +# Entgra (Pvt) Ltd. licenses this file to you under the Apache License, +# Version 2.0 (the "License"); you may not use this file except +# in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + FROM docker.elastic.co/logstash/logstash:8.2.0 -COPY logstash.conf /usr/share/logstash/pipeline/logstash.conf \ No newline at end of file +COPY logstash.conf /usr/share/logstash/pipeline/logstash.conf diff --git a/entgra-logstash/README.md b/entgra-logstash/README.md index 7e7ef5d..1de98c1 100644 --- a/entgra-logstash/README.md +++ b/entgra-logstash/README.md @@ -1,12 +1,11 @@ ## Instructions -1. Pull the logstash image +1. Build the Docker image ```bash -docker pull docker.elastic.co/logstash/logstash:8.2.0 +docker build -t registry.entgra.io/entgra-logstash:8.2.0-entgra-v2 -f Dockerfile . ``` -Note: Change the required image version name or tag in the Dockerfile. -3. Build the Docker image -```bash -docker build -t logstash:8.2.0-entgra-v1 . -``` +2. docker-compose up -d +3. docker exec -it $(docker ps -aq -n 1) /bin/bash +4. docker-compose down +