Comments (5)
Support for Docker was added.
from antora-lunr.
Would you be interested in PR with a dockerfile + github action to automatically push image to Docker Hub triggered by the release event in github?
I am thinking the PR would be better done to the antora-site-generator-lunr repo. Because the dockerfile will make use of that new node package. What do you think?
You will have to manually set the secret credentials for your docker hub account.
from antora-lunr.
Would you be interested in PR with a dockerfile + github action to automatically push image to Docker Hub triggered by the release event in github?
We could start by documenting how to extend the official base image antora/antora
in order to use Antora Lunr.
I am thinking the PR would be better done to the antora-site-generator-lunr repo.
Yes, we should document it in the antora-site-generator-lunr
repository (and probably add a link in here).
from antora-lunr.
Alright, the PR will contain an update to the README.md
file also. I have a working docker image and it was easy enough just following the Antora guidelines. The final Dockerfile
is only this:
FROM antora/antora:2.3.4
ENV DOCSEARCH_ENABLED=true \
DOCSEARCH_ENGINE=lunr
RUN yarn global add antora-site-generator-lunr
The output of building the docker image: docker build -t antora-lunr-search:0.5.0 -t antora-lunr-search:latest .
was:
Sending build context to Docker daemon 525.8kB
Step 1/3 : FROM antora/antora:2.3.4
---> 137a5b66917b
Step 2/3 : ENV DOCSEARCH_ENABLED=true DOCSEARCH_ENGINE=lunr
---> Running in b819ac0f7c85
Removing intermediate container b819ac0f7c85
---> 566f2aa78ef8
Step 3/3 : RUN yarn global add antora-site-generator-lunr
---> Running in 8972043a2d24
yarn global v1.22.4
[1/4] Resolving packages...
warning antora-site-generator-lunr > antora-lunr > cheerio > [email protected]: Use cheerio-select instead
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
warning "[email protected]" has no binaries
Done in 7.41s.
Removing intermediate container 8972043a2d24
---> 4ba2c31cec04
Successfully built 4ba2c31cec04
Successfully tagged antora-lunr-search:0.5.0
Successfully tagged antora-lunr-search:latest
I could even overwrite the CMD entry point such that instead of the default antora
command it can be: antora --generator antora-site-generator-lunr
. This would mean less arguments to be added when calling docker run! But also less transparent and the final user will not be able to use this image to run the default antora-site-generator
(this should not be a problem, because he can use the official antora image for the default generator).
What do you think?
I personally would like to have the antora --generator antora-site-generator-lunr
set by default, but willing to compromise on this one 😃
from antora-lunr.
Maybe the DockerHub image name should contain the antora version also. I propose to name it antora-v2.3.4-lunr:0.5.0
with the tag only pointing to your versioning scheme.
What do you think?
EDIT: I have made the CI file and the docker image is available here.
I only have to write down the README.md
part and I will create the PR to finalize there the details.
from antora-lunr.
Related Issues (20)
- The footer-scripts.hbs from supplemental-ui requires updated HOT 5
- Chinese language support HOT 7
- Readme update: Building site on Windows HOT 2
- Provide this library as an Antora 3 pipeline extension HOT 7
- Remove header from generate-index HOT 1
- The search box doesn't show up HOT 5
- If the site URL is set, only use the pathname segment HOT 2
- Mention the dedicated site generator in the README HOT 2
- Version bump of lunr.js to 2.3.8 HOT 3
- Correlate titles with the search results HOT 3
- Translate README to .adoc HOT 2
- Linter errors when used with Antora default UI HOT 11
- Package supplemental_ui files in the Node package
- Use relative paths, not the site url HOT 19
- site.url is missing in the generated search index HOT 5
- Index ignores site.url and always creates relative links HOT 3
- How to support other languages? HOT 9
- Support for pages with multiple versions HOT 10
- Gitlab integration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antora-lunr.