Skip to content
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

Fully automatic setup of ZotServer in a headless Linux server #4

Closed
contrun opened this issue May 4, 2023 · 2 comments
Closed

Fully automatic setup of ZotServer in a headless Linux server #4

contrun opened this issue May 4, 2023 · 2 comments

Comments

@contrun
Copy link

contrun commented May 4, 2023

Currently it seems that we need to manually install the zotero plugin and then start ZotServer from the command line. All this seems to require GUI interface. I'd like to have ZotServer running in a headless Linux server. Can we provide a script to automatically setup ZotServer? This may be helpful for end users and writing integration tests. Zotero better bibtex does have integration tests by automatically setup zotero in a headless environment https://github.com/retorquere/zotero-better-bibtex/tree/master/test . But it is too complex, we may strip better bibtex's code to suit our needs.

Here is my research for ZotServer to run in a headless Linux server. Please correct me if there is anything that is unnecessarily complex.

  1. Automatically install the plugins first. https://github.com/retorquere/zotero-better-bibtex/blob/fac743dd3604224b06af8e64735cdb960b11a010/test/features/steps/zotero.py#L51 installed the zotero better bibtex with selenium https://www.selenium.dev/selenium/docs/api/py/_modules/selenium/webdriver/firefox/firefox_profile.html#FirefoxProfile.add_extension .
  2. Setup ZotServer plugins. I don't know it is necessary for ZotServer. https://github.com/retorquere/zotero-better-bibtex/blob/fac743dd3604224b06af8e64735cdb960b11a010/test/features/steps/zotero.py#L585-L596 zotero better bibtex also uses selenium to do that. https://www.selenium.dev/selenium/docs/api/py/_modules/selenium/webdriver/firefox/firefox_profile.html#FirefoxProfile.update_preferences
@MunGell
Copy link
Owner

MunGell commented Jul 4, 2023

Hi @contrun

To be honest with you I am not 100% following on the problem that needs to be solved.
But in case my reading is correct, I was looking to implement a development workflow using Docker containers similar to how it is done in https://github.com/Dominic-DallOsto/zotero-api-endpoint

Would Docker solution be helpful for what you are trying to solve?

@MunGell
Copy link
Owner

MunGell commented Jun 24, 2024

Closing this as ZotServer will not be supported starting Zotero 7

See #5 (comment)

@MunGell MunGell closed this as completed Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants