lippserd / docker-compose-icinga

docker-compose Icinga stack
92 stars 85 forks source link

Icinga DB snapshot incompatibility #13

Closed lippserd closed 3 years ago

lippserd commented 3 years ago

resolves #11 resolves #12

459below commented 3 years ago

Running this PR, the stack seems to be working again! Thanks!

image

t0suj4 commented 3 years ago

This patch does not work anymore. ipl-orm changed its dependency to the latest version of ipl-stdlib. Had to add

&& docker composer require -d /usr/share/icinga-php/ipl ipl/stdlib:dev-master

to env/icingaweb2/Dockerfile

BercziSandor commented 3 years ago

@lippserd,

I tried this branch and the extra patch of @t0suj4, invain.


Try 1: No change in the branch:

git clone -b icingadb-snapshot-incompatibility https://github.com/lippserd/docker-compose-icinga.git
cd docker-compose-icinga
docker-compose -p icinga-playground up

Log: console_branch_head.log


Try 2: patch of @t0suj4:

env/icingaweb2$ git diff
diff --git a/env/icingaweb2/Dockerfile b/env/icingaweb2/Dockerfile
index d04b66a..9c53068 100644
--- a/env/icingaweb2/Dockerfile
+++ b/env/icingaweb2/Dockerfile
@@ -8,6 +8,7 @@ RUN apt update \
     && apt install -y composer \
     && composer require -d /usr/share/icinga-php/ipl ipl/html:dev-master \
     && composer require -d /usr/share/icinga-php/ipl ipl/web:dev-master \
+    && docker composer require -d /usr/share/icinga-php/ipl ipl/stdlib:dev-master \
     && composer require -d /usr/share/icinga-php/ipl ipl/orm:dev-master
 RUN rm -rf /usr/share/icingaweb2/modules/icingadb/*
 USER www-data

Log: console_patch.log


I see 2 solutions for this issue: