From 53b3356a9be3b0994658480cd1a2fc820eaac316 Mon Sep 17 00:00:00 2001 From: jialv01 Date: Thu, 11 Apr 2019 17:35:32 +0800 Subject: [PATCH] Add Nem-mon repo as submodule and support arm64 1.forked SEBA componants`s repo to IEC repo,include: alertmanager/docker-curl/k8s-sidecar/kafka-topic-exporter/kube-state-metrics/node_exporter/prometheus/pushgateway/ 2.Add patch files inorder to aarch64 docker image support src/use_cases/seba_on_arm/docker/build/alertmanager/ src/use_cases/seba_on_arm/docker/build/docker-curl/ src/use_cases/seba_on_arm/docker/build/k8s-sidecar/ src/use_cases/seba_on_arm/docker/build/kafka-topic-exporter/ src/use_cases/seba_on_arm/docker/build/kube-state-metrics/ src/use_cases/seba_on_arm/docker/build/node_exporter/ src/use_cases/seba_on_arm/docker/build/prometheus/ src/use_cases/seba_on_arm/docker/build/pushgateway/ Change-Id: Idb29d142e90749e3933060919a4a24449c87e09f Signed-off-by: jialv01 --- .gitmodules | 28 ++++++++++++++++++++++ .../docker/build/alertmanager/build.arm | 12 ++++++++++ .../seba_on_arm/docker/build/docker-curl/build.arm | 11 +++++++++ .../seba_on_arm/docker/build/k8s-sidecar/build.arm | 10 ++++++++ .../docker/build/kafka-topic-exporter/build.arm | 10 ++++++++ .../docker/build/kube-state-metrics/build.arm | 11 +++++++++ .../docker/build/node_exporter/build.arm | 12 ++++++++++ .../seba_on_arm/docker/build/prometheus/build.arm | 12 ++++++++++ .../seba_on_arm/docker/build/pushgateway/build.arm | 12 ++++++++++ src/use_cases/seba_on_arm/src_repo/alertmanager | 1 + src/use_cases/seba_on_arm/src_repo/docker-curl | 1 + src/use_cases/seba_on_arm/src_repo/k8s-sidecar | 1 + .../seba_on_arm/src_repo/kafka-topic-exporter | 1 + .../seba_on_arm/src_repo/kube-state-metrics | 1 + src/use_cases/seba_on_arm/src_repo/node_exporter | 1 + src/use_cases/seba_on_arm/src_repo/prometheus | 1 + src/use_cases/seba_on_arm/src_repo/pushgateway | 1 + 17 files changed, 126 insertions(+) create mode 100755 src/use_cases/seba_on_arm/docker/build/alertmanager/build.arm create mode 100755 src/use_cases/seba_on_arm/docker/build/docker-curl/build.arm create mode 100755 src/use_cases/seba_on_arm/docker/build/k8s-sidecar/build.arm create mode 100755 src/use_cases/seba_on_arm/docker/build/kafka-topic-exporter/build.arm create mode 100755 src/use_cases/seba_on_arm/docker/build/kube-state-metrics/build.arm create mode 100755 src/use_cases/seba_on_arm/docker/build/node_exporter/build.arm create mode 100755 src/use_cases/seba_on_arm/docker/build/prometheus/build.arm create mode 100755 src/use_cases/seba_on_arm/docker/build/pushgateway/build.arm create mode 160000 src/use_cases/seba_on_arm/src_repo/alertmanager create mode 160000 src/use_cases/seba_on_arm/src_repo/docker-curl create mode 160000 src/use_cases/seba_on_arm/src_repo/k8s-sidecar create mode 160000 src/use_cases/seba_on_arm/src_repo/kafka-topic-exporter create mode 160000 src/use_cases/seba_on_arm/src_repo/kube-state-metrics create mode 160000 src/use_cases/seba_on_arm/src_repo/node_exporter create mode 160000 src/use_cases/seba_on_arm/src_repo/prometheus create mode 160000 src/use_cases/seba_on_arm/src_repo/pushgateway diff --git a/.gitmodules b/.gitmodules index 9569596..2405e81 100644 --- a/.gitmodules +++ b/.gitmodules @@ -86,3 +86,31 @@ [submodule "logstash_exporter"] path = src/use_cases/seba_on_arm/src_repo/logstash_exporter url = https://github.com/iecedge/logstash_exporter.git +[submodule "kafka-topic-exporter"] + path = src/use_cases/seba_on_arm/src_repo/kafka-topic-exporter + url = https://github.com/iecedge/kafka-topic-exporter.git +[submodule "docker-curl"] + path = src/use_cases/seba_on_arm/src_repo/docker-curl + url = https://github.com/iecedge/docker-curl.git +[submodule "k8s-sidecar"] + path = src/use_cases/seba_on_arm/src_repo/k8s-sidecar + url = https://github.com/iecedge/k8s-sidecar.git +[submodule "alertmanager"] + path = src/use_cases/seba_on_arm/src_repo/alertmanager + url = https://github.com/iecedge/alertmanager.git + branch = v0.15.0-arm64v8 +[submodule "kube-state-metrics"] + path = src/use_cases/seba_on_arm/src_repo/kube-state-metrics + url = https://github.com/iecedge/kube-state-metrics.git +[submodule "node_exporter"] + path = src/use_cases/seba_on_arm/src_repo/node_exporter + url = https://github.com/iecedge/node_exporter.git + branch = release-0.16-arm64v8 +[submodule "prometheus"] + path = src/use_cases/seba_on_arm/src_repo/prometheus + url = https://github.com/iecedge/prometheus.git + branch = v2.3.1-arm64v8 +[submodule "pushgateway"] + path = src/use_cases/seba_on_arm/src_repo/pushgateway + url = https://github.com/iecedge/pushgateway.git + branch = v0.5.2-arm64v8 diff --git a/src/use_cases/seba_on_arm/docker/build/alertmanager/build.arm b/src/use_cases/seba_on_arm/docker/build/alertmanager/build.arm new file mode 100755 index 0000000..b4c29e1 --- /dev/null +++ b/src/use_cases/seba_on_arm/docker/build/alertmanager/build.arm @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +# This script builds the alertmanager docker image +set -o errexit +set -o xtrace + +#cd $ALERTMANAGER_PATH + +#building alertmanager docker image +make build +make docker +docker tag alertmanager:v0.15.0-arm64v8 iecedge/alertmanager_arm64:v0.15.0 diff --git a/src/use_cases/seba_on_arm/docker/build/docker-curl/build.arm b/src/use_cases/seba_on_arm/docker/build/docker-curl/build.arm new file mode 100755 index 0000000..93b5003 --- /dev/null +++ b/src/use_cases/seba_on_arm/docker/build/docker-curl/build.arm @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +# This script builds the docker-curl docker image +set -o errexit +set -o xtrace + +#cd $DOCKER-CURL_PATH + +#building docker-curl docker image +cd latest +docker build -t iecedge/curl_arm64:latest . diff --git a/src/use_cases/seba_on_arm/docker/build/k8s-sidecar/build.arm b/src/use_cases/seba_on_arm/docker/build/k8s-sidecar/build.arm new file mode 100755 index 0000000..d77be96 --- /dev/null +++ b/src/use_cases/seba_on_arm/docker/build/k8s-sidecar/build.arm @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# This script builds the k8s-sidecar docker image +set -o errexit +set -o xtrace + +#cd $K8S-SIDECAR_PATH + +#building k8s-sidecar docker image +docker build -t iecedge/k8s-sidecar_arm64:0.0.3 . diff --git a/src/use_cases/seba_on_arm/docker/build/kafka-topic-exporter/build.arm b/src/use_cases/seba_on_arm/docker/build/kafka-topic-exporter/build.arm new file mode 100755 index 0000000..91f83fe --- /dev/null +++ b/src/use_cases/seba_on_arm/docker/build/kafka-topic-exporter/build.arm @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# This script builds the kafka-topic-exporter docker image +set -o errexit +set -o xtrace + +#cd $KAFKA-TOPIC-EXPORTER_PATH + +#building kafka-topic-exporter docker image +docker build -t iecedge/kafka-topic-exporter_arm64:1.1.2 . diff --git a/src/use_cases/seba_on_arm/docker/build/kube-state-metrics/build.arm b/src/use_cases/seba_on_arm/docker/build/kube-state-metrics/build.arm new file mode 100755 index 0000000..0f28384 --- /dev/null +++ b/src/use_cases/seba_on_arm/docker/build/kube-state-metrics/build.arm @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +# This script builds the kube-state-metrics docker image +set -o errexit +set -o xtrace + +#cd $KUBE-STATE-METRICS_PATH + +#building kube-state-metrics docker image +make container +docker tag quay.io/coreos/kube-state-metrics-arm64:v1.3.1 iecedge/kube-state-metrics_arm64:v1.3.1 diff --git a/src/use_cases/seba_on_arm/docker/build/node_exporter/build.arm b/src/use_cases/seba_on_arm/docker/build/node_exporter/build.arm new file mode 100755 index 0000000..d4d9290 --- /dev/null +++ b/src/use_cases/seba_on_arm/docker/build/node_exporter/build.arm @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +# This script builds the node_exporter docker image +set -o errexit +set -o xtrace + +#cd $NODE_EXPORTER_PATH + +#building node_exporter docker image +make build +make docker +docker tag node-exporter:release-0.16-arm64v8 iecedge/node-exporter_arm64:v0.16.0 diff --git a/src/use_cases/seba_on_arm/docker/build/prometheus/build.arm b/src/use_cases/seba_on_arm/docker/build/prometheus/build.arm new file mode 100755 index 0000000..94dad79 --- /dev/null +++ b/src/use_cases/seba_on_arm/docker/build/prometheus/build.arm @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +# This script builds the prometheus docker image +set -o errexit +set -o xtrace + +#cd $PROMETHEUS_PATH + +#building prometheus docker image +make build +make docker +docker tag prometheus:v2.3.1-arm64v8 iecedge/prometheus_arm64:v2.3.1 diff --git a/src/use_cases/seba_on_arm/docker/build/pushgateway/build.arm b/src/use_cases/seba_on_arm/docker/build/pushgateway/build.arm new file mode 100755 index 0000000..3658e74 --- /dev/null +++ b/src/use_cases/seba_on_arm/docker/build/pushgateway/build.arm @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +# This script builds the pushgateway docker image +set -o errexit +set -o xtrace + +#cd $PUSHGATEWAY_PATH + +#building pushgateway docker image +make build +make docker +docker tag pushgateway:v0.5.2-arm64v8 iecedge/pushgateway_arm64:v0.5.2 diff --git a/src/use_cases/seba_on_arm/src_repo/alertmanager b/src/use_cases/seba_on_arm/src_repo/alertmanager new file mode 160000 index 0000000..bdd8c66 --- /dev/null +++ b/src/use_cases/seba_on_arm/src_repo/alertmanager @@ -0,0 +1 @@ +Subproject commit bdd8c66b202e92aba9c1e5acba4587cf4d639101 diff --git a/src/use_cases/seba_on_arm/src_repo/docker-curl b/src/use_cases/seba_on_arm/src_repo/docker-curl new file mode 160000 index 0000000..af2cc9f --- /dev/null +++ b/src/use_cases/seba_on_arm/src_repo/docker-curl @@ -0,0 +1 @@ +Subproject commit af2cc9f44f7a62666fa667d0c5664e26664fa5d7 diff --git a/src/use_cases/seba_on_arm/src_repo/k8s-sidecar b/src/use_cases/seba_on_arm/src_repo/k8s-sidecar new file mode 160000 index 0000000..dd78ae9 --- /dev/null +++ b/src/use_cases/seba_on_arm/src_repo/k8s-sidecar @@ -0,0 +1 @@ +Subproject commit dd78ae923f06ff36a318d837d55fc09e488af577 diff --git a/src/use_cases/seba_on_arm/src_repo/kafka-topic-exporter b/src/use_cases/seba_on_arm/src_repo/kafka-topic-exporter new file mode 160000 index 0000000..06502b2 --- /dev/null +++ b/src/use_cases/seba_on_arm/src_repo/kafka-topic-exporter @@ -0,0 +1 @@ +Subproject commit 06502b26f88c467b08ad2614e89fa3f89015528f diff --git a/src/use_cases/seba_on_arm/src_repo/kube-state-metrics b/src/use_cases/seba_on_arm/src_repo/kube-state-metrics new file mode 160000 index 0000000..43fcd3c --- /dev/null +++ b/src/use_cases/seba_on_arm/src_repo/kube-state-metrics @@ -0,0 +1 @@ +Subproject commit 43fcd3cf48f9ab6d0361210c5debb4e2aa1d2fc0 diff --git a/src/use_cases/seba_on_arm/src_repo/node_exporter b/src/use_cases/seba_on_arm/src_repo/node_exporter new file mode 160000 index 0000000..b8236a6 --- /dev/null +++ b/src/use_cases/seba_on_arm/src_repo/node_exporter @@ -0,0 +1 @@ +Subproject commit b8236a6fdc10ada61777f1b45cc7f7d211f95e90 diff --git a/src/use_cases/seba_on_arm/src_repo/prometheus b/src/use_cases/seba_on_arm/src_repo/prometheus new file mode 160000 index 0000000..a08732a --- /dev/null +++ b/src/use_cases/seba_on_arm/src_repo/prometheus @@ -0,0 +1 @@ +Subproject commit a08732a8629fbf80d730f180f3dec977adb07b9f diff --git a/src/use_cases/seba_on_arm/src_repo/pushgateway b/src/use_cases/seba_on_arm/src_repo/pushgateway new file mode 160000 index 0000000..01b565e --- /dev/null +++ b/src/use_cases/seba_on_arm/src_repo/pushgateway @@ -0,0 +1 @@ +Subproject commit 01b565e0e02f58eb1772a5c41c42ce6769aa2553 -- 2.16.6