Skip to content

feat: add Dockerfile and GitHub Actions workflow for Tika Chinese image#1

Merged
Noxiven merged 5 commits into
mainfrom
copilot/create-github-workflow-dockerfile
May 12, 2026
Merged

feat: add Dockerfile and GitHub Actions workflow for Tika Chinese image#1
Noxiven merged 5 commits into
mainfrom
copilot/create-github-workflow-dockerfile

Conversation

Copilot AI commented May 12, 2026

Copy link
Copy Markdown
Contributor
  • Remove type=sha and type=ref,event=branch tags from workflow, keeping only latest and version tags
  • Bump base image to apache/tika:3.3.0.0-full
  • Replace semver pattern tags with type=ref,event=tag (tag used verbatim)
  • Add tika-config.xml (configures Tesseract OCR with chi_sim+chi_tra+eng)
  • Update Dockerfile to COPY tika-config.xml and set CMD ["-c", "/tika-config.xml"]
  • Write README.md with image description and startup instructions

Copilot AI and others added 2 commits May 12, 2026 13:40
@Noxiven

Noxiven commented May 12, 2026

Copy link
Copy Markdown
Collaborator

@copilot 基础镜像版本改为 3.3.0.0-full;构建的镜像版本号直接用 tag 不要解析为多个版本号

Copilot AI commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

@copilot 基础镜像版本改为 3.3.0.0-full;构建的镜像版本号直接用 tag 不要解析为多个版本号

Done in 65af7e5:

  • Dockerfile: base image updated to apache/tika:3.3.0.0-full
  • Workflow: replaced type=semver patterns with type=ref,event=tag, so the pushed tag (e.g. v1.2.3) is used verbatim as the image tag without being split into multiple versions

@Noxiven

This comment was marked as duplicate.

1 similar comment
@Noxiven

Noxiven commented May 12, 2026

Copy link
Copy Markdown
Collaborator

@copilot
补下这个 tika-config.xml

<properties>
        <parsers>
            <parser class="org.apache.tika.parser.DefaultParser">
                <parser-exclude class="org.apache.tika.parser.ocr.TesseractOCRParser"/>
            </parser>
            <parser class="org.apache.tika.parser.ocr.TesseractOCRParser">
                <params>
                    <param name="language" type="string">chi_sim+eng</param>
                </params>
            </parser>
        </parsers>
    </properties>

readme 也调整下,改为启动说明

cmd 是 -c /tika-config.xml

…up instructions

Agent-Logs-Url: https://github.com/chenyme/tika/sessions/80dc44a0-10cb-4ef8-bc54-ceb33d396d1a

Co-authored-by: OrenZhang <41963680+OrenZhang@users.noreply.github.com>

Copilot AI commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

@copilot
补下这个 tika-config.xml

...

Done in af243d4:

  • Added tika-config.xml — configures Tesseract OCR with chi_sim+chi_tra+eng and a 300 s timeout
  • Dockerfile now COPYs the config to /tika-config.xml and sets CMD ["-c", "/tika-config.xml"]
  • README.md updated with image description, pull command, and startup/usage instructions

@Noxiven
Noxiven marked this pull request as ready for review May 12, 2026 14:21
@Noxiven
Noxiven merged commit 1161ea9 into main May 12, 2026
@Noxiven
Noxiven deleted the copilot/create-github-workflow-dockerfile branch May 12, 2026 14:21
Copilot AI restored the copilot/create-github-workflow-dockerfile branch May 12, 2026 14:21
Copilot stopped work on behalf of Noxiven due to an error May 12, 2026 14:21
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