forked from cerc-io/stack-orchestrator
Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc4396d593 | ||
|
|
f826f50c4d | ||
|
|
b83465767d | ||
|
|
50509203d1 | ||
|
|
282e175566 | ||
|
|
635aa7037b |
@@ -1,14 +1,11 @@
|
|||||||
name: K8s Deploy Test
|
name: K8s Deploy Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
branches: '*'
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: '*'
|
||||||
- main
|
paths:
|
||||||
- ci-test
|
- '!**'
|
||||||
paths-ignore:
|
- '.gitea/workflows/triggers/fixturenet-laconicd-test'
|
||||||
- '.gitea/workflows/triggers/*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Change this file to trigger running the test-k8s-deploy CI job
|
||||||
@@ -2,7 +2,7 @@ services:
|
|||||||
laconicd:
|
laconicd:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: cerc/laconicd:local
|
image: cerc/laconicd:local
|
||||||
command: ["sh", "/docker-entrypoint-scripts.d/create-fixturenet.sh"]
|
entrypoint: ["sh", "/docker-entrypoint-scripts.d/create-fixturenet.sh"]
|
||||||
volumes:
|
volumes:
|
||||||
# The cosmos-sdk node's database directory:
|
# The cosmos-sdk node's database directory:
|
||||||
- laconicd-data:/root/.laconicd
|
- laconicd-data:/root/.laconicd
|
||||||
@@ -15,12 +15,12 @@ services:
|
|||||||
- "6060"
|
- "6060"
|
||||||
- "26657"
|
- "26657"
|
||||||
- "26656"
|
- "26656"
|
||||||
- "9473"
|
- "9473:9473"
|
||||||
- "8545"
|
- "8545"
|
||||||
- "8546"
|
- "8546"
|
||||||
- "9090"
|
- "9090"
|
||||||
- "9091"
|
- "9091"
|
||||||
- "1317"
|
- "1317:1317"
|
||||||
cli:
|
cli:
|
||||||
image: cerc/laconic-registry-cli:local
|
image: cerc/laconic-registry-cli:local
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
version: "3.2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
geojson:
|
||||||
|
image: cerc/geojson:local
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 0.0.0.0:8080:8080
|
||||||
@@ -2,8 +2,10 @@ version: "3.7"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
grafana:
|
grafana:
|
||||||
image: grafana/grafana
|
image: grafana/grafana:10.2.2
|
||||||
restart: always
|
restart: always
|
||||||
|
environment:
|
||||||
|
GF_SERVER_ROOT_URL: ${GF_SERVER_ROOT_URL}
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/monitoring/grafana/provisioning:/etc/grafana/provisioning
|
- ../config/monitoring/grafana/provisioning:/etc/grafana/provisioning
|
||||||
- ../config/monitoring/grafana/dashboards:/etc/grafana/dashboards
|
- ../config/monitoring/grafana/dashboards:/etc/grafana/dashboards
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ version: "3.7"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus
|
image: prom/prometheus:v2.49.1
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/monitoring/prometheus:/etc/prometheus
|
- ../config/monitoring/prometheus:/etc/prometheus
|
||||||
|
|||||||
@@ -95,14 +95,10 @@ groups:
|
|||||||
maxDataPoints: 43200
|
maxDataPoints: 43200
|
||||||
refId: condition
|
refId: condition
|
||||||
type: math
|
type: math
|
||||||
dashboardUid: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
panelId: 24
|
|
||||||
noDataState: Alerting
|
noDataState: Alerting
|
||||||
execErrState: Alerting
|
execErrState: Alerting
|
||||||
for: 15m
|
for: 15m
|
||||||
annotations:
|
annotations:
|
||||||
__dashboardUid__: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
__panelId__: "24"
|
|
||||||
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
||||||
isPaused: false
|
isPaused: false
|
||||||
- uid: censures_diff_external
|
- uid: censures_diff_external
|
||||||
@@ -191,14 +187,10 @@ groups:
|
|||||||
maxDataPoints: 43200
|
maxDataPoints: 43200
|
||||||
refId: condition
|
refId: condition
|
||||||
type: math
|
type: math
|
||||||
dashboardUid: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
panelId: 24
|
|
||||||
noDataState: Alerting
|
noDataState: Alerting
|
||||||
execErrState: Alerting
|
execErrState: Alerting
|
||||||
for: 15m
|
for: 15m
|
||||||
annotations:
|
annotations:
|
||||||
__dashboardUid__: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
__panelId__: "24"
|
|
||||||
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
||||||
isPaused: false
|
isPaused: false
|
||||||
- uid: claims_diff_external
|
- uid: claims_diff_external
|
||||||
@@ -287,14 +279,10 @@ groups:
|
|||||||
maxDataPoints: 43200
|
maxDataPoints: 43200
|
||||||
refId: condition
|
refId: condition
|
||||||
type: math
|
type: math
|
||||||
dashboardUid: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
panelId: 24
|
|
||||||
noDataState: Alerting
|
noDataState: Alerting
|
||||||
execErrState: Alerting
|
execErrState: Alerting
|
||||||
for: 15m
|
for: 15m
|
||||||
annotations:
|
annotations:
|
||||||
__dashboardUid__: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
__panelId__: "24"
|
|
||||||
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
||||||
isPaused: false
|
isPaused: false
|
||||||
- uid: conditional_star_release_diff_external
|
- uid: conditional_star_release_diff_external
|
||||||
@@ -383,14 +371,10 @@ groups:
|
|||||||
maxDataPoints: 43200
|
maxDataPoints: 43200
|
||||||
refId: condition
|
refId: condition
|
||||||
type: math
|
type: math
|
||||||
dashboardUid: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
panelId: 24
|
|
||||||
noDataState: Alerting
|
noDataState: Alerting
|
||||||
execErrState: Alerting
|
execErrState: Alerting
|
||||||
for: 15m
|
for: 15m
|
||||||
annotations:
|
annotations:
|
||||||
__dashboardUid__: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
__panelId__: "24"
|
|
||||||
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
||||||
isPaused: false
|
isPaused: false
|
||||||
- uid: delegated_sending_diff_external
|
- uid: delegated_sending_diff_external
|
||||||
@@ -479,14 +463,10 @@ groups:
|
|||||||
maxDataPoints: 43200
|
maxDataPoints: 43200
|
||||||
refId: condition
|
refId: condition
|
||||||
type: math
|
type: math
|
||||||
dashboardUid: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
panelId: 24
|
|
||||||
noDataState: Alerting
|
noDataState: Alerting
|
||||||
execErrState: Alerting
|
execErrState: Alerting
|
||||||
for: 15m
|
for: 15m
|
||||||
annotations:
|
annotations:
|
||||||
__dashboardUid__: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
__panelId__: "24"
|
|
||||||
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
||||||
isPaused: false
|
isPaused: false
|
||||||
- uid: ecliptic_diff_external
|
- uid: ecliptic_diff_external
|
||||||
@@ -575,14 +555,10 @@ groups:
|
|||||||
maxDataPoints: 43200
|
maxDataPoints: 43200
|
||||||
refId: condition
|
refId: condition
|
||||||
type: math
|
type: math
|
||||||
dashboardUid: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
panelId: 24
|
|
||||||
noDataState: Alerting
|
noDataState: Alerting
|
||||||
execErrState: Alerting
|
execErrState: Alerting
|
||||||
for: 15m
|
for: 15m
|
||||||
annotations:
|
annotations:
|
||||||
__dashboardUid__: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
__panelId__: "24"
|
|
||||||
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
||||||
isPaused: false
|
isPaused: false
|
||||||
- uid: linear_star_release_diff_external
|
- uid: linear_star_release_diff_external
|
||||||
@@ -671,14 +647,10 @@ groups:
|
|||||||
maxDataPoints: 43200
|
maxDataPoints: 43200
|
||||||
refId: condition
|
refId: condition
|
||||||
type: math
|
type: math
|
||||||
dashboardUid: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
panelId: 24
|
|
||||||
noDataState: Alerting
|
noDataState: Alerting
|
||||||
execErrState: Alerting
|
execErrState: Alerting
|
||||||
for: 15m
|
for: 15m
|
||||||
annotations:
|
annotations:
|
||||||
__dashboardUid__: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
__panelId__: "24"
|
|
||||||
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
||||||
isPaused: false
|
isPaused: false
|
||||||
- uid: polls_diff_external
|
- uid: polls_diff_external
|
||||||
@@ -767,14 +739,10 @@ groups:
|
|||||||
maxDataPoints: 43200
|
maxDataPoints: 43200
|
||||||
refId: condition
|
refId: condition
|
||||||
type: math
|
type: math
|
||||||
dashboardUid: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
panelId: 24
|
|
||||||
noDataState: Alerting
|
noDataState: Alerting
|
||||||
execErrState: Alerting
|
execErrState: Alerting
|
||||||
for: 15m
|
for: 15m
|
||||||
annotations:
|
annotations:
|
||||||
__dashboardUid__: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
__panelId__: "24"
|
|
||||||
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
||||||
isPaused: false
|
isPaused: false
|
||||||
|
|
||||||
@@ -865,14 +833,10 @@ groups:
|
|||||||
maxDataPoints: 43200
|
maxDataPoints: 43200
|
||||||
refId: condition
|
refId: condition
|
||||||
type: math
|
type: math
|
||||||
dashboardUid: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
panelId: 24
|
|
||||||
noDataState: Alerting
|
noDataState: Alerting
|
||||||
execErrState: Alerting
|
execErrState: Alerting
|
||||||
for: 15m
|
for: 15m
|
||||||
annotations:
|
annotations:
|
||||||
__dashboardUid__: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
__panelId__: "24"
|
|
||||||
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
||||||
isPaused: false
|
isPaused: false
|
||||||
- uid: merkl_sushiswap_diff_external
|
- uid: merkl_sushiswap_diff_external
|
||||||
@@ -961,13 +925,9 @@ groups:
|
|||||||
maxDataPoints: 43200
|
maxDataPoints: 43200
|
||||||
refId: condition
|
refId: condition
|
||||||
type: math
|
type: math
|
||||||
dashboardUid: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
panelId: 24
|
|
||||||
noDataState: Alerting
|
noDataState: Alerting
|
||||||
execErrState: Alerting
|
execErrState: Alerting
|
||||||
for: 15m
|
for: 15m
|
||||||
annotations:
|
annotations:
|
||||||
__dashboardUid__: cb9b746a-9abc-482e-9214-5231e0dd75ca
|
|
||||||
__panelId__: "24"
|
|
||||||
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
summary: Watcher {{ index $labels "instance" }} of group {{ index $labels "job" }} is falling behind external head by {{ index $values "diff" }}
|
||||||
isPaused: false
|
isPaused: false
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build the birbit image
|
||||||
|
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
|
||||||
|
docker build -t cerc/birbit:local -f ${CERC_REPO_BASE_DIR}/birbit/Dockerfile ${build_command_args} ${CERC_REPO_BASE_DIR}/birbit
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
FROM node:14
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN npm install && npm run build
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
CMD ["npm", "run", "serve"]
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build the geojson image
|
||||||
|
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
|
||||||
|
docker build -t cerc/geojson:local -f ${CERC_CONTAINER_BASE_DIR}/cerc-geojson/Dockerfile ${build_command_args} ${CERC_REPO_BASE_DIR}/geojson.io
|
||||||
|
#docker build -t cerc/geojson:local -f ${CERC_REPO_BASE_DIR}/geojson.io/Dockerfile ${build_command_args} ${CERC_REPO_BASE_DIR}/geojson.io
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# birbit
|
||||||
|
|
||||||
|
takes geo-tagged images, publishes the metadata on chain, then generates a geojson front end of that geo data
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
version: "0.1"
|
||||||
|
name: birbit
|
||||||
|
repos:
|
||||||
|
#- github.com/zramsay/birbit
|
||||||
|
- github.com/mapbox/geojson.io
|
||||||
|
containers:
|
||||||
|
#- cerc/birbit
|
||||||
|
- cerc/geojson
|
||||||
|
pods:
|
||||||
|
# configurable process that reads from chain and generates a view for the front end
|
||||||
|
# for MVP is basically does nothing, b/c FE view is reading all records
|
||||||
|
# imagine a 'watcher' for a specific view
|
||||||
|
#- birbit
|
||||||
|
# front end, gets its file from kubo;
|
||||||
|
# https://github.com/mapbox/geojson.io/blob/main/API.md#datadatatextx-url
|
||||||
|
# deployed via kubernetes
|
||||||
|
- geojson
|
||||||
|
# hosts all the dot geojson files that are required to generated views
|
||||||
|
- kubo
|
||||||
@@ -140,6 +140,10 @@ Set the following env variables in the deployment env config file (`monitoring-d
|
|||||||
# External ETH RPC endpoint (filecoin)
|
# External ETH RPC endpoint (filecoin)
|
||||||
# (Optional, default: https://api.node.glif.io/rpc/v1)
|
# (Optional, default: https://api.node.glif.io/rpc/v1)
|
||||||
CERC_FIL_RPC_ENDPOINT=
|
CERC_FIL_RPC_ENDPOINT=
|
||||||
|
|
||||||
|
# Grafana server host URL (used in various links in alerts, etc.)
|
||||||
|
# (Optional, default: http://localhost:3000)
|
||||||
|
GF_SERVER_ROOT_URL=
|
||||||
```
|
```
|
||||||
|
|
||||||
## Start the stack
|
## Start the stack
|
||||||
|
|||||||
@@ -130,6 +130,10 @@ Set the following env variables in the deployment env config file (`monitoring-w
|
|||||||
```bash
|
```bash
|
||||||
# Infura key to be used
|
# Infura key to be used
|
||||||
CERC_INFURA_KEY=
|
CERC_INFURA_KEY=
|
||||||
|
|
||||||
|
# Grafana server host URL to be used
|
||||||
|
# (Optional, default: http://localhost:3000)
|
||||||
|
GF_SERVER_ROOT_URL=
|
||||||
```
|
```
|
||||||
|
|
||||||
## Start the stack
|
## Start the stack
|
||||||
|
|||||||
@@ -63,7 +63,9 @@ echo "Version reported is: ${reported_version_string}"
|
|||||||
echo "Cloning repositories into: $CERC_REPO_BASE_DIR"
|
echo "Cloning repositories into: $CERC_REPO_BASE_DIR"
|
||||||
rm -rf $CERC_REPO_BASE_DIR
|
rm -rf $CERC_REPO_BASE_DIR
|
||||||
mkdir -p $CERC_REPO_BASE_DIR
|
mkdir -p $CERC_REPO_BASE_DIR
|
||||||
# Test basic stack-orchestrator deploy
|
$TEST_TARGET_SO --stack test setup-repositories
|
||||||
|
$TEST_TARGET_SO --stack test build-containers
|
||||||
|
# Test basic stack-orchestrator deploy to k8s
|
||||||
test_deployment_dir=$CERC_REPO_BASE_DIR/test-deployment-dir
|
test_deployment_dir=$CERC_REPO_BASE_DIR/test-deployment-dir
|
||||||
test_deployment_spec=$CERC_REPO_BASE_DIR/test-deployment-spec.yml
|
test_deployment_spec=$CERC_REPO_BASE_DIR/test-deployment-spec.yml
|
||||||
$TEST_TARGET_SO --stack test deploy --deploy-to k8s-kind init --output $test_deployment_spec --config CERC_TEST_PARAM_1=PASSED
|
$TEST_TARGET_SO --stack test deploy --deploy-to k8s-kind init --output $test_deployment_spec --config CERC_TEST_PARAM_1=PASSED
|
||||||
|
|||||||
Reference in New Issue
Block a user