Skip to content
Snippets Groups Projects
Commit f3308d91 authored by Hannes Feldt's avatar Hannes Feldt
Browse files

Resolve L2SS-1002 "Create docker image"

parent ed44efaa
No related branches found
No related tags found
1 merge request!3Resolve L2SS-1002 "Create docker image"
Showing with 102 additions and 0 deletions
stages:
- build
- tag-latest
- trigger
variables:
DOCKER_TLS_CERTDIR: "/certs"
IMAGE_TAG: $CI_COMMIT_REF_SLUG-$CI_PIPELINE_ID
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
.default_rules:
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
build:
stage: build
script:
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$IMAGE_TAG .
- docker push $CI_REGISTRY_IMAGE:$IMAGE_TAG
tag-latest:
stage: tag-latest
script:
- docker tag $CI_REGISTRY_IMAGE:$IMAGE_TAG $CI_REGISTRY_IMAGE:latest
- docker push $CI_REGISTRY_IMAGE:latest
rules:
- !reference [.default_rules, rules]
trigger-tango:
stage: trigger
trigger: lofar2.0/tango
rules:
- !reference [.default_rules, rules]
# has no CI/CD yet
# trigger-operations-central-management:
# stage: trigger
# trigger: lofar2.0/operations-central-management
# rules:
# - !reference [.default_rules, rules]
\ No newline at end of file
FROM grafana/grafana
USER root
RUN apk --no-cache add curl
RUN apk --no-cache add jq
USER grafana
# Install some plugins
RUN grafana-cli plugins install briangann-datatable-panel
RUN grafana-cli plugins install ae3e-plotly-panel
RUN grafana-cli plugins install yesoreyeram-infinity-datasource
RUN grafana-cli plugins install aceiot-svg-panel
RUN grafana-cli plugins install yesoreyeram-boomtable-panel
RUN grafana-cli plugins install orchestracities-map-panel
RUN grafana-cli plugins install larona-epict-panel
RUN wget https://algenty.github.io/flowcharting-repository/archives/agenty-flowcharting-panel-1.0.0b-SNAPSHOT.zip -O /tmp/agenty-flowcharting-panel.zip
RUN cd /var/lib/grafana/plugins/ && unzip /tmp/agenty-flowcharting-panel.zip && mv grafana-flowcharting agenty-flowcharting-panel
COPY grafana.ini /etc/grafana/
COPY alerting.json /opt/grafana-import/
COPY rules.json /opt/grafana-import/
COPY import-rules.sh /opt/grafana-import/
# Add default configuration through provisioning (see https://grafana.com/docs/grafana/latest/administration/provisioning)
COPY datasources /etc/grafana/provisioning/datasources/
COPY dashboards /var/lib/grafana/dashboards/
COPY run-wrapper.sh /run-wrapper.sh
ENTRYPOINT ["/run-wrapper.sh"]
{
"template_files": {},
"alertmanager_config": {
"route": {
"receiver": "Alerta",
"repeat_interval": "10m"
},
"templates": null,
"receivers": [
{
"name": "Alerta",
"grafana_managed_receiver_configs": [
{
"name": "Alerta",
"type": "webhook",
"disableResolveMessage": false,
"settings": {
"url": "http://alerta-server:8080/api/webhooks/prometheus?api-key=demo-key"
},
"secureFields": {}
}
]
}
]
}
}
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment