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

[Documentation] Run your own without docker #449

Closed
PierreR opened this issue Sep 15, 2018 · 7 comments
Closed

[Documentation] Run your own without docker #449

PierreR opened this issue Sep 15, 2018 · 7 comments

Comments

@PierreR
Copy link

PierreR commented Sep 15, 2018

The installation section of the 'Run Your Own" implies that it is possible to run docsearch without using docker.

There is nothing that seems to describe how to do so. The only way seems to look at the source of the docker files and write a script to mimic parts of it.

Is that correct ? Could the documentation be improved to make it more explicit ?

Thanks.

@PierreR PierreR changed the title [Documentation] Run your own without docker (installation) [Documentation] Run your own without docker Sep 15, 2018
@lubos
Copy link

lubos commented Sep 26, 2018

I'm running docsearch without Docker. I have a script which runs once a day and updates data in the exact format Docker instance would.

There are only 3 attributes each object needs to be compatible with docsearch

"content": "string",
"hierarchy": {
    "lvl0": "string",
    "lvl1": "string",
    "lvl2": "string"
},
"url": "string"

@s-pace
Copy link

s-pace commented Oct 11, 2018

👋 PierreR,

Thank you for sharing your concerns. We will try to document the development workflow in a better way.

We highly recommend you to use the docker:run command instead

Cc algolia/docsearch-scraper#403

@pixelastic
Copy link
Contributor

Hello,

It should be possible to run DocSearch without Docker, providing you have the correct python version installed as well as all the needed dependencies (that's actually how I run it).

Considering that dealing with python dependencies can be a hassle, we also provides a Docker version (and because it makes it easier for us to deploy), but you don't have to use it. We recommend that you do though, as it makes things easier to debug for us when issues arise :)

Running pip install -r requirements.txt with python 2 should install all you need, and they you should be able to run the ./docsearch executable.

Let us know if it doesn't work

@PierreR
Copy link
Author

PierreR commented Oct 11, 2018

@s-pace That is what I ended up doing. My biggest confusion has been that you can't run the docker:run command unless you have python installed with the following requirements:

  • future
  • python-dotenv
  • requests

In retrospect, this is rather obvious but it is a source of confusion when you are using a system such as nixos where you learn to be quite explicit about your dependencies.

@PierreR
Copy link
Author

PierreR commented Oct 11, 2018

@pixelastic Thanks for the info. As you said,, python dependencies can be quite tricky. Particularly in this case because the requirement.txt file involves a lot of circular dependencies when you try to convert it into a requirement.nix file. I had to use the docker and I am quite happy about it.

@pixelastic
Copy link
Contributor

My biggest confusion has been that you can't run the docker:run command unless you have python installed.

Yes, this is an issue we didn't realized until recently. We will try to make the Docker usage completely stand-alone in the future.

when you are using a system such as nixos where you learn to be quite explicit about your dependencies.

For the record, we are also getting quite frustrated with the setup and are in the process of moving the dependency handling to pipenv. No ETA for that though, but we'll keep you updated and make sure the documentation is updated as well.

s-pace pushed a commit to algolia/docsearch-scraper that referenced this issue Nov 2, 2018
s-pace pushed a commit to algolia/docsearch-scraper that referenced this issue Nov 2, 2018
s-pace pushed a commit to algolia/docsearch-scraper that referenced this issue Nov 2, 2018
s-pace pushed a commit to algolia/docsearch-scraper that referenced this issue Nov 2, 2018
s-pace pushed a commit to algolia/docsearch-scraper that referenced this issue Nov 7, 2018
s-pace pushed a commit to algolia/docsearch-scraper that referenced this issue Nov 7, 2018
s-pace pushed a commit to algolia/docsearch-scraper that referenced this issue Nov 7, 2018
s-pace pushed a commit to algolia/docsearch-scraper that referenced this issue Nov 7, 2018
s-pace pushed a commit to algolia/docsearch-scraper that referenced this issue Nov 7, 2018
@s-pace
Copy link

s-pace commented Nov 27, 2018

#546

@s-pace s-pace closed this as completed Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants