Initial commit
This commit is contained in:
29
Dockerfile
Normal file
29
Dockerfile
Normal 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"]
|
||||
@@ -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
10
qlik-cli.yml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user