Skip to content

Conversation

robertmcnees
Copy link
Contributor

This PR updates the guide in a few main areas:

  • Spring Boot Docker Compose Support is the preferred method of running an external Redis container.
  • Added a new (common) section on building the guide in 4 different ways. A jar file, a Docker container, a native image, and a native image container
  • Replace Lombok with Java Record
  • Add GitHub Actions CI build

The teaching content remains unchanged.

Robert McNees added 5 commits June 25, 2024 08:34
A Java class with a main method class is required to build the application
with CI. Additionally, the Initial folder is meant to mirror the
content that is donwloaded from Spring Initializr, which comes
with a main method class.
This commit implements Spring Boot Docker Compose Support
to run the externaly Redis container. This simplifies the
learning experince and makes the guide more repeatable.
The new content will walk the user through 4 different
ways to build the application. First through a standalone jar file,
next through a docker container, next through a native compile,
and finally through a native container.
Lombok was initially used to reduce boilerplate code
before Record functionality was introduced in Java.
Now that we have records, we can switch out Lombok for
Java records and still have no boilerplate code in the
Coffee class. In general, the fewer dependencies that
we have the more the learner can focus on the core
teaching.
@robertmcnees robertmcnees self-assigned this Jun 25, 2024
@robertmcnees robertmcnees requested review from Buzzardo and mp911de June 25, 2024 13:46
@robertmcnees
Copy link
Contributor Author

Adding @mp911de for an optional review. This is similar in scope to other updates to bring Docker Compose support to our guides.

Pinging @chemicL as an optional reviewer as well.

Copy link

@chemicL chemicL left a comment

Choose a reason for hiding this comment

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

From a brief look I think the changes are a great refresh.


== Preparing to Build the Application

To run the code without Spring Boot Docker Compose support, you need a version of Redis running locally to connect to.
Copy link

Choose a reason for hiding this comment

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

Remove to connect to

@robertmcnees robertmcnees merged commit d959bf8 into spring-guides:main Jul 10, 2024
@robertmcnees robertmcnees deleted the guide_update branch July 10, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants