openfaas / faasd

A lightweight & portable faas engine
https://store.openfaas.com/l/serverless-for-everyone-else
MIT License
2.97k stars 213 forks source link

Update Containerd to 1.7.0 #323

Closed alexellis closed 1 year ago

alexellis commented 1 year ago

Description

Update Containerd to 1.7.0

Motivation and Context

Fixes: #322

How Has This Been Tested?

Build and unit tests, no end to end testing yet.

E2e testing is welcome from community users.

Types of changes

Updates to dependencies for security.

mrwormhole commented 1 year ago

I will be taking a look at this, may need arm64 machine (essentially Pi)

alexellis commented 1 year ago

@mrwormhole it can be installed on x86_64, arm64 or armhf.

alexellis commented 1 year ago

I performed a basic test with containerd 1.7.0 on an x86_64 Multipass VM deploying the env and printer functions, then invoking them.

ubuntu@anointed-scorpion:~/faasd$ sudo ctr version
Client:
  Version:  v1.7.0
  Revision: 1fbd70374134b891f97ce19c70b6e50c7b9f4e0d
  Go version: go1.20.2

Server:
  Version:  v1.7.0
  Revision: 1fbd70374134b891f97ce19c70b6e50c7b9f4e0d
  UUID: b8a63fed-e5f3-44e7-b236-408221f33b88
ubuntu@anointed-scorpion:~/faasd$ sudo faasd version
  __                     _ 
 / _| __ _  __ _ ___  __| |
| |_ / _` |/ _` / __|/ _` |
|  _| (_| | (_| \__ \ (_| |
|_|  \__,_|\__,_|___/\__,_|

faasd version: dev  commit: 
ubuntu@anointed-scorpion:~/faasd$ faas-cli list
Function                        Invocations     Replicas
env                             2               1    
printer                         0               1    
ubuntu@anointed-scorpion:~/faasd$ echo |faas-cli invoke env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
fprocess=env
HOME=/home/app
Http_Content_Type=text/plain
Http_X_Start_Time=1679301647172570406
Http_User_Agent=Go-http-client/1.1
Http_X_Forwarded_For=10.62.0.1:50486
Http_X_Forwarded_Host=127.0.0.1:8080
Http_Accept_Encoding=gzip
Http_X_Call_Id=a9346a2e-e5e9-4751-a1a6-7312d39b080d
Http_Method=POST
Http_ContentLength=-1
Http_Content_Length=-1
Http_Transfer_Encoding=chunked
Http_Path=/
Http_Host=10.62.0.17:8080
ubuntu@anointed-scorpion:~/faasd$ 
alexellis commented 1 year ago

@mrwormhole you can upgrade at your leisure with the new release