openfaas-incubator / node10-express-service Goto Github PK
View Code? Open in Web Editor NEWOpenFaaS Node.js 10 (LTS) and Express.js micro-service template
License: MIT License
OpenFaaS Node.js 10 (LTS) and Express.js micro-service template
License: MIT License
Move all code into the node10-express-template repo and the examples into the README.
Archive or delete repo after this has been completed.
➜ faas template pull https://github.com/openfaas-incubator/node10-express-service
Fetch templates from repository: https://github.com/openfaas-incubator/node10-express-service at master
2019/06/25 21:34:07 Attempting to expand templates from https://github.com/openfaas-incubator/node10-express-service
2019/06/25 21:34:08 Fetched 1 template(s) : [node10-express-service] from https://github.com/openfaas-incubator/node10-express-service
➜ faas new --lang node10-express-service microservice1 --prefix="phumberdroz"
Folder: microservice1 created.
___ _____ ____
/ _ \ _ __ ___ _ __ | ___|_ _ __ _/ ___|
| | | | '_ \ / _ \ '_ \| |_ / _` |/ _` \___ \
| |_| | |_) | __/ | | | _| (_| | (_| |___) |
\___/| .__/ \___|_| |_|_| \__,_|\__,_|____/
|_|
Function created in folder: microservice1
Stack file written: microservice1.yml
functions on master [!?] at ☸️ do-fra1-helm-notifier (openfaas-fn)
➜ faas up -f microservice1.yml
[0] > Building microservice1.
Clearing temporary build folder: ./build/microservice1/
Preparing ./microservice1/ ./build/microservice1//function
Building: phumberdroz/microservice1:latest with node10-express-service template. Please wait..
Sending build context to Docker daemon 9.728kB
Step 1/29 : FROM openfaas/of-watchdog:0.5.3 as watchdog
---> 4ff06209ff8b
Step 2/29 : FROM node:10.12.0-alpine as ship
---> 7ca2f9cb5536
Step 3/29 : COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
---> Using cache
---> 9a6a558666f9
Step 4/29 : RUN chmod +x /usr/bin/fwatchdog
---> Using cache
---> 1659076a5736
Step 5/29 : RUN addgroup -S app && adduser -S -g app app
---> Using cache
---> dc3d23ef6262
Step 6/29 : RUN apk --no-cache add ca-certificates && apk del curl
---> Running in 6b5a953a1b72
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
(1/1) Installing ca-certificates (20190108-r0)
Executing busybox-1.28.4-r1.trigger
Executing ca-certificates-20190108-r0.trigger
OK: 7 MiB in 16 packages
WARNING: Ignoring APKINDEX.adfa7ceb.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.efaa1f73.tar.gz: No such file or directory
The command '/bin/sh -c apk --no-cache add ca-certificates && apk del curl' returned a non-zero code: 1
2019/06/25 21:34:17 ERROR - Could not execute command: [docker build -t phumberdroz/microservice1:latest .]
removing && apk del curl
makes the faas up command working again.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.