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:
Alex Ellis (VMware) 2018-04-20 15:45:22 +01:00
parent 7ab969fdfb
commit bfe239de4d
5 changed files with 23 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,5 @@
FROM functions/alpine:latest
RUN apk add --no-cache pwgen
ENV fprocess="xargs pwgen -s"

View 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

View File

@ -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