Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Compose Guide Update #31

Merged

Conversation

robertmcnees
Copy link
Contributor

This PR rewrites a large portion of the guide to use Spring Boot Docker Compose Support. The pattern is similar to updates previously merged in MySQL.

Instructions on using Homebrew were removed in favor of a preference to use Spring Boot Docker compose support. This should allow for an easier getting started experience and not be specific to Mac users.

Additionally to adding Docker Compose, a section was added to run the application as a jar file and a Docker container. The Native section of the common file was excluded because this guide will require a custom hint to compile natively.

Also addresses issues #29 and #30.

Robert McNees added 4 commits June 20, 2024 07:22
This commit adds dependencies and a Docker Compose file
that is required to change the guide to use Docker compose
support. In this commit, only the complete folder is considered.
Documented instructions for using Spring Boot Docker
Compose support to run the guide. This is the preferred
option for runnign the guide. Additional instructions for homebrew
installation were removed.

A section was added about running the application as a jar
and as a container. Native compilation was excluded as it would
require a custom hint because of how the guide is written.
Native was excluded as it was not simple to implement and custom
hints are beyond the scope of this guide.
The initial folder is modified so that it is a true
representation of what will be downloaded from Spring
Initializr. This includes adding the new Docker Compose
dependency as well as a compose.yaml file.
README.adoc Outdated Show resolved Hide resolved
README.adoc Outdated Show resolved Hide resolved
README.adoc Outdated Show resolved Hide resolved
README.adoc Outdated Show resolved Hide resolved
@robertmcnees robertmcnees merged commit 088140f into spring-guides:main Jun 26, 2024
1 check passed
@robertmcnees robertmcnees deleted the docker_compose_guide_update branch June 26, 2024 09:40
include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/main/build_an_executable_jar_with_both.adoc[]
You can run the main method through your IDE.
Note that, if you have cloned the project from the solution repository, your IDE may look in the wrong place for the `compose.yaml` file.
You can configure your IDE to look in the correct place or you could use the command line to run the application.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change could to can (so that the tense matches).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants