-
Notifications
You must be signed in to change notification settings - Fork 14
Bump to Spring Boot 3.5, add non-docker build script #48
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
Open
TimHess
wants to merge
7
commits into
main
Choose a base branch
from
boot-3.5
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4ef8013
Add shell script to build config, eureka, sba images, bump boot, eure…
TimHess 8751fcd
PR feedback
TimHess bb8b4aa
Build most images with Gradle instead of dockerfiles, move Spring Boo…
TimHess 28e9c0f
Always get version from metadata
TimHess c9d10af
Use $Env:ProgramFiles
TimHess 4be66e2
List pre-requisites
TimHess 503f058
Enable AoT for SBA, more accurate image date, fix SCCS config
TimHess File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,7 @@ build/ | |
|
||
# MacOS | ||
.DS_Store | ||
|
||
# native build artifacts | ||
*.zip | ||
*-temp/ |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# SteeltoeOSS Docker Images | ||
|
||
GitHub repo for server images to use for local development with SteeltoeOSS. | ||
|
||
## Building | ||
|
||
### Pre-Requisites | ||
|
||
The following tools are required to build any image in this repository: | ||
|
||
1. PowerShell or pwsh | ||
1. Docker or Podman | ||
|
||
#### Config Server, Eureka and Spring Boot Admin | ||
|
||
The process for these images is to download starter projects from start.spring.io, apply patches to those files and produce images using [the Gradle Plugin](https://docs.spring.io/spring-boot/gradle-plugin/packaging-oci-image.html). | ||
To build these images you must also have: | ||
|
||
1. Access to start.spring.io | ||
1. `patch` available in the path or installed with Git for Windows | ||
1. JDK 21 | ||
|
||
If you do not already have a JDK installed, consider using [Scoop](https://scoop.sh/): | ||
|
||
```shell | ||
# Permit executing remote-signed scripts | ||
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser | ||
# Install Scoop | ||
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression | ||
# Add the Java bucket | ||
scoop bucket add java | ||
# Install the JDK | ||
scoop install java/openjdk21 | ||
``` | ||
|
||
### Build a specific image | ||
|
||
```shell | ||
./build.ps1 config-server | ||
``` | ||
|
||
## Running | ||
|
||
### List the created images | ||
|
||
```shell | ||
docker images | ||
bart-vmware marked this conversation as resolved.
Show resolved
Hide resolved
|
||
``` | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When I run
Should the |
||
See [Common Tasks](https://github.com/SteeltoeOSS/Samples/blob/main/CommonTasks.md/) for instructions on how to run the various docker images. | ||
|
||
## Images | ||
|
||
| Name | Description | | ||
| ---- | ----------- | | ||
| [steeltoe.azurecr.io/config-server](config-server/) | Spring Cloud Config Server | | ||
| [steeltoe.azurecr.io/eureka-server](eureka-server/) | Netflix Eureka Server | | ||
| [steeltoe.azurecr.io/spring-boot-admin](spring-boot-admin/) | Spring Boot Admin | | ||
| [steeltoe.azurecr.io/uaa-server](uaa-server/) | Cloud Foundry UAA Server | | ||
|
||
## Debug Image Building | ||
|
||
### Inspect Container Contents | ||
|
||
Via [StackOverflow](https://stackoverflow.com/questions/32353055/how-to-start-a-stopped-docker-container-with-a-different-command/39329138#39329138), here are the commands to list files in a stopped container. | ||
|
||
1. Find the id of the stopped container | ||
* `docker ps -a` | ||
1. Commit the stopped container to a new image: test_image. | ||
* `docker commit $CONTAINER_ID test_image` | ||
1. Run the new image in a new container with a shell. | ||
* `docker run -ti --entrypoint=sh test_image` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.