<p>I am reading <a href="https://cloud.google.com/kubernetes-engine/docs/tutorials/gitops-cloud-build" rel="nofollow noreferrer">this GitOps-style</a> article on google cloud and I am now wondering how can I substitute the sample <a href="https://cloud.google.com/kubernetes-engine/docs/tutorials/gitops-cloud-build#create_the_git_repositories_in" rel="nofollow noreferrer">python application</a> which they clone from <a href="https://github.com/GoogleCloudPlatform/gke-gitops-tutorial-cloudbuild" rel="nofollow noreferrer">here</a> with a Google Cloud Function (GCF) which is being triggered by Google Cloud Storage (GCS). </p>

<p><a href="https://cloud.google.com/functions/docs/testing/test-background" rel="nofollow noreferrer">This article</a> describes how you can unit test, integration test and system test a GCF and I would like to apply this in the GitOps-style continuous delivery sample. But, for that purpose I would need a specific Dockerfile (I suppose) similar to this one (but related to node.js):</p>

<pre><code>FROM python:3.7-slim
RUN pip install flask
WORKDIR /app
COPY app.py /app/app.py
ENTRYPOINT ["python"]
CMD ["/app/app.py"]
</code></pre>

<p>and maybe the <strong>yaml</strong> file. I would be happy if you could give me some directions. I am quite new to dockers, containers and kubernetes as a whole.</p>

<p>From what I understand, the syntax of the Dockerfile describes your project type and the runtime for it. So, in my case I guess I need to describe Google's runtime for executing cloud functions. I am no sure this is possible?</p>

user2128702
<p>I cannot understand why you want to do it this way... Isn't cloud function intended to do not care about virtualization, containerization, servers etc.? Seems you want to do something that Google Cloud Functions want to avoid...</p>

<p>As requested I am attaching <a href="http://youtube.com/watch?v=UPqN1pxF1lk" rel="nofollow noreferrer">this</a> . It's really worth to watch.</p>
