Compose for ARM + MarkdownRender

This commit is contained in:
Alex Ellis
2017-04-27 20:27:35 +00:00
parent fb50b8dacd
commit 5fd4e54860
3 changed files with 18 additions and 3 deletions

4
deploy_stack.armhf.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
echo "Deploying stack"
docker stack deploy func --compose-file docker-compose.armhf.yml

View File

@ -76,9 +76,20 @@ services:
fprocess: "wc" fprocess: "wc"
no_proxy: "gateway" no_proxy: "gateway"
https_proxy: $https_proxy https_proxy: $https_proxy
markdown:
image: functions/markdownrender:latest-armhf
labels:
function: "true"
depends_on:
- gateway
networks:
- functions
environment:
fprocess: "wc"
no_proxy: "gateway"
https_proxy: $https_proxy
networks: networks:
functions: functions:
driver: overlay driver: overlay
# Docker does not support this option yet - maybe create outside of the stack and reference as "external"?
#attachable: true

View File

@ -1,6 +1,6 @@
FROM armhf/alpine:3.5 FROM armhf/alpine:3.5
ADD https://github.com/alexellis/faas/releases/download/v0.3-alpha/fwatchdog-armhf /usr/bin/fwatchdog ADD https://github.com/alexellis/faas/releases/download/v0.5-alpha/fwatchdog-armhf /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog RUN chmod +x /usr/bin/fwatchdog
WORKDIR /root/ WORKDIR /root/