From 308f7fad797138a4577ac4ede3bc04c25313c622 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Wed, 9 Jul 2025 12:58:53 -0500 Subject: [PATCH] bug fix & new docker --- Dockerfile | 14 ++++++++++++++ www/html/_plugins/dbe.py | 2 +- www/html/features.html | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..660ef1d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM debian +RUN ["apt","update","--fix-missing"] +RUN ["apt","install","-y","git","python3","python3-pip","python3-virtualenv","sqlite3","postgresql"] +RUN ["virtualenv","/usr/local"] +RUN ["/usr/local/bin/pip3","install","--upgrade","pip","xlsxwriter","openpyxl","pyncclient"] +RUN ["/usr/local/bin/pip3","install","qcms@git+https://dev.the-phi.com/git/qcms/cms"] +RUN ["/usr/local/bin/pip3","install","smart-logger@git+https://dev.the-phi.com/git/library/smart-top"] + +RUN ["git","clone","https://dev.the-phi.com/git/data-transport/studio","/data-bridge"] +EXPOSE 8082 +ENV PATH=/usr/local/bin:$PATH +ENTRYPOINT ["qcms","bootup"] +# RUN ["echo","'qcms bootup /data-bridge'",">","bootup.sh"] +CMD ["/data-bridge"] \ No newline at end of file diff --git a/www/html/_plugins/dbe.py b/www/html/_plugins/dbe.py index 733ad40..bc1932e 100644 --- a/www/html/_plugins/dbe.py +++ b/www/html/_plugins/dbe.py @@ -35,7 +35,7 @@ def get (**_args) : @cms.Plugin(mimetype="application/json",method="GET") def providers (**_args): technologies = [] - transport.supported().apply(lambda row: [technologies.append({"group":row.name,"name":_name}) for _name in row if _name != '' and row.name in ['sql','nosql','warehouse','cloud']],axis=0).tolist() + transport.supported().apply(lambda row: [technologies.append({"group":row.name,"name":_name}) for _name in row if _name != '' and row.name in ['sql','nosql','warehouse','cloud']],axis=0) return technologies @cms.Plugin(mimetype="text/plain") def version (**_args) : diff --git a/www/html/features.html b/www/html/features.html index fc4b8fc..5d42a9a 100644 --- a/www/html/features.html +++ b/www/html/features.html @@ -34,7 +34,7 @@ Open python framework for reading/writing ont multiple databases