Closed jmkhael closed 3 years ago
Hi Johnny,
What leads you to believe that there is a difference between 0.18.1 and 0.18.2? I am seeing the same result for "docker run" (it working on MacOS)
space-mini:~ alex$ docker run -ti openfaas/classic-watchdog:0.18.1 /fwatchdog
2020/07/21 13:29:19 Version: 0.18.1 SHA: b46be5a4d9d9d55da9c4b1e50d86346e0afccf2d
2020/07/21 13:29:19 Provide a valid process via fprocess environmental variable.
panic: Provide a valid process via fprocess environmental variable.
goroutine 1 [running]:
log.Panicln(0xc000071ee8, 0x1, 0x1)
/usr/local/go/src/log/log.go:340 +0xc0
main.main()
/go/src/github.com/openfaas/faas/watchdog/main.go:48 +0x539
space-mini:~ alex$ docker run -ti openfaas/classic-watchdog:0.18.2 /fwatchdog
2020/07/21 13:29:22 Version: 0.18.2 SHA: 1c9e12237046fccc3e23b9ca79d0c904157e89ad
2020/07/21 13:29:22 Provide a valid process via fprocess environmental variable.
panic: Provide a valid process via fprocess environmental variable.
goroutine 1 [running]:
log.Panicln(0xc00004bee8, 0x1, 0x1)
/usr/local/go/src/log/log.go:340 +0xc0
main.main()
/go/src/github.com/openfaas/faas/watchdog/main.go:48 +0x539
Given that OpenFaaS doesn't mount any volumes and does nothing special with Docker other than docker build
, I am not really sure that we can help you with this. Your issue seems to be repeatable a simple Dockerfile, perhaps this would be better directed to the Docker or WSL forums?
Happy to re-open or move the issue to an openfaas repo if there is a reproducible issue with openfaas itself.
Alex
/set title: Issue with WSL and Docker
(If you're on Windows, then you may have more success with multipass from ubuntu - https://multipass.run/ or git bash (link in the workshop pre-reqs for this))
Hi Alex,
thanks for your answer. From my side I am unblocked by the patching the templates locally:
find ./ -type f -exec sed -i 's/openfaas\/classic-watchdog:0.18.1/openfaas\/classic-watchdog:0.18.2/g' {} \;
I think from OpenFaaS side we can update the templates to bump the classic-watchdog image to a more recent one than 0.18.1 will be enough.
Faas functions relying on
openfaas/classic-watchdog:0.18.1
do not build on WSL.output:
Expected Behaviour
Build should succeed
Current Behaviour
Builds fails with:
COPY failed: stat /var/lib/docker/overlay2/xxxx/merged/fwatchdog: no such file or directory
Possible Solution
Patching the watchdog version being used in the multi-stage builds in the pulled template does the trick.
Steps to Reproduce (for bugs)
Context
FaaS functions do not build on WSL.
Your Environment
docker version
(e.g. Docker 17.0.05 ):Are you using Docker Swarm or Kubernetes (FaaS-netes)? k3d cluster
Operating System and version (e.g. Linux, Windows, MacOS): WSL - Ubuntu Linux (Linux 4.4.0-17763-Microsoft #1217-Microsoft Mon May 05 16:09:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux)