Closed enbeec closed 2 years ago
Hi, thanks for your interest in faasd.
I spent a couple of hours trying to reproduce this issue for you with a brand new repo and installation on my Raspberry Pi.
https://github.com/alexellis/creates-private-ghcr-function/actions/runs/3359586196
pi@faasd-pi:~ $ faas-cli deploy --name private --image ghcr.io/alexellis/private-test-fn:0.0.2
Deployed. 200 OK.
URL: http://127.0.0.1:8080/function/private
I couldn't reproduce any problems, but I have updated the eBook instructions which I think will help you get past this, in version 1.8.
If you are still having issues after that, I'm not sure what to suggest.
Regards,
Alex
Thanks for the prompt and decisive response
It would certainly appear that something inexplicable is happening. The good news is that means starting from scratch might inexplicably work!
Cheers, Val
Hi Val,
I can see the error in your instructions. You'll find the updated information you need in the eBook which is the manual for faasd.
Do you have a copy yet?
Alex
I do have the eBook! It's been very helpful. I was able to get things working with a multipass VM last night.
edit just pulled version 1.8 of the eBook and that's a lot cleaner.
Val
/lock: resolved
Due diligence
My actions before raising this issue
Following the docs I have done the following:
faasd
on a fresh VMfaasd
withfaas login
(on the host)faas registry-login
and installedconfig.json
to/var/lib/faasd/.docker/
(on the VM)docker
configuration in my home directory.faas template pull
andfaas new
(on the host)faas build
andfaas push
(on the host)docker
faasd
VMedited 2022-11-01
Why do you need this?
I'm trying to deploy my first function with OpenFaaS using the
golang-middleware
template.Who is this for?
A personal weekend project. I exclusively work with Lambda at work and want a fresh perspective on FaaS.
Expected Behaviour
When running
faas deploy -f my-function.yml
against my localfaasd
VM with a valid configuration at/var/lib/faasd/.docker/config.json
, I expect the image to be pulled and the function deployed.Current Behaviour
Instead, there is an issue authenticating with
ghcr.io
.I can
docker pull
this image with a config file that matches the installedfaasd
file (just with different token values).Are you a GitHub Sponsor (Yes/No?)
List All Possible Solutions and Workarounds
I wouldn't expect HTTPS between my host and the local VM to be an issue but is it? Time is short and I was planning to play around without fussing with certs on my local host.
Which Solution Do You Recommend?
Steps to Reproduce (for bugs)
faasd
, configure/var/lib/faasd/.docker/config.json
with yourghcr.io
credentialsDevelopment/VM Host Environment
faasd
Host EnvironmentOS and architecture: Debian on x86 on KVM/QEMU
Versions: