Set up default protection ruleset for default and release branches
1 file changed
tree: 3b09de540e32fe2e7eed297e64462059a0998f18
  1. _data/
  2. _includes/
  3. _layouts/
  4. _sass/
  5. assets/
  6. images/
  7. resources/
  8. security/
  9. slick/
  10. WEB-INF/
  11. xmlns/
  12. xsd/
  13. .asf.yaml
  14. .gitignore
  15. 404.html
  16. _config.yml
  17. archives.html
  18. community.html
  19. documentation.html
  20. download.html
  21. Gemfile
  22. get-started.html
  23. index.html
  24. news.html
  25. pom.xml
  26. privacy.html
  27. projects.html
  28. README.md
  29. stories.html
README.md

Apache Karaf Website

This project contains the Apache Karaf website.

Contribute

The concrete repository is on the svn but if you want to contribute, you have to clone the Github repository which is a mirror and provide a pull request with your changes. You can find more informations about how to contribute on the community page of the project (https://karaf.apache.org/community.html).

Clone:

git clone https://github.com/apache/karaf-site.git

Building

Karaf website uses jekyll to build (generate the HTML resources).

To install Jekyll, refer to https://jekyllrb.com/docs/

Once Jekyll is installed, you can build website using:

bundle exec jekyll serve

You can also use Jekyll Docker image to server:

docker run --rm --volume="$PWD:/srv/jekyll:Z" --publish 4000:4000 jekyll/jekyll jekyll serve

This command builds website and start the local Jekyll server on http://localhost:4000

NB: your local Jekyll installation might need additional modules required by Apache Karaf website. Just run bundle install to install these modules.

Deploy

Build the site for production:

JEKYLL_ENV=production bundle exec jekyll build

You can also use Jekyll Docker image to build:

docker run --rm --volume="$PWD:/srv/jekyll:Z" jekyll/jekyll jekyll build

Package the war:

mvn clean install

You can test the war with Jetty embedded and visit http://localhost:8080/ :

mvn jetty:run

Deploy on scm

mvn install scm-publish:publish-scm