Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ build_*
manager/node_modules/
manager/dist/

staker-metrics/node_modules/
staker-metrics/dist/
stakers-metrics/node_modules/
stakers-metrics/dist/
docker-compose-tmp.yml
27 changes: 22 additions & 5 deletions dappnode_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,47 @@
"upstream": [
{
"repo": "prometheus/node_exporter",
"version": "v1.10.2",
"version": "v1.11.1",
"arg": "UPSTREAM_VERSION_NODE_EXPORTER"
},
{
"repo": "google/cadvisor",
"version": "0.55.0",
"version": "v0.60.3",
"arg": "UPSTREAM_VERSION_CADVISOR"
},
{
"repo": "prometheus/prometheus",
"version": "v3.8.1",
"version": "v3.13.0",
"arg": "UPSTREAM_VERSION_PROMETHEUS"
},
{
"repo": "grafana/grafana",
"version": "12.3.1",
"version": "13.1.0",
"arg": "UPSTREAM_VERSION_GRAFANA"
},
{
"repo": "grafana/loki",
"version": "3.6.3",
"version": "3.7.3",
"arg": "UPSTREAM_VERSION_LOKI"
}
],
"globalEnvs": [
{
"envs": [
"EXECUTION_CLIENT_MAINNET",
"CONSENSUS_CLIENT_MAINNET",
"EXECUTION_CLIENT_GNOSIS",
"CONSENSUS_CLIENT_GNOSIS",
"EXECUTION_CLIENT_LUKSO",
"CONSENSUS_CLIENT_LUKSO",
"EXECUTION_CLIENT_HOODI",
"CONSENSUS_CLIENT_HOODI",
"EXECUTION_CLIENT_SEPOLIA",
"CONSENSUS_CLIENT_SEPOLIA"
],
"services": ["stakers-metrics"]
}
],
"architectures": ["linux/amd64", "linux/arm64"],
"mainService": "grafana",
"author": "DAppNode Association <admin@dappnode.io> (https://github.com/dappnode)",
Expand Down
5 changes: 3 additions & 2 deletions manager/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
##########################
# Build Typescript app
##########################
FROM --platform=${BUILDPLATFORM:-amd64} node:alpine as build
FROM --platform=${BUILDPLATFORM:-amd64} node:24-alpine3.24 as build

WORKDIR /app
RUN apk add --no-cache yarn
COPY package.json yarn.lock ./
RUN yarn --frozen-lockfile --non-interactive --ignore-scripts --ignore-optional

Expand All @@ -13,7 +14,7 @@ RUN yarn build-webpack
##########################
# Final stage
##########################
FROM alpine
FROM alpine:3.24

WORKDIR /app
RUN apk add --update nodejs && \
Expand Down
24 changes: 12 additions & 12 deletions manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
},
"dependencies": {},
"devDependencies": {
"@types/chai": "^4.2.14",
"@types/mocha": "^8.0.4",
"@types/node": "^20.14.2",
"chai": "^4.2.0",
"eslint": "^7.13.0",
"mocha": "^8.2.1",
"prettier": "^2.1.2",
"rimraf": "^5.0.7",
"ts-loader": "^9.5.1",
"typescript": "^5.4.5",
"webpack": "^5.92.0",
"webpack-cli": "^5.1.4"
"@types/chai": "^5.2.3",
"@types/mocha": "^10.0.10",
"@types/node": "^26.1.0",
"chai": "^6.2.2",
"eslint": "^10.6.0",
"mocha": "^11.7.6",
"prettier": "^3.9.4",
"rimraf": "^6.1.3",
"ts-loader": "^9.6.2",
"typescript": "^6.0.3",
"webpack": "^5.108.4",
"webpack-cli": "^7.2.1"
}
}
5 changes: 3 additions & 2 deletions manager/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"target": "ESNext",
"sourceMap": true /* Generates corresponding '.map' file. */,
"outDir": "dist" /* Redirect output structure to the directory. */,
"downlevelIteration": true /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */,
"rootDir": "./src",

/* Strict Type-Checking Options */
"strict": true /* Enable all strict type-checking options. */,
Expand All @@ -24,8 +24,9 @@
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,

/* Module Resolution Options */
"moduleResolution": "node",
"moduleResolution": "bundler",
"esModuleInterop": true,
"types": ["node"],
"useUnknownInCatchVariables": false
},
"include": ["./src/**/*.ts"]
Expand Down
Loading
Loading