Comments (8)
You have kind of mixed setup steps. Follow uninstall guide and use multipass to create vm. Setup faasd inside vm.
from faasd.
Are you trying to explore how to create and deploy functions on faasd? README.md already have a section to deploy faasd.
Faasd capabilities with examples should be already covered in "Serverless For Everyone Else"
from faasd.
Yes, I read the documentations. I also tried to download source code of multiple faas projects, such as main faas, faas-cli, faas-nete and faas-provider. I compiled them and run them one by one, but every time at the end reach the error for 127.0.0.1 8080 gateway not found.
Is there any solution to run them in order from architecture picture of open-faas and deploy a function locally to it?
from faasd.
You don't need to download any project. Script mentioned in deploy faasd section will do everything for you. You can use multipass, if you want to do a fresh installation.
Even if you face issue then paste logs for sudo journalctl -u faasd.service
and sudo journalctl -u faasd-provider.service
from faasd.
I start the program and it updated the linux packages. But in the middle of process can not access some text file for configuring. Is it because docker is installed or I tried different ways to install openfaas or faasd?
This is the log output:
+ export OWNER=openfaas
+ OWNER=openfaas
+ export REPO=faasd
+ REPO=faasd
+ export ARKADE=/usr/local/bin/arkade
+ ARKADE=/usr/local/bin/arkade
+ '[' -z /root ']'
+ version=
+ echo 'Finding latest version from GitHub'
Finding latest version from GitHub
++ curl -sI https://github.com/openfaas/faasd/releases/latest
++ tr -d '\r'
++ awk -F/ '{ printf "%s", $NF }'
++ grep -i location:
+ version=0.16.9
+ echo 0.16.9
0.16.9
+ '[' '!' 0.16.9 ']'
+ SUDO=sudo
++ id -u
+ '[' 0 -eq 0 ']'
+ SUDO=
+ verify_system
+ '[' -d /run/systemd ']'
+ install_required_packages
++ has_apt_get
+++ command -v apt-get
++ '[' -n /usr/bin/apt-get ']'
+ apt-get update -y
Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:2 http://ir.archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:4 http://ir.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:5 http://ir.archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:6 http://download.pegasus.isi.edu/pegasus/ubuntu bionic InRelease
Hit:7 http://download.pegasus.isi.edu/pegasus/ubuntu bionic Release
Reading package lists... Done
W: Target Packages (stable/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target Translations (stable/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11 (stable/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11 (stable/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11-icons-small (stable/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11-icons (stable/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11-icons-hidpi (stable/dep11/[email protected]) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target CNF (stable/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target CNF (stable/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target Packages (stable/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target Translations (stable/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11 (stable/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11 (stable/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11-icons-small (stable/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11-icons (stable/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11-icons-hidpi (stable/dep11/[email protected]) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target CNF (stable/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
W: Target CNF (stable/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1
+ apt-get install -y curl runc bridge-utils iptables
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
bridge-utils is already the newest version (1.7-1ubuntu3).
curl is already the newest version (7.81.0-1ubuntu1.10).
iptables is already the newest version (1.8.7-1ubuntu5.1).
runc is already the newest version (1.1.4-0ubuntu1~22.04.3).
The following packages were automatically installed and are no longer required:
docker-ce-rootless-extras libslirp0 pigz slirp4netns
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 252 not upgraded.
+ /sbin/sysctl -w net.ipv4.conf.all.forwarding=1
net.ipv4.conf.all.forwarding = 1
+ echo net.ipv4.conf.all.forwarding=1
+ tee -a /etc/sysctl.conf
net.ipv4.conf.all.forwarding=1
+ install_arkade
+ sh
+ curl -sLS https://get.arkade.dev
x86_64
Downloading package https://github.com/alexellis/arkade/releases/download/0.9.22/arkade as /tmp/arkade
Download complete.
Running with sufficient permissions to attempt to move arkade to /usr/local/bin
New version of arkade installed to /usr/local/bin
There is already a command 'ark' in the path, NOT creating alias
_ _
__ _ _ __| | ____ _ __| | ___
/ _` | '__| |/ / _` |/ _` |/ _ \
| (_| | | | < (_| | (_| | __/
\__,_|_| |_|\_\__,_|\__,_|\___|
Open Source Marketplace For Developer Tools
Version: 0.9.22
Git Commit: ab3f8aa2a12aa2f3407e8150b5bdea97fd582a6e
🐳 arkade needs your support: https://github.com/sponsors/alexellis
+ arkade --help
Usage:
arkade [flags]
arkade [command]
Available Commands:
chart Chart utilities
completion Output shell completion for the given shell (bash or zsh)
get The get command downloads a tool
help Help about any command
info Find info about a Kubernetes app
install Install Kubernetes apps from helm charts or YAML files
system System apps
uninstall Uninstall apps installed with arkade
update Print update instructions
version Print the version
Flags:
-h, --help help for arkade
Use "arkade [command] --help" for more information about a command.
+ install_cni_plugins
+ cni_version=v0.9.1
+ /usr/local/bin/arkade system install cni --version v0.9.1 --path /opt/cni/bin --progress=false
Installing CNI to /opt/cni/bin
Installing version: v0.9.1 for: amd64
Downloading from: https://github.com/containernetworking/plugins/releases/download/v0.9.1/cni-plugins-linux-amd64-v0.9.1.tgz
Downloaded to: /tmp/arkade-122701678/cni-plugins-linux-amd64-v0.9.1.tgz
Unpacking CNI Plugins to: /tmp/cni-plugins3367641119
Copying /tmp/cni-plugins3367641119/bandwidth to: /opt/cni/bin/bandwidth
Copying /tmp/cni-plugins3367641119/bridge to: /opt/cni/bin/bridge
Copying /tmp/cni-plugins3367641119/dhcp to: /opt/cni/bin/dhcp
Copying /tmp/cni-plugins3367641119/firewall to: /opt/cni/bin/firewall
Copying /tmp/cni-plugins3367641119/flannel to: /opt/cni/bin/flannel
Copying /tmp/cni-plugins3367641119/host-device to: /opt/cni/bin/host-device
Copying /tmp/cni-plugins3367641119/host-local to: /opt/cni/bin/host-local
Copying /tmp/cni-plugins3367641119/ipvlan to: /opt/cni/bin/ipvlan
Copying /tmp/cni-plugins3367641119/loopback to: /opt/cni/bin/loopback
Copying /tmp/cni-plugins3367641119/macvlan to: /opt/cni/bin/macvlan
Copying /tmp/cni-plugins3367641119/portmap to: /opt/cni/bin/portmap
Copying /tmp/cni-plugins3367641119/ptp to: /opt/cni/bin/ptp
Copying /tmp/cni-plugins3367641119/sbr to: /opt/cni/bin/sbr
Copying /tmp/cni-plugins3367641119/static to: /opt/cni/bin/static
Copying /tmp/cni-plugins3367641119/tuning to: /opt/cni/bin/tuning
Copying /tmp/cni-plugins3367641119/vlan to: /opt/cni/bin/vlan
Copying /tmp/cni-plugins3367641119/vrf to: /opt/cni/bin/vrf
+ install_containerd
+ CONTAINERD_VER=1.7.0
+ systemctl unmask containerd
++ uname -m
+ arch=x86_64
+ '[' x86_64 == armv7l ']'
+ /usr/local/bin/arkade system install containerd --systemd --version v1.7.0 --progress=false
Installing containerd to /usr/local/bin
Downloaded to: /tmp/arkade-2776047496/containerd-1.7.0-Linux-amd64.tar.gz
2023/06/28 13:04:12 extracted tarball into /tmp/containerd: 6 files, 1 dirs (2.200643368s)
Copying containerd binaries to: /usr/local/bin
Error: open /usr/local/bin/containerd-shim-runc-v2: text file busy
from faasd.
Please see @nitishkumar71's comment
You should really pay for a copy of the eBook if you're not sure how to use faasd, it covers everything you'd need to know and more.
You'll also find the odd video and tutorial that I've created in the past, but they may be out of date in comparison.
https://store.openfaas.com/l/serverless-for-everyone-else
from faasd.
/set title: Can docker-compose be used with faasd?
from faasd.
Please see @nitishkumar71's comment
You should really pay for a copy of the eBook if you're not sure how to use faasd, it covers everything you'd need to know and more.
You'll also find the odd video and tutorial that I've created in the past, but they may be out of date in comparison.
Thank you @alexellis, is there any discounts for academic staff?
from faasd.
Related Issues (20)
- Issues with rust HOT 1
- Access host's network from a docker-compose.yaml's service HOT 5
- Support request for Docker installed with faasd (invalid) HOT 5
- Support question on MQTT HOT 4
- Executing install.sh fails because of wrong version HOT 1
- Grafana installation - volume permissions HOT 2
- Multi-node support HOT 3
- Support request for monitoring with cAdvisor HOT 6
- NATS JetStream support HOT 2
- disable printing function invocation duration
- Terrraform install fails on macOS Sonoma HOT 2
- faasd and faasd provider in different ports HOT 1
- faasd namespace support openfaas=true instead of openfaas=1
- Is Scale to Zero included in the Community Edition of OpenFaaS? HOT 8
- support faasd get HOT 1
- Postgresql database connection problem HOT 16
- MemoryLimit needs changing to: MemoryMax
- Deprecate 32-bit Arm support HOT 1
- Additional property postgresql is not allowed HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faasd.