leopardslab / clocal-gcp

🔭 Emulation engine for GCP
Apache License 2.0
67 stars 57 forks source link

Cloud-function failed to start (start.sh file not found) #108

Open sachith-1 opened 3 years ago

sachith-1 commented 3 years ago

When I run the command npm run func start cloud function failed to start because inside the container start.sh, file not found in the scripts directory. func-start

then I checked inside the container to see if it's really not there with the docker exec containerID ls scripts command and there are only 5 .sh files available inside the container, so some files are missing including start.sh. insid-scripts-directory

but other files are available in the project directory. I think when building the docker image those files are not available in the scripts directory ( clocal-gcp\src\services\cloud-functions\scripts ).

To solve this issue, need to build a new image and push it to org ( I can't fix this issue because I don't have access to push it to org ).

With the image, I build it worked (sachith101/cloud-function)

image