Skip to content

Commit 3b70926

Browse files
committed
Add plugins
1 parent 00eca5a commit 3b70926

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

grafana/non-prod/docker/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@ RUN echo "Installing Python..." \
77
&& apk add --no-cache python3 py3-pip \
88
&& echo "Python installed successfully."
99

10+
# set timeout for plugin installation
11+
ENV GF_INSTALL_PLUGINS_TIMEOUT=300
12+
13+
# Install Grafana plugins
14+
RUN echo "Installing plugins..." \
15+
&& grafana-cli plugins install grafana-lokiexplore-app
16+
1017
# Copy provisioning and dashboards
11-
RUN echo "Copying provisioning files..."
18+
RUN echo "=========\n\n\n\Copying provisioning files..."
1219
COPY ./provisioning /etc/grafana/provisioning
1320
RUN echo "Provisioning files copied."
1421

grafana/non-prod/docker/lifecycle-policy.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"rules": [
33
{
44
"rulePriority": 1,
5-
"description": "Retain only the latest image",
5+
"description": "Retain only the latest 10 images",
66
"selection": {
77
"tagStatus": "any",
88
"countType": "imageCountMoreThan",
9-
"countNumber": 1,
9+
"countNumber": 10,
1010
"tagPrefixList": [""]
1111
},
1212
"action": {

0 commit comments

Comments
 (0)