-
Notifications
You must be signed in to change notification settings - Fork 15
Add an optional section for InstantOn #199
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
Merged
Merged
Changes from 21 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
6d6bd58
add InstantOn instruction
gkwan-ibm 0401679
add InstantOn instruction
gkwan-ibm 294fd3a
add InstantOn instruction
gkwan-ibm 68e5801
add InstantOn instruction
gkwan-ibm 7cd5048
add InstantOn instruction
gkwan-ibm 4ef0168
add InstantOn instruction
gkwan-ibm 45e71c9
add InstantOn instruction
gkwan-ibm ce65160
add InstantOn instruction
gkwan-ibm 327d638
add InstantOn instruction
gkwan-ibm 2494e4f
add InstantOn instruction
gkwan-ibm e870137
add InstantOn instruction
gkwan-ibm 5c54bb1
Update testApp.sh
gkwan-ibm d70e079
Update testApp.sh
gkwan-ibm 6081e69
Merge pull request #200 from OpenLiberty/gkwan-ibm-InstantOn-test
gkwan-ibm 1b3c129
Update README.adoc
gkwan-ibm 032cc83
address SME review (#201)
gkwan-ibm 7a38931
Update test.yml
gkwan-ibm c47d3f1
Update README.adoc
gkwan-ibm 8e33b73
Update README.adoc
gkwan-ibm 4653066
address sme comment
gkwan-ibm 964cf35
address sme comment
gkwan-ibm 201d06c
Update README.adoc
gkwan-ibm 42735a9
Update README.adoc
gkwan-ibm 7fb9f4c
Update README.adoc
gkwan-ibm c98540a
Update README.adoc
gkwan-ibm e82288b
address sme comment
gkwan-ibm 0a0dabb
address sme comment
gkwan-ibm 6c30691
Update README.adoc
gkwan-ibm 6155a13
Update README.adoc
gkwan-ibm 885103d
Update README.adoc
gkwan-ibm 117e559
Update README.adoc
gkwan-ibm 77b5267
Update README.adoc
gkwan-ibm 64ca07e
address final content review
gkwan-ibm 009a32f
Merge branch 'staging' into gkwan-ibm-InstantOn
gkwan-ibm 45763d6
Update Dockerfile
gkwan-ibm 8caeecd
Update Dockerfile
gkwan-ibm 0f60379
address final content review
gkwan-ibm dbcd15e
Update test.yml
gkwan-ibm 8c09055
Update README.adoc
gkwan-ibm bc6b6a3
Merge branch 'staging' into gkwan-ibm-InstantOn
gkwan-ibm 2c9ea07
Update README.adoc
gkwan-ibm 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 |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <server description="Enable the org.crac API"> | ||
|
|
||
| <featureManager> | ||
| <!-- tag::crac[] --> | ||
| <feature>crac-1.4</feature> | ||
| <!-- end::crac[] --> | ||
| </featureManager> | ||
|
|
||
| </server> |
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,58 @@ | ||
| # Stage and thin the application | ||
| # tag::OLimage1[] | ||
| FROM icr.io/appcafe/open-liberty:full-java21-openj9-ubi-minimal as staging | ||
| # end::OLimage1[] | ||
|
|
||
| # tag::copyJar[] | ||
| COPY --chown=1001:0 target/guide-spring-boot-0.1.0.jar \ | ||
| /staging/fat-guide-spring-boot-0.1.0.jar | ||
| # end::copyJar[] | ||
|
|
||
| # tag::springBootUtility[] | ||
| RUN springBootUtility thin \ | ||
| --sourceAppPath=/staging/fat-guide-spring-boot-0.1.0.jar \ | ||
| --targetThinAppPath=/staging/thin-guide-spring-boot-0.1.0.jar \ | ||
| --targetLibCachePath=/staging/lib.index.cache | ||
| # end::springBootUtility[] | ||
|
|
||
| # Build the image | ||
| # tag::OLimage2[] | ||
| FROM icr.io/appcafe/open-liberty:kernel-slim-java21-openj9-ubi-minimal | ||
| # end::OLimage2[] | ||
|
|
||
| ARG VERSION=1.0 | ||
| ARG REVISION=SNAPSHOT | ||
|
|
||
| LABEL \ | ||
| org.opencontainers.image.authors="Your Name" \ | ||
| org.opencontainers.image.vendor="Open Liberty" \ | ||
| org.opencontainers.image.url="local" \ | ||
| org.opencontainers.image.source="https://github.com/OpenLiberty/guide-spring-boot" \ | ||
| org.opencontainers.image.version="$VERSION" \ | ||
| org.opencontainers.image.revision="$REVISION" \ | ||
| vendor="Open Liberty" \ | ||
| name="hello app" \ | ||
| version="$VERSION-$REVISION" \ | ||
| summary="The hello application from the Spring Boot guide" \ | ||
| description="This image contains the hello application running with the Open Liberty runtime." | ||
|
|
||
| # tag::serverXml[] | ||
| RUN cp /opt/ol/wlp/templates/servers/springBoot3/server.xml /config/server.xml | ||
| # end::serverXml[] | ||
|
|
||
| # tag::cracXml[] | ||
| COPY --chown=1001:0 src/main/liberty/instantOn/crac.xml \ | ||
| /config/configDropins/defaults/crac.xml | ||
| # end::cracXml[] | ||
|
|
||
| RUN features.sh | ||
|
|
||
| # tag::libcache[] | ||
| COPY --chown=1001:0 --from=staging /staging/lib.index.cache /lib.index.cache | ||
| # end::libcache[] | ||
| # tag::thinjar[] | ||
| COPY --chown=1001:0 --from=staging /staging/thin-guide-spring-boot-0.1.0.jar \ | ||
| /config/dropins/spring/thin-guide-spring-boot-0.1.0.jar | ||
| # end::thinjar[] | ||
|
|
||
| RUN configure.sh |
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
Oops, something went wrong.
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.