Initial commit

This commit is contained in:
2022-08-02 09:29:27 -04:00
parent 398c066369
commit 99c7f7b633
3 changed files with 42 additions and 2 deletions

29
Dockerfile Normal file
View File

@@ -0,0 +1,29 @@
FROM ghcr.io/openfaas/classic-watchdog:0.2.1 as watchdog
FROM alpine:3.15
RUN mkdir -p /home/app
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog
COPY qlik /usr/bin/qlik
# Add non root user
RUN addgroup -S app && adduser app -S -G app
RUN chown app /home/app
WORKDIR /home/app
USER app
# Populate example here - i.e. "cat", "sha512sum" or "node index.js"
ENV fprocess="xargs qlik"
# Set to true to see request in function logs
ENV write_debug="false"
EXPOSE 8080
HEALTHCHECK --interval=3s CMD [ -e /tmp/.lock ] || exit 1
CMD ["fwatchdog"]

View File

@@ -1,2 +1,3 @@
# qlik-cli-faas
# qlik-cli-function
Will add notes and docs once this is working again 😄

10
qlik-cli.yml Normal file
View File

@@ -0,0 +1,10 @@
version: 1.1
provider:
name: openfaas
gateway: http://faasd.jprdonnelly.com
functions:
qlik-cli:
lang: dockerfile
handler: ./qlik-cli
image: gitea.jprdonnelly.com/qlik-cli:2.15.0