Skip to content

Commit

Permalink
Update villas version (#245)
Browse files Browse the repository at this point in the history
This PR updates the VILLASnode version to `5185c25`. The
`InterfaceWorkerVillas` is updated accordingly.

Solves #233
  • Loading branch information
dinkelbachjan authored Oct 11, 2023
2 parents db90fd4 + a8ef100 commit ac67f2f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 35 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build_test_linux_fedora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ jobs:
container_commands: |
docker exec dpsim-compose_dpsim_1 /bin/bash -c "pip install paho-mqtt"
docker exec dpsim-compose_mqtt_1 mosquitto_sub -t "/dpsim-mqtt" -u wildcard -v&
docker exec dpsim-compose_dpsim_1 /bin/bash -c "cd /dpsim && python /dpsim/examples/villas/dpsim-mqtt-producer.py"&
docker exec dpsim-compose_dpsim_1 /bin/bash -c "cd /dpsim && python /dpsim/examples/villas/dpsim-mqtt.py"
docker exec dpsim-compose_dpsim_1 /bin/bash -c "cd /dpsim && python3 /dpsim/examples/villas/dpsim-mqtt-producer.py"&
docker exec dpsim-compose_dpsim_1 /bin/bash -c "cd /dpsim && python3 /dpsim/examples/villas/dpsim-mqtt.py"
test-villas-examples-2:
name: Run dpsim-mqtt-import-export VILLASnode example
Expand All @@ -280,7 +280,7 @@ jobs:
compose_file_path: examples/villas/docker-compose-tests
container_commands: |
docker exec dpsim-compose_mqtt_1 mosquitto_sub -t "#" -u wildcard -v&
docker exec dpsim-compose_dpsim_1 /bin/bash -c "cd /dpsim && python /dpsim/examples/villas/dpsim-mqtt-import-export.py"
docker exec dpsim-compose_dpsim_1 /bin/bash -c "cd /dpsim && python3 /dpsim/examples/villas/dpsim-mqtt-import-export.py"
test-villas-examples-3:
name: Run dpsim-mqtt-import-export-MIMO VILLASnode example
Expand All @@ -291,7 +291,7 @@ jobs:
continue_on_error: true
container_commands: |
docker exec dpsim-compose_mqtt_1 mosquitto_sub -t "#" -u wildcard -v&
docker exec dpsim-compose_dpsim_1 /bin/bash -c "cd /dpsim && python /dpsim/examples/villas/dpsim-mqtt-import-export-MIMO.py"
docker exec dpsim-compose_dpsim_1 /bin/bash -c "cd /dpsim && python3 /dpsim/examples/villas/dpsim-mqtt-import-export-MIMO.py"
test-villas-examples-4:
name: Run dpsim-file VILLASnode example
Expand All @@ -302,7 +302,7 @@ jobs:
continue_on_error: true
container_commands: |
docker exec dpsim-compose_dpsim_1 /bin/bash -c "sleep 3 && tail -f /dpsim/logs/output.csv"&
docker exec dpsim-compose_dpsim_1 /bin/bash -c "cd /dpsim && python /dpsim/examples/villas/dpsim-file.py"
docker exec dpsim-compose_dpsim_1 /bin/bash -c "cd /dpsim && python3 /dpsim/examples/villas/dpsim-file.py"
test-villas-examples-5:
name: Run mqtt-cigre-mv-pf-profiles VILLASnode example
Expand All @@ -312,4 +312,4 @@ jobs:
compose_file_path: examples/villas/docker-compose-tests
container_commands: |
docker exec dpsim-compose_mqtt_1 mosquitto_sub -t "#" -u wildcard -v&
docker exec dpsim-compose_dpsim_1 /bin/bash -c "cd /dpsim && python /dpsim/examples/villas/dpsim-mqtt-cigre-mv-pf-profiles.py"
docker exec dpsim-compose_dpsim_1 /bin/bash -c "cd /dpsim && python3 /dpsim/examples/villas/dpsim-mqtt-cigre-mv-pf-profiles.py"
4 changes: 1 addition & 3 deletions dpsim-villas/src/InterfaceWorkerVillas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ void InterfaceWorkerVillas::open() {
mNode = node::NodeFactory::make(nodeTypeString);

int ret = 0;
uuid_t fakeSuperNodeUUID;
uuid_generate_random(fakeSuperNodeUUID);
ret = mNode->parse(config, fakeSuperNodeUUID);
ret = mNode->parse(config);
if (ret < 0) {
SPDLOG_LOGGER_ERROR(mLog, "Error: Node in InterfaceVillas failed to parse config. Parse returned code {}", ret);
std::exit(1);
Expand Down
10 changes: 5 additions & 5 deletions packaging/Docker/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM fedora:36 AS base

ARG CIM_VERSION=CGMES_2.4.15_16FEB2016
ARG VILLAS_VERSION=c976cd62d8c6667a078be0785ca3e623a05f7456
ARG VILLAS_VERSION=5185c25ba7442c3e9264f4225f9a46829956732c

ARG CMAKE_OPTS
ARG MAKE_OPTS=-j4

LABEL \
org.opencontainers.image.title = "DPsim" \
org.opencontainers.image.licenses = "MPL 2.0" \
org.opencontainers.image.url = "http://dpsim.fein-aachen.org/" \
org.opencontainers.image.source = "https://github.com/sogno-platform/dpsim"
org.opencontainers.image.title="DPsim" \
org.opencontainers.image.licenses="MPL 2.0" \
org.opencontainers.image.url="http://dpsim.fein-aachen.org/" \
org.opencontainers.image.source="https://github.com/sogno-platform/dpsim"

RUN dnf -y update

Expand Down
21 changes: 5 additions & 16 deletions packaging/Docker/Dockerfile.dev-rocky
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ ARG CMAKE_OPTS
ARG MAKE_OPTS=-j4

LABEL \
org.opencontainers.image.title = "DPsim" \
org.opencontainers.image.licenses = "MPL 2.0" \
org.opencontainers.image.url = "http://dpsim.fein-aachen.org/" \
org.opencontainers.image.source = "https://github.com/sogno-platform/dpsim"
org.opencontainers.image.title="DPsim" \
org.opencontainers.image.licenses="MPL 2.0" \
org.opencontainers.image.url="http://dpsim.fein-aachen.org/" \
org.opencontainers.image.source="https://github.com/sogno-platform/dpsim"

RUN dnf -y update && \
dnf install -y epel-release dnf-plugins-core && \
Expand Down Expand Up @@ -54,6 +54,7 @@ RUN dnf -y install \
openssl-devel \
libuuid-devel \
libconfig-devel \
libwebsockets-devel \
libnl3-devel \
libcurl-devel \
jansson-devel \
Expand All @@ -79,18 +80,6 @@ RUN git clone --branch 3.0 --recurse-submodules --depth 1 https://git.rwth-aache
ENV PATH="$PWD/cricket/bin:${PATH}"
ENV LD_LIBRARY_PATH="$PWD/cricket/bin:${LD_LIBRARY_PATH}"

# Install Libwebsockets from source because the repo variant is not suitable
RUN git clone --branch v4.3-stable --depth 1 https://libwebsockets.org/repo/libwebsockets && \
mkdir -p libwebsockets/build && \
pushd libwebsockets/build && \
cmake ${CMAKE_OPTS} .. \
-DLWS_WITH_IPV6=ON \
-DLWS_WITHOUT_TESTAPPS=ON \
-DLWS_WITHOUT_EXTENSIONS=OFF \
-DLWS_WITH_SERVER_STATUS=ON && \
make ${MAKE_OPTS} ${TARGET} && \
popd

# Profiling dependencies
RUN dnf -y install \
graphviz \
Expand Down
10 changes: 5 additions & 5 deletions packaging/Docker/Dockerfile.manylinux
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
FROM quay.io/pypa/manylinux_2_28_x86_64

ARG CIM_VERSION=CGMES_2.4.15_16FEB2016
ARG VILLAS_VERSION=c976cd62d8c6667a078be0785ca3e623a05f7456
ARG VILLAS_VERSION=5185c25ba7442c3e9264f4225f9a46829956732c

ARG CMAKE_OPTS
ARG MAKE_OPTS=-j4

ENV PLAT=manylinux_2_28_x86_64

LABEL \
org.opencontainers.image.title = "DPsim" \
org.opencontainers.image.licenses = "MPL 2.0" \
org.opencontainers.image.url = "http://dpsim.fein-aachen.org/" \
org.opencontainers.image.source = "https://github.com/sogno-platform/dpsim"
org.opencontainers.image.title="DPsim" \
org.opencontainers.image.licenses="MPL 2.0" \
org.opencontainers.image.url="http://dpsim.fein-aachen.org/" \
org.opencontainers.image.source="https://github.com/sogno-platform/dpsim"

RUN dnf -y update
RUN yum install -y epel-release
Expand Down

0 comments on commit ac67f2f

Please sign in to comment.