Skip to content

Commit af6886b

Browse files
authored
Merge pull request #22 from ExamonHPC/release/v0.4.0
Release v0.4.0
2 parents 3b8ce9f + cbb3e76 commit af6886b

35 files changed

Lines changed: 901 additions & 1013 deletions

.github/workflows/installation-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v5
1919

2020
- name: Set up Docker
21-
uses: docker/setup-buildx-action@v3
21+
uses: docker/setup-buildx-action@v4
2222

2323
- name: Create Docker services
2424
run: |

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
*.log.*
33
*.pyc
44
.ipynb_*
5-
examon-cache/
6-
examon-cache/*
5+
examon-cache
76
build
87
site

Dockerfile

Lines changed: 14 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,35 @@
1-
FROM examonhpc/examon:0.2.0
1+
FROM examonhpc/examon:0.3.3
22

33
ENV EXAMON_HOME /etc/examon_deploy/examon
44

5-
# Create a backup of the existing sources.list
6-
RUN mv /etc/apt/sources.list /etc/apt/sources.list.backup
7-
8-
# Create a new sources.list file
9-
RUN touch /etc/apt/sources.list
10-
11-
# Debian strech moved to archived
12-
RUN echo "deb https://debian.mirror.garr.it/debian-archive/ stretch main" > /etc/apt/sources.list
13-
14-
15-
# Install dependencies
16-
RUN apt-get update && apt-get install -y \
17-
apt-transport-https \
18-
ca-certificates \
19-
libffi-dev \
20-
build-essential \
21-
libssl-dev \
22-
python-dev \
23-
&& rm -rf /var/lib/apt/lists/*
24-
25-
# copy app
5+
# Copy app
266
ADD ./publishers/random_pub ${EXAMON_HOME}/publishers/random_pub
27-
ADD ./lib/examon-common $EXAMON_HOME/lib/examon-common
287
ADD ./docker/examon/supervisor.conf /etc/supervisor/conf.d/supervisor.conf
298
ADD ./scripts/examon.conf $EXAMON_HOME/scripts/examon.conf
309
ADD ./web $EXAMON_HOME/web
3110

32-
# install
33-
RUN pip --trusted-host pypi.python.org install --upgrade pip==20.1.1
11+
# Venvs
12+
WORKDIR $EXAMON_HOME/scripts
13+
RUN virtualenv -p $(which python) py3_env
14+
3415
ENV PIP $EXAMON_HOME/scripts/ve/bin/pip
16+
ENV S_PIP $EXAMON_HOME/scripts/py3_env/bin/pip
3517

18+
# Install
3619
WORKDIR $EXAMON_HOME/lib/examon-common
37-
RUN $PIP install .
38-
RUN pip install .
20+
RUN $S_PIP install .
3921

22+
# Random publisher
4023
WORKDIR $EXAMON_HOME/publishers/random_pub
4124
RUN $PIP install -r requirements.txt
4225

26+
# Web
4327
WORKDIR $EXAMON_HOME/web
44-
RUN virtualenv flask
45-
RUN flask/bin/pip --trusted-host pypi.python.org install --upgrade pip==20.1.1
46-
RUN CASS_DRIVER_BUILD_CONCURRENCY=8 flask/bin/pip --trusted-host pypi.python.org install -r ./examon-server/requirements.txt
28+
RUN virtualenv -p $(which python) flask
29+
RUN CASS_DRIVER_BUILD_CONCURRENCY=8 flask/bin/pip install -r ./examon-server/requirements.txt
4730

4831
WORKDIR $EXAMON_HOME/scripts
4932

50-
EXPOSE 1883 9001
33+
EXPOSE 1883 5000 9001
5134

5235
CMD ["./frontend_ctl.sh", "start"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ It can be disabled as described in the [Enable/disable plugins](#enabledisable-t
3232
## Prerequisites
3333
Since Cassandra is the component that requires the majority of resources, you can find more details about the suggested hardware configuration of the system that will host the services here:
3434

35-
[Hardware Configuration](https://cassandra.apache.org/doc/latest/operating/hardware.html#:~:text=While%20Cassandra%20can%20be%20made,at%20least%2032GB%20of%20RAM)
35+
[Hardware Configuration](https://cassandra.apache.org/doc/latest/cassandra/managing/operating/hardware.html)
3636

3737
To install all the services needed by ExaMon we will use Docker and Docker Compose:
3838

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.3.1
1+
v0.4.0

docker-compose.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: "3.8"
21
name: "examon"
32

43
networks:
@@ -11,11 +10,8 @@ services:
1110
examon:
1211
build:
1312
context: .
14-
image: examonhpc/examon:0.2.2
13+
image: examonhpc/examon:latest
1514
volumes:
16-
- type: bind
17-
source: ./lib/examon-common
18-
target: /etc/examon_deploy/examon/lib/examon-common
1915
- type: bind
2016
source: ./web/examon-server
2117
target: /etc/examon_deploy/examon/web/examon-server

docker/examon/supervisor.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ startsec=2
2323

2424
[program:random_pub]
2525
directory=/etc/examon_deploy/examon/publishers/random_pub
26-
command=python ./random_pub.py run
26+
command=/etc/examon_deploy/examon/scripts/ve/bin/python random_pub.py run
2727
autostart=true
2828
autorestart=true
2929
stderr_logfile=/var/log/random_pub.log

docker/kairosdb/Dockerfile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@
22

33
FROM adoptopenjdk:8-jre-hotspot-focal
44

5-
# Create a backup of the existing sources.list
6-
RUN mv /etc/apt/sources.list /etc/apt/sources.list.backup
7-
8-
# Create a new sources.list file
9-
RUN touch /etc/apt/sources.list
10-
11-
# Add the new server repository for focal packages
12-
RUN echo "deb https://ubuntu.mirror.garr.it/ubuntu/ focal main" > /etc/apt/sources.list
13-
145
RUN set -eux; \
156
apt-get update; \
167
apt-get install -y --no-install-recommends \

docs/Administrators/Getting_started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This setup will install all server-side components of the ExaMon framework:
99
## Prerequisites
1010
Since Cassandra is the component that requires the majority of resources, you can find more details about the suggested hardware configuration of the system that will host the services here:
1111

12-
[Hardware Configuration](https://cassandra.apache.org/doc/latest/operating/hardware.html#:~:text=While%20Cassandra%20can%20be%20made,at%20least%2032GB%20of%20RAM)
12+
[Hardware Configuration](https://cassandra.apache.org/doc/latest/cassandra/managing/operating/hardware.html)
1313

1414
To install all the services needed by ExaMon we will use Docker and Docker Compose:
1515

docs/Plugins/examon_pub.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"metadata": {},
77
"source": [
88
"# Example plugin\n",
9-
"This notebook shows how to create a simple Examon publisher using Python (v3)\n",
9+
"This notebook shows how to create a simple Examon publisher using Python.\n",
1010
"\n",
1111
"## Install \n",
12-
"Install the publisher library.\n",
12+
"Install the latest Examon publisher library.\n",
1313
"\n",
14-
"NOTE: This is a development release so the final API may be different in future versions."
14+
"https://github.com/ExamonHPC/examon-common\n"
1515
]
1616
},
1717
{
@@ -23,7 +23,7 @@
2323
},
2424
"outputs": [],
2525
"source": [
26-
"! python -m pip install --upgrade https://github.com/fbeneventi/releases/releases/latest/download/examon-common-py3.zip"
26+
"! python -m pip install --upgrade git+https://github.com/ExamonHPC/examon-common.git@master"
2727
]
2828
},
2929
{

0 commit comments

Comments
 (0)