Bump Hayabusa 2.17.0→3.8.1, Takajo 2.6.0→2.15.1; fix takajo CWD

Upstream renamed release assets (linux-intel → lin-x64-gnu,
linux-arm → lin-aarch64-gnu); updated accordingly.

Takajo was silently failing because start.sh invoked it from
WORKDIR=/data — takajo checks for companion files in CWD and
exits with "The Takajo executable does not exist in the current
directory." Wrap the call in (cd /opt/hayabusa && ./takajo ...)
so automagic reports actually land in /output/takajo/.

Also add .dockerignore to keep test-data/ and .git/ out of the
build context.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
tobias
2026-04-11 22:04:46 +02:00
parent ab05a7f239
commit ca2961321a
3 changed files with 9 additions and 6 deletions
+3
View File
@@ -0,0 +1,3 @@
test-data/
.git/
.gitignore
+5 -5
View File
@@ -3,8 +3,8 @@ FROM alpine AS builder
# Get the target platform
ARG TARGETPLATFORM
ENV HAYABUSA_VERSION=2.17.0
ENV TAKAJO_VERSION=2.6.0
ENV HAYABUSA_VERSION=3.8.1
ENV TAKAJO_VERSION=2.15.1
# Install necessary tools
RUN apk add --no-cache unzip wget git
@@ -13,13 +13,13 @@ RUN apk add --no-cache unzip wget git
RUN \
case "$TARGETPLATFORM" in \
"linux/amd64") \
HAYABUSA_ZIP="hayabusa-${HAYABUSA_VERSION}-linux-intel.zip"; \
HAYABUSA_ZIP="hayabusa-${HAYABUSA_VERSION}-lin-x64-gnu.zip"; \
HAYABUSA_BINARY="hayabusa-${HAYABUSA_VERSION}-lin-x64-gnu"; \
TAKAJO_ZIP="takajo-${TAKAJO_VERSION}-linux-intel.zip"; \
TAKAJO_ZIP="takajo-${TAKAJO_VERSION}-lin-x64-gnu.zip"; \
TAKAJO_BINARY="takajo-${TAKAJO_VERSION}-lin-x64-gnu"; \
;; \
"linux/arm64") \
HAYABUSA_ZIP="hayabusa-${HAYABUSA_VERSION}-linux-arm.zip"; \
HAYABUSA_ZIP="hayabusa-${HAYABUSA_VERSION}-lin-aarch64-gnu.zip"; \
HAYABUSA_BINARY="hayabusa-${HAYABUSA_VERSION}-lin-aarch64-gnu"; \
;; \
*) echo "Unsupported platform: $TARGETPLATFORM"; exit 1 ;; \
+1 -1
View File
@@ -38,7 +38,7 @@ echo "Output is going to: ${output}"
# Check if takajo exists before running it
if [ -x /opt/hayabusa/takajo ]; then
/opt/hayabusa/takajo automagic -t "${output}_takajo.jsonl" -o "${outdir}/takajo"
( cd /opt/hayabusa && ./takajo automagic -t "${output}_takajo.jsonl" -o "${outdir}/takajo" )
else
echo "[!] Takajo is not available on this platform."
fi