-
Notifications
You must be signed in to change notification settings - Fork 337
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
build_docs does not work for Windows #2403
Comments
Pinging @elastic/es-docs (Team:Docs) |
Here are notes of what I tried to bootstrap build_docs from Windows into a Docker container. Prerequisite is The commands below start a container to run build_docs, and send requests to Docker host. It creates container images to run, but asking Docker host to start the images fails. Hard-coded Linux path /doc_builds/build_docs.pl is visible inside my container, but not in the Docker host because it is Windows. I think I got close, but I could not get fully unblocked.
|
We are not implementing any further enhancements to the the current doc build system. |
Thanks for the thorough description, @justincr-elastic . As Deb mentioned, we aren't planning to make any significant changes to the current system (this one). That said, I'm not opposed to adding some helpful notes to the README. I believe @ollyhowell got everything set up on Windows, so I'm curious how his approach differs from this. Maybe just using WSL? |
Yeah, I used WSL to get this running. It needed that one tweak to the python shebang you made, Greg - #2274 I didn't get very far with trying to run it via Windows... |
I switched to mounting the repos into a Debian VM. I opened a separate issue #2405 for an unrelated problem. |
Requirements for local builds of docs are listed as Python 3 and Docker.
There is no mentioned of OS requirements. Since Elasticsearch dev is supported on
Linux
,Mac
, andWindows
, my assumption is docs dev is supported on those same platforms.However, when I try running build_docs in
Git Bash for Windows
, but I ran into issues. I can get build_docs to run, but it appears to have code which depends onos.*
imports that are missing fromPython 3 for Windows
(https://www.python.org/downloads/).Steps to reproduce:
python3 --version
works.git clone [email protected]:elastic/docs.git
andgit clone [email protected]:elastic/elasticsearch.git
/c/GitHub/docs/build_docs --doc index.asciidoc --open
python3 /c/GitHub/docs/build_docs --doc index.asciidoc --open
os
.python3 /c/GitHub/docs/build_docs --doc index.asciidoc --open
I can get build_docs to execute, but dependencies
os.getgit
,os.getuid
, andos.dirname
are not found.Please update https://github.com/elastic/docs/blob/master/README.asciidoc with a workaround.
If it helps, some options might be:
If execution on Windows supported, fix cross-platform compatibility in build_docs, and add the
python3 cmd
andManaged app execution aliases
workarounds to the README.If execution on Windows is not supported, add a
docker run
command to bootstrap build_docs into a Linux container.No code changes required, and Docker is already a dependency. This might be the easier option. Include cloning the repos, and mounting them into the container, plus a third mount for the output folder.
Thank you.
The text was updated successfully, but these errors were encountered: