An open API service indexing awesome lists of open source software.

https://github.com/quarkiverse/quarkus-tika

Quarkus Tika extension
https://github.com/quarkiverse/quarkus-tika

content-detection quarkus-extension tika

Last synced: 6 months ago
JSON representation

Quarkus Tika extension

Awesome Lists containing this project

README

          

# Quarkus - Tika

[![All Contributors](https://img.shields.io/github/all-contributors/quarkiverse/quarkus-tika?color=ee8449&style=for-the-badge)](#contributors)

[![Version](https://img.shields.io/maven-central/v/io.quarkiverse.tika/quarkus-tika?logo=apache-maven&style=for-the-badge)](https://search.maven.org/artifact/io.quarkiverse.tika/quarkus-tika)
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/quarkiverse/quarkus-tika/build.yml?style=for-the-badge)

## Introduction

This Quarkus extension allows you to parse documents using the [Apache Tika](https://tika.apache.org) library.

It is a replacement for the `quarkus-tika` extension originally part of the Quarkus core distribution.

## Documentation

The documentation for this extension can be found [here](https://quarkiverse.github.io/quarkiverse-docs/quarkus-tika/dev/index.html).

## Versioning

There are multiple versions available please check which one for your Quarkus release version.

| Extension Version | Quarkus Version |
| --- | --- |
| ![2.0.x](https://img.shields.io/maven-central/v/io.quarkiverse.tika/quarkus-tika?versionPrefix=2.0&color=cyan) | [![Quarkus](https://img.shields.io/badge/Quarkus-3.15+-purple.svg)](https://github.com/quarkusio/quarkus/releases/tag/3.15.0) |
| ![latest](https://img.shields.io/maven-central/v/io.quarkiverse.tika/quarkus-tika?versionPrefix=2.1&color=cyan) | [![Quarkus](https://img.shields.io/badge/Quarkus-3.18+-purple.svg)](https://github.com/quarkusio/quarkus/releases/tag/3.18.0) |

## Docker

When building native images in Docker using the standard Quarkus Docker configuration files some additional features need to be
installed to support Apache POI. Specifically font information is not included in [Red Hat's ubi-minimal images](https://developers.redhat.com/products/rhel/ubi). To install it
simply add these lines to your `DockerFile.native` file:

```shell
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.9

######################### Set up environment for POI #############################
RUN microdnf update && microdnf install freetype fontconfig && microdnf clean all
######################### Set up environment for POI #############################

WORKDIR /work/
RUN chown 1001 /work \
&& chmod "g+rwX" /work \
&& chown 1001:root /work
# Shared objects to be dynamically loaded at runtime as needed,
COPY --chown=1001:root target/*.properties target/*.so /work/
COPY --chown=1001:root target/*-runner /work/application
# Permissions fix for Windows
RUN chmod "ugo+x" /work/application
EXPOSE 8080
USER 1001

CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]
```

> [!CAUTION]
> Make sure `.dockerignore` does not exclude `.so` files!

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):



sberyozkin
sberyozkin

💻 🚧
James Netherton
James Netherton

💻
George Gastaldi
George Gastaldi

💻 🚧
Tomaž
Tomaž

💻 🚧
Melloware
Melloware

📖 💻
Zheng Feng
Zheng Feng

💻 🚧
Gerhard Flothow
Gerhard Flothow

📖


Ivan Milosavljević
Ivan Milosavljević

📖
Foivos
Foivos

💻
Michael Hamburger
Michael Hamburger

🤔

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!