Skip to content

Commit c24b546

Browse files
authored
Merge pull request #16 from ExamonHPC/develop
Develop
2 parents 10ee574 + 49e49ff commit c24b546

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
pull_request:
9+
branches:
10+
- master
11+
- develop
12+
13+
jobs:
14+
test-installation:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Docker
21+
uses: docker/setup-buildx-action@v3
22+
23+
- name: Create Docker services
24+
run: |
25+
docker compose up -d
26+
# Wait for services to be healthy
27+
sleep 30
28+
29+
- name: Check Docker containers status
30+
run: |
31+
# Check if all containers are running
32+
if [ "$(docker compose ps --status running | wc -l)" -lt 2 ]; then
33+
echo "Not all containers are running. Current status:"
34+
docker compose ps
35+
docker compose logs
36+
exit 1
37+
fi
38+
39+
- name: Test Grafana accessibility
40+
run: |
41+
# Wait for Grafana to be ready
42+
timeout 60s bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:3000)" != "302" ]]; do sleep 5; done' || exit 1
43+
44+
- name: Test KairosDB accessibility
45+
run: |
46+
# Wait for KairosDB to be ready
47+
timeout 60s bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8083/api/v1/health/check)" != "204" ]]; do
48+
echo "Waiting for KairosDB..."
49+
sleep 5
50+
done' || exit 1
51+
echo "KairosDB is healthy"
52+
53+
- name: Test MQTT broker
54+
run: |
55+
# Install mosquitto-clients for MQTT testing
56+
sudo apt-get update && sudo apt-get install -y mosquitto-clients
57+
58+
# Test MQTT connection
59+
mosquitto_sub -h localhost -p 1883 -t test_topic -C 1 &
60+
mosquitto_pub -h localhost -p 1883 -t test_topic -m "test message"
61+
62+
- name: Cleanup
63+
if: always()
64+
run: docker compose down

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Examon HPC Monitoring
22

3+
[![Build Status](https://github.com/ExamonHPC/examon/actions/workflows/installation-test.yml/badge.svg?branch=develop)](https://github.com/ExamonHPC/examon/actions/workflows/installation-test.yml)
4+
35
A highly scalable framework for the performance and energy monitoring of HPC servers
46

57
## Setup

docker/kairosdb/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ ADD kairosdb-env.sh /opt/kairosdb/bin/kairosdb-env.sh
3333
EXPOSE 4242 8083 2003
3434

3535
ADD config-kairos.sh /usr/bin/config-kairos.sh
36+
RUN chmod +x /usr/bin/config-kairos.sh
3637

3738
# Run kairosdb in foreground on boot
3839
CMD ["/usr/bin/config-kairos.sh"]

0 commit comments

Comments
 (0)