mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 00:36:46 +00:00
Move MarkdownRender to new namespace
This commit is contained in:
parent
65ae7b3e2d
commit
ebf7427211
@ -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:
|
||||||
|
1
sample-functions/MarkdownRender/.gitignore
vendored
Normal file
1
sample-functions/MarkdownRender/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
app
|
@ -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.
@ -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
|
||||||
|
@ -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 .
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
docker build -t alexellis2/faas-nodeinfo .
|
docker build -t functions/nodeinfo .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user