1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-24 07:01:44 +00:00

Improve the file importer (#415)

Improve the bulk importer (tags by filename, document language, Docker container)
This commit is contained in:
Cornelicorn
2020-05-22 15:18:19 +02:00
committed by GitHub
parent 3f67bd471b
commit 612fab2aef
7 changed files with 246 additions and 79 deletions

17
docs-importer/Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM node:14.2-alpine AS builder
WORKDIR /build
COPY node_modules/ ./node_modules/
COPY main.js package-lock.json package.json ./
RUN npm install && npm install -g pkg
RUN pkg -t node14-alpine-x64 .
FROM alpine
ENV TEEDY_TAG= TEEDY_ADDTAGS=false TEEDY_LANG=eng TEEDY_URL='http://localhost:8080' TEEDY_USERNAME=username TEEDY_PASSWORD=password
RUN apk add --no-cache \
libc6-compat \
libstdc++
ADD pref /root/.config/preferences/com.sismics.docs.importer.pref
ADD env.sh /
COPY --from=builder /build/teedy-importer ./
CMD ["/bin/ash","-c","/env.sh && /teedy-importer -d"]