Move MarkdownRender to new namespace

This commit is contained in:
Alex Ellis 2017-03-22 09:19:15 +00:00
parent 65ae7b3e2d
commit ebf7427211
7 changed files with 26 additions and 13 deletions

View File

@ -51,7 +51,19 @@ services:
placement: placement:
constraints: [node.role == manager] constraints: [node.role == manager]
# Sample functions go here. # sample functions go here, but can be created in the UI too.
nodeinfo:
image: functions/nodeinfo:latest-armhf
labels:
function: "true"
depends_on:
- gateway
networks:
- functions
environment:
no_proxy: "gateway"
https_proxy: $https_proxy
wordcount: wordcount:
image: functions/alpine:latest-armhf image: functions/alpine:latest-armhf
labels: labels:

View File

@ -0,0 +1 @@
app

View File

@ -1,4 +1,4 @@
FROM alexellis2/alexellis2/go-armhf:1.7.4 FROM alexellis2/go-armhf:1.7.4
RUN mkdir -p /go/src/app RUN mkdir -p /go/src/app
COPY handler.go /go/src/app COPY handler.go /go/src/app

Binary file not shown.

View File

@ -1,14 +1,14 @@
#!/bin/sh #!/bin/sh
echo Building alexellis2/faas-markdownrender:build-armhf echo Building functions/markdownrender:build-armhf
docker build --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy \ docker build --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy \
-t alexellis2/faas-markdownrender:build-armhf \ -t functions/markdownrender:build-armhf \
. -f Dockerfile.build.armhf . -f Dockerfile.build.armhf
docker create --name render_extract alexellis2/faas-markdownrender:build-armhf docker create --name render_extract functions/markdownrender:build-armhf
docker cp render_extract:/go/src/app/app ./app docker cp render_extract:/go/src/app/app ./app
docker rm -f render_extract docker rm -f render_extract
echo Building alexellis2/faas-markdownrender:latest-armhf echo Building functions/markdownrender:latest-armhf
docker build --no-cache -t alexellis2/faas-markdownrender:latest-armhf .\ docker build --no-cache -t functions/markdownrender:latest-armhf .\
-f Dockerfile.armhf -f Dockerfile.armhf

View File

@ -1,12 +1,12 @@
#!/bin/sh #!/bin/sh
echo Building alexellis2/faas-markdownrender:build echo Building functions/markdownrender:build
docker build --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy \ docker build --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy \
-t alexellis2/faas-markdownrender . -f Dockerfile.build -t functions/markdownrender . -f Dockerfile.build
docker create --name render_extract alexellis2/faas-markdownrender docker create --name render_extract functions/markdownrender
docker cp render_extract:/go/src/app/app ./app docker cp render_extract:/go/src/app/app ./app
docker rm -f render_extract docker rm -f render_extract
echo Building alexellis2/faas-markdownrender:latest echo Building functions/markdownrender:latest
docker build --no-cache -t alexellis2/faas-markdownrender:latest . docker build --no-cache -t functions/markdownrender:latest .

View File

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
docker build -t alexellis2/faas-nodeinfo . docker build -t functions/nodeinfo .