Skip to content

Commit

Permalink
Port crayfish to scyllaridae
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Apr 26, 2024
1 parent 3a166b5 commit 84893bc
Show file tree
Hide file tree
Showing 9 changed files with 185 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-images/curl/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG TAG=main
ARG DOCKER_REPOSITORY
ARG DOCKER_REPOSITORY=local
FROM ${DOCKER_REPOSITORY}/scyllaridae:${TAG}

RUN apk update && \
apk add openssl curl
apk add curl

COPY scyllaridae.yml /app/scyllaridae.yml
8 changes: 8 additions & 0 deletions docker-images/ffmpeg/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ARG TAG=main
ARG DOCKER_REPOSITORY=local
FROM ${DOCKER_REPOSITORY}/scyllaridae:${TAG}

RUN apk update && \
apk add ffmpeg

COPY scyllaridae.yml /app/scyllaridae.yml
98 changes: 98 additions & 0 deletions docker-images/ffmpeg/scyllaridae.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
destinationHttpMethod: PUT
allowedMimeTypes: [
"audio/*",
"video/*",
"image/jpeg",
"image/png"
]
cmdByMimeType:
"video/x-msvideo"
cmd: "ffmpeg"
args: [
"-i",
"-",
"%s",
"-f",
"avi"
]
"video/ogg"
cmd: "ffmpeg"
args: [
"-i",
"-",
"%s",
"-f",
"ogg"
]
"audio/x-wav"
cmd: "ffmpeg"
args: [
"-i",
"-",
"%s",
"-f",
"wav"
]
"audio/mpeg"
cmd: "ffmpeg"
args: [
"-i",
"-",
"%s",
"-f",
"mp3"
]
"audio/aac"
cmd: "ffmpeg"
args: [
"-i",
"-",
"%s",
"-f",
"m4a"
]
"image/jpeg"
cmd: "ffmpeg"
args: [
"-i",
"-",
"%s",
"-f",
"image2pipe"
]
"image/png"
cmd: "ffmpeg"
args: [
"-i",
"-",
"%s",
"-f",
"image2pipe"
]
"video/mp4":
cmd: "ffmpeg"
args: [
"-i",
"-",
"%s",
"-vcodec",
"libx264",
"-preset",
"medium",
"-acodec",
"aac",
"-strict",
"-2",
"-ab",
"128k",
"-ac",
"2",
"-async",
"1",
"-movflags",
"faststart",
"-y",
"-f",
"mp4",
"-"
]
8 changes: 8 additions & 0 deletions docker-images/fits/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ARG TAG=main
ARG DOCKER_REPOSITORY=local
FROM ${DOCKER_REPOSITORY}/scyllaridae:${TAG}

RUN apk update && \
apk add curl

COPY scyllaridae.yml /app/scyllaridae.yml
15 changes: 15 additions & 0 deletions docker-images/fits/scyllaridae.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
destinationHttpMethod: GET
forwardAuth: false
allowedMimeTypes: [
"*"
]
cmdByMimeType:
default:
cmd: "curl"
args: [
"http://fits:8080/fits/examine",
"-X",
"POST",
"-F",
"datafile=@-"
]
8 changes: 8 additions & 0 deletions docker-images/imagemagick/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ARG TAG=main
ARG DOCKER_REPOSITORY=local
FROM ${DOCKER_REPOSITORY}/scyllaridae:${TAG}

RUN apk update && \
apk add imagemagick

COPY scyllaridae.yml /app/scyllaridae.yml
7 changes: 7 additions & 0 deletions docker-images/imagemagick/scyllaridae.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
destinationHttpMethod: PUT
allowedMimeTypes: [
"text/html"
]
cmdByMimeType:
default:
cmd: "convert"
19 changes: 19 additions & 0 deletions docker-images/tesseract/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
ARG TAG=main
ARG DOCKER_REPOSITORY=local
FROM ${DOCKER_REPOSITORY}/scyllaridae:${TAG}

RUN apk update && \
apk add leptonica-progs \
tesseract-ocr \
tesseract-ocr-eng \
tesseract-ocr-fra \
tesseract-ocr-spa \
tesseract-ocr-ita \
tesseract-ocr-por \
tesseract-ocr-hin \
tesseract-ocr-deu \
tesseract-ocr-jpn \
tesseract-ocr-rus \
poppler-utils

COPY scyllaridae.yml /app/scyllaridae.yml
20 changes: 20 additions & 0 deletions docker-images/tesseract/scyllaridae.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
destinationHttpMethod: PUT
allowedMimeTypes: [
"application/pdf",
"image/*"
]
cmdByMimeType:
"application/pdf":
cmd: pdftotext
args: [
"%s",
"-",
"-"
]
default:
cmd: tesseract
args: [
"stdin",
"stdout",
"%s"
]

0 comments on commit 84893bc

Please sign in to comment.