mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 08:46:48 +00:00
Add pwgen and bump Alpine base image
Alpine Base image goes to 3.7 (latest) pwgen sample added. Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
parent
7ab969fdfb
commit
bfe239de4d
@ -1,6 +1,7 @@
|
||||
FROM alpine:3.6
|
||||
FROM alpine:3.7
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.7.9/fwatchdog /usr/bin
|
||||
|
||||
# COPY ./fwatchdog /usr/bin/
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM alpine:3.6
|
||||
FROM alpine:3.7
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.7.9/fwatchdog-armhf /usr/bin/fwatchdog
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
5
sample-functions/pwgen/Dockerfile
Normal file
5
sample-functions/pwgen/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM functions/alpine:latest
|
||||
|
||||
RUN apk add --no-cache pwgen
|
||||
|
||||
ENV fprocess="xargs pwgen -s"
|
10
sample-functions/pwgen/README.md
Normal file
10
sample-functions/pwgen/README.md
Normal file
@ -0,0 +1,10 @@
|
||||
pwgen
|
||||
-----
|
||||
|
||||
The password generation utility from Alpine Linux, but as a function.
|
||||
|
||||
Man page:
|
||||
|
||||
https://linux.die.net/man/1/pwgen
|
||||
|
||||
|
@ -10,6 +10,11 @@ functions:
|
||||
environment:
|
||||
fprocess: "cat"
|
||||
|
||||
pwgen:
|
||||
lang: dockerfile
|
||||
handler: ./pwgen
|
||||
image: functions/pwgen-sample:latest
|
||||
|
||||
apikey-secret:
|
||||
lang: go
|
||||
handler: ./apikey-secret
|
||||
|
Loading…
x
Reference in New Issue
Block a user