fortinux / devfile-sample-python-basic

A basic sample application using Python with devfile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creating an application with a Python code sample

In this example we'll edit the flask app adding templates and some content.

Note: The Python code sample uses the 8081 HTTP port.

Before you begin creating an application with this devfile code sample, it's helpful to understand the relationship between the devfile and Dockerfile and how they contribute to your build. You can find these files at the following URLs:

  1. The devfile.yaml file has an image-build component that points to your Dockerfile.
  2. The docker/Dockerfile contains the instructions you need to build the code sample as a container image.
  3. The devfile.yaml kubernetes-deploy component points to a deploy.yaml file that contains instructions for deploying the built container image.
  4. The devfile.yaml deploy command completes the outerloop deployment phase by pointing to the image-build and kubernetes-deploy components to create your application.

Additional resources

About

A basic sample application using Python with devfile

License:Apache License 2.0


Languages

Language:HTML 72.8%Language:Python 14.6%Language:Dockerfile 12.6%