-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding global-microservices-springdata-nosql to demo-livelab (#169)
* LiveLab v0 - global-microservices-springdata-nosql to demo-livelab * Update build and push images to the latest GitHub action * optimizing the build of the zip files
- Loading branch information
1 parent
5d77e78
commit d64899f
Showing
38 changed files
with
1,493 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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,69 @@ | ||
name: Build and publish Demo Movie container image to GitHub Container Registry | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'demo-livelab/global-microservices-springdata-nosql/code-nosql-spring-sdk/*' | ||
- '.github/workflows/build-and-push-demo-movie-image.yml' | ||
workflow_dispatch: | ||
|
||
env: | ||
IMAGE_NAME: demo-nosql-movie-example-app | ||
|
||
|
||
jobs: | ||
build-and-push: | ||
name: Build and push Movie Demo container image | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- | ||
name: Repository owner needs to be lowercase | ||
id: repo-owner | ||
run: | | ||
REPO_OWNER="${{ github.repository_owner }}" | ||
echo "repo-owner=${REPO_OWNER,,}" >> "$GITHUB_OUTPUT" | ||
- | ||
name: Get current date | ||
id: date | ||
run: echo "date=$(date +'%Y-%m')" >> "$GITHUB_OUTPUT" | ||
- | ||
name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Generate container image metadata | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ghcr.io/${{ steps.repo-owner.outputs.repo-owner }}/${{ env.IMAGE_NAME }} | ||
flavor: | | ||
latest=false | ||
tags: | | ||
type=raw,value=latest | ||
type=raw,value=${{ env.TAG }} | ||
env: | ||
TAG: ${{ steps.date.outputs.date }} | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: ./demo-livelab/global-microservices-springdata-nosql/code-nosql-spring-sdk/ | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains 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 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 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,3 @@ | ||
# video-on-demand-with-nosql-database | ||
Demo Video On Demand streaming application using GraphQL and NoSQL | ||
|
Binary file added
BIN
+61.1 KB
...lobal-microservices-springdata-nosql/code-nosql-spring-sdk/.mvn/wrapper/maven-wrapper.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
...icroservices-springdata-nosql/code-nosql-spring-sdk/.mvn/wrapper/maven-wrapper.properties
This file contains 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,2 @@ | ||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip | ||
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar |
6 changes: 6 additions & 0 deletions
6
demo-livelab/global-microservices-springdata-nosql/code-nosql-spring-sdk/Dockerfile
This file contains 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,6 @@ | ||
FROM ghcr.io/graalvm/jdk:ol8-java17 | ||
EXPOSE 8000 | ||
ARG JAR_FILE=target/spring-data-rest-nosql-0.0.1.jar | ||
ADD ${JAR_FILE} spring-data-rest-nosql-0.0.1.jar | ||
RUN ls -aldrt | ||
ENTRYPOINT ["java","-jar","./spring-data-rest-nosql-0.0.1.jar"] |
17 changes: 17 additions & 0 deletions
17
demo-livelab/global-microservices-springdata-nosql/code-nosql-spring-sdk/HELP.md
This file contains 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,17 @@ | ||
# Getting Started | ||
|
||
### Reference Documentation | ||
For further reference, please consider the following sections: | ||
|
||
* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html) | ||
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/3.2.0/maven-plugin/reference/html/) | ||
* [Create an OCI image](https://docs.spring.io/spring-boot/docs/3.2.0/maven-plugin/reference/html/#build-image) | ||
* [Rest Repositories](https://docs.spring.io/spring-boot/docs/3.2.0/reference/htmlsingle/index.html#howto.data-access.exposing-spring-data-repositories-as-rest) | ||
|
||
### Guides | ||
The following guides illustrate how to use some features concretely: | ||
|
||
* [Accessing JPA Data with REST](https://spring.io/guides/gs/accessing-data-rest/) | ||
* [Accessing Neo4j Data with REST](https://spring.io/guides/gs/accessing-neo4j-data-rest/) | ||
* [Accessing MongoDB Data with REST](https://spring.io/guides/gs/accessing-mongodb-data-rest/) | ||
|
Oops, something went wrong.