openfaas / classic-watchdog Goto Github PK
View Code? Open in Web Editor NEWClassic Watchdog for OpenFaaS
License: MIT License
Classic Watchdog for OpenFaaS
License: MIT License
Docker version docker version
(e.g. Docker 17.0.05 ):
Are you using Docker Swarm or Kubernetes (FaaS-netes)?
Operating System and version (e.g. Linux, Windows, MacOS):
Link to your project or a code example to reproduce issue:
Can we please have Darwin/arm64 image as well as the arm64 image currently provided doesn't work on M1 Silicon and gives exec format error?
Update GitHub Actions and Dockerfile to use Go 1.18
Still on an older version.
Pull python3-debian template from store. Replace index.py
with
from pathlib import Path
from zipfile import is_zipfile
if __name__ == "__main__":
print(is_zipfile(Path('/dev/stdin')))
Create a ZIP file:
echo "Hello World" > hello.txt
zip hello.zip hello.txt
A direct call without Watchdog should look like this
$ python index.py < hello.zip
True
Now deploy a function is-zip
with the template (uses fwatchdog
to call python3 index.py
).
$ faas-cli invoke is-zip < hello.zip
True
$ faas-cli invoke is-zip < hello.zip
False
Related to openfaas/templates#205
Docker version: 25.0.3
Kubernetes
Operating System and version: MacOS 14.3.1 (23D60)
$ faas-cli version
___ _____ ____
/ _ \ _ __ ___ _ __ | ___|_ _ __ _/ ___|
| | | | '_ \ / _ \ '_ \| |_ / _` |/ _` \___ \
| |_| | |_) | __/ | | | _| (_| | (_| |___) |
\___/| .__/ \___|_| |_|_| \__,_|\__,_|____/
|_|
CLI:
commit: a3e72b5881c4efcc7a366a2e8dc384399c807dfc
version: 0.16.23
Gateway
uri: http://127.0.0.1:8080
version: 0.27.5
sha: 5c13f1f01c6a9f596857d81c889d77bd04fbc5c1
Provider
name: faas-netes-ce
orchestration: kubernetes
version: 0.18.1
sha: e35f8441df8355654fcb56eab55d4575aabcdcfd
Hi, A question I want to ask is why the collection of metrics is opened on port 8081 alone? And 8081 is not exposed in the Dockerfile of the container, and the deployment created by faas-cli does not have port 8081?
Template the owner/repo name in the release GitHub Action
Also update to use Go 1.15
https://github.com/openfaas/classic-watchdog/blob/master/.github/workflows/publish.yaml#L46
This is a mechanism that @utsavanand2 showed the community, which I've used in a test repo here
https://github.com/alexellis/faasd-example/blob/master/.github/workflows/build.yml#L27
To enable contributors to fork and test changes in their own accounts.
Suggestion by @LucasRoesler
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.