|
1 | 1 | # Creating an application with a Spring Boot code sample
|
2 | 2 |
|
3 |
| -**Note:** The Spring Boot code sample uses the **8081** HTTP port. |
| 3 | +**Note:** The Spring Boot code sample version `v2.0.0` uses the **8080** HTTP port. |
4 | 4 |
|
5 | 5 | 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:
|
6 | 6 |
|
7 |
| -* [Spring Boot `devfile.yaml`](https://github.com/devfile-samples/devfile-sample-java-springboot-basic/blob/main/devfile.yaml) |
8 |
| -* [Spring Boot `Dockerfile`](https://github.com/devfile-samples/devfile-sample-java-springboot-basic/blob/main/docker/Dockerfile) |
| 7 | +- [Spring Boot `devfile.yaml`](https://github.com/devfile-samples/devfile-sample-java-springboot-basic/blob/main/devfile.yaml) |
| 8 | +- [Spring Boot `Dockerfile`](https://github.com/devfile-samples/devfile-sample-java-springboot-basic/blob/main/docker/Dockerfile) |
9 | 9 |
|
10 | 10 | 1. The `devfile.yaml` file has an [`image-build` component](https://github.com/devfile-samples/devfile-sample-java-springboot-basic/blob/main/devfile.yaml#L21-L27) that points to your `Dockerfile`.
|
11 | 11 | 2. The [`docker/Dockerfile`](https://github.com/devfile-samples/devfile-sample-java-springboot-basic/blob/main/docker/Dockerfile) contains the instructions you need to build the code sample as a container image.
|
12 | 12 | 3. The `devfile.yaml` [`kubernetes-deploy` component](https://github.com/devfile-samples/devfile-sample-java-springboot-basic/blob/main/devfile.yaml#L28-L41) points to a `deploy.yaml` file that contains instructions for deploying the built container image.
|
13 | 13 | 4. The `devfile.yaml` [`deploy` command](https://github.com/devfile-samples/devfile-sample-java-springboot-basic/blob/main/devfile.yaml#L43-L56) completes the [outerloop](https://devfile.io/docs/2.2.0/innerloop-vs-outerloop) deployment phase by pointing to the `image-build` and `kubernetes-deploy` components to create your application.
|
14 | 14 |
|
15 | 15 | ### Additional resources
|
16 |
| -* For more information about Spring Boot, see [Spring Boot](https://spring.io/projects/spring-boot). |
17 |
| -* For more information about devfiles, see [Devfile.io](https://devfile.io/). |
18 |
| -* For more information about the deployment outerloop, see [Devfile.io: Innerloop versus outerloop](https://devfile.io/docs/2.2.0/innerloop-vs-outerloop). |
19 |
| -* For more information about Dockerfiles, see [Dockerfile reference](https://docs.docker.com/engine/reference/builder/). |
| 16 | + |
| 17 | +- For more information about Spring Boot, see [Spring Boot](https://spring.io/projects/spring-boot). |
| 18 | +- For more information about devfiles, see [Devfile.io](https://devfile.io/). |
| 19 | +- For more information about the deployment outerloop, see [Devfile.io: Innerloop versus outerloop](https://devfile.io/docs/2.2.0/innerloop-vs-outerloop). |
| 20 | +- For more information about Dockerfiles, see [Dockerfile reference](https://docs.docker.com/engine/reference/builder/). |
0 commit comments