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.
- The parent
devfile.yamlfile has anbuildcomponent that points to yourDockerfile. - The
docker/Dockerfilecontains the instructions you need to build the code sample as a container image. - The
devfile.yamldeploycomponent overrides the parentdeployand points to adeploy.yamlfile that contains instructions for deploying the built container image. - The parent
devfile.yamldeploycommand completes the outerloop deployment phase by pointing to thebuildanddeploycomponents to create your application.
- For more information about Python, see Python.
- For more information about devfiles, see Devfile.io.
- For more information about Dockerfiles, see Dockerfile reference.