I recently joined a new project where Firebase functions are deployed using the firebase deploy
command. However, upon checking the Google Cloud Platform Container Registry, I noticed Docker images corresponding to these function deployments. Strangely, the project owner claims they don’t utilize Docker, and there are no Docker YAML files in the repository. How could the Firebase function deployments end up in the Container Registry without explicit Docker usage? Any insights or explanations would be greatly appreciated. Thank you!
2
Answers
Cloud Functions deployments are all docker images. When you deploy a function, GCP automatically creates a docker image for your function code and the chosen runtime.
You should review the documentation for more detail:
As it was already mentioned, GCP used to create the source code image in Container Image by default. Now that Container Image is going to be retired, the default option to host the image is Artifact Registry, as mentioned in the documentation:
Now, if you need to migrate the Cloud Function image to Artifact Registry, you can re-deploy the CF with the tag: