Skip to content

Docker: Fix building x-pack references #664

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

Merged
merged 1 commit into from
Mar 5, 2019

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Mar 5, 2019

Fixes building the x-pack reference books with --doc. They require a
special directory layout that build_docs.pl relied on the user to
build manually. build_docs builds the docker filesystem agnostic of
the user's filesystem and without this change would stuff all of the
source repos into /doc in the docker image.

For example, the elasticsearch and x-pack-elasticsearch repo expect
to be layed out like this:

+ elasticsearch
\ elasticsearch-extra
 + x-pack-elasticsearch

but docker was putting them in /docs/elasticsearch and
/docs/x-pack-elasticsearch.

This changes how they are mounted in the docker image so they'll build.
Now all repos with names like x-pack-foo are mounted in foo-extra.
This isn't the cleanest thing in the world, but I expect we can revert
it once we no longer have to support building the docs outside of
docker.

Relates to #653.

Fixes building the x-pack reference books with `--doc`. They require a
special directory layout that `build_docs.pl` relied on the user to
build manually. `build_docs` builds the docker filesystem agnostic of
the user's filesystem and without this change would stuff all of the
source repos into `/doc` in the docker image.

For example, the `elasticsearch` and `x-pack-elasticsearch` repo expect
to be layed out like this:

```
+ elasticsearch
\ elasticsearch-extra
 + x-pack-elasticsearch
```

but docker was putting them in `/docs/elasticsearch` and
`/docs/x-pack-elasticsearch`.

This changes how they are mounted in the docker image so they'll build.
Now all repos with names like `x-pack-foo` are mounted in `foo-extra`.
This isn't the cleanest thing in the world, but I expect we can revert
it once we no longer have to support building the docs outside of
docker.
Copy link

@ddillinger ddillinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They require a special directory layout that build_docs.pl relied on the user to build manually.

😱

@nik9000
Copy link
Member Author

nik9000 commented Mar 5, 2019

😱

It wasn't as weird as it sounds because to hack on the repo you had to check them out that way too.....

@nik9000 nik9000 merged commit 03e76cc into elastic:master Mar 5, 2019
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

Successfully merging this pull request may close these issues.

2 participants