Skip to content

devfile-samples/devfile-sample-python-basic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creating an application with a Python code sample

Note: The Python code sample version 2.0.0 uses the 8080 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:

This code sample inherits the components and commands of the specified parent devfile. The sample devfile overrides and extends parts of the parent devfile, in this case parts of the deploy component.

  1. The parent devfile.yaml file has an 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 deploy component overrides the parent deploy and points to a deploy.yaml file that contains instructions for deploying the built container image.
  4. The parent devfile.yaml deploy command completes the outerloop deployment phase by pointing to the build and deploy components to create your application.

Additional resources

About

A basic sample application using Python with devfile

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors