mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 00:06:38 +00:00
Pending ARMhf changes
This commit is contained in:
8
sample-functions/AlpineFunction/Dockerfile.armhf
Normal file
8
sample-functions/AlpineFunction/Dockerfile.armhf
Normal file
@ -0,0 +1,8 @@
|
||||
FROM armhf/alpine:latest
|
||||
|
||||
COPY fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
||||
# Populate example here
|
||||
# ENV fprocess="wc -l"
|
||||
CMD ["fwatchdog"]
|
3
sample-functions/AlpineFunction/build.armhf.sh
Executable file
3
sample-functions/AlpineFunction/build.armhf.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker build -f Dockerfile.armhf -t alexellis2/faas-alpinefunction:latest-armhf .
|
17
sample-functions/DockerHubStats/Dockerfile.armhf
Normal file
17
sample-functions/DockerHubStats/Dockerfile.armhf
Normal file
@ -0,0 +1,17 @@
|
||||
FROM alexellis2/go-armhf:1.7.4
|
||||
|
||||
MAINTAINER alexellis2@gmail.com
|
||||
ENTRYPOINT []
|
||||
|
||||
RUN apk --no-cache add make
|
||||
WORKDIR /go/src/github.com/alexellis/faas/sample-functions/DockerHubStats
|
||||
COPY . /go/src/github.com/alexellis/faas/sample-functions/DockerHubStats
|
||||
|
||||
RUN make
|
||||
|
||||
COPY ./fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
||||
ENV fprocess "/go/bin/DockerHubStats"
|
||||
|
||||
CMD [ "/usr/bin/fwatchdog"]
|
3
sample-functions/DockerHubStats/build.armhf.sh
Executable file
3
sample-functions/DockerHubStats/build.armhf.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker build -t alexellis2/faas-hubstats:latest-armhf .
|
12
sample-functions/NodeInfo/Dockerfile.armhf
Normal file
12
sample-functions/NodeInfo/Dockerfile.armhf
Normal file
@ -0,0 +1,12 @@
|
||||
FROM armhf/alpine:latest
|
||||
RUN apk --update add nodejs
|
||||
|
||||
COPY fwatchdog /usr/bin
|
||||
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
||||
COPY package.json .
|
||||
COPY main.js .
|
||||
RUN npm i
|
||||
ENV fprocess="node main.js"
|
||||
CMD ["fwatchdog"]
|
3
sample-functions/NodeInfo/build.armhf.sh
Executable file
3
sample-functions/NodeInfo/build.armhf.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker build -f Dockerfile.armhf -t alexellis2/faas-nodeinfo:latest-armhf .
|
Reference in New Issue
Block a user