Creating an application with a Node.js code sample
Note: The Node.js 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:
The docker/Dockerfile contains the instructions you need to build the code sample as a container image.
The devfile.yamlkubernetes-deploy component points to a deploy.yaml file that contains instructions for deploying the built container image.
The devfile.yamldeploy command completes the outerloop deployment phase by pointing to the image-build and kubernetes-deploy components to create your application.
Creating an application with a Node.js code sample
Note: The Node.js code sample uses the 8081 HTTP port.
Before you begin creating an application with this
devfilecode sample, it’s helpful to understand the relationship between thedevfileandDockerfileand how they contribute to your build. You can find these files at the following URLs:devfile.yamlDockerfiledevfile.yamlfile has animage-buildcomponent that points to yourDockerfile.docker/Dockerfilecontains the instructions you need to build the code sample as a container image.devfile.yamlkubernetes-deploycomponent points to adeploy.yamlfile that contains instructions for deploying the built container image.devfile.yamldeploycommand completes the outerloop deployment phase by pointing to theimage-buildandkubernetes-deploycomponents to create your application.License
This stack is licensed under the EPL 2.0 license.
Additional resources