-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: No module named cabot-check-network #2
Comments
Hello ! Same problem here, did you manage to get something working ? (I assume not) Actually, Cabot gets a lack of documentation about Plugins (installation). If @JeanFred could guide us it'd be very cool 👌 Bye 👋 |
@HorlogeSkynet I have not figured this out quite yet. I scoured the documentation as well, but could not find anything to point me in the right direction. I would be happy to PR the documentation updates if we find a fix for this. |
Yeah same for me ! Nevertheless, I'm onto something, keep you posted 👌 |
Okay, this is a way to do it apparently :
But it failed afterwards with :
|
Okay, I'm back 'cause I finally got it working. New procedure : git clone git@github.com:arachnys/cabot.git
cd cabot/ Apply theses changes : diff --git a/Dockerfile b/Dockerfile
index e9bd518..da3377b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,7 +15,8 @@ RUN apk add --no-cache \
libffi-dev \
openldap-dev \
ca-certificates \
- bash
+ bash \
+ wget
RUN npm install -g \
--registry http://registry.npmjs.org/ \
@@ -32,6 +33,7 @@ RUN pip install --no-cache-dir -r requirements-dev.txt
COPY requirements-plugins.txt ./
RUN pip install --no-cache-dir -r requirements-plugins.txt
+RUN wget https://github.com/cabotapp/cabot-check-network/archive/master.tar.gz && pip install --no-cache-dir master.tar.gz
ADD . /code/
diff --git a/conf/default.env b/conf/default.env
index fd289b6..45c54e9 100644
--- a/conf/default.env
+++ b/conf/default.env
@@ -1,5 +1,5 @@
# Plugins to be loaded at launch
-CABOT_PLUGINS_ENABLED=cabot_alert_hipchat,cabot_alert_twilio,cabot_alert_email,cabot_alert_slack
+CABOT_PLUGINS_ENABLED=cabot_alert_hipchat,cabot_alert_twilio,cabot_alert_email,cabot_alert_slack,cabot_check_network
DEBUG=t
DATABASE_URL=postgres://postgres@db:5432/postgres Now tweak the docker-compose build
docker-compose up Now, if @JeanFred could explain how (if it's possible) we can add a plugin to existing Cabot containers, it'd be perfect ! |
Thanks @HorlogeSkynet. Works great. +1 on the request for explanation on adding plugin to existing Cabot containers. |
I am using the docker image for Cabot and I am interested in extending some of the functionality with the cabot-check-network plugin. Is there documentation on how I can accomplish this? I have added this plugin to the $CABOT_PLUGINS_ENABLED envar, but I am receiving the error below. I have tried creating my own docker image where I
RUN pip install --no-cache-dir --disable-pip-version-check https://github.com/cabotapp/cabot-check-network/archive/master.zip
, but this didn't help. This may be my lack of python/django knowledge. I have searched all of the documentation and issues in the Cabot project, but falling short on how I should be enabling additional plugins. Thanks in advance!!CABOT_PLUGINS_ENABLED: 'cabot_alert_hipchat,cabot_alert_twilio,cabot_alert_email,cabot_alert_slack,cabot-check-network'
The text was updated successfully, but these errors were encountered: