Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
2 changes: 2 additions & 0 deletions .gitpod.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM gitpod/workspace-mongodb

11 changes: 11 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
image:
file: .gitpod.dockerfile
tasks:
- init: mvn install -DskipTests=false


1 change: 1 addition & 0 deletions target/classes/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

6 changes: 6 additions & 0 deletions target/classes/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
spring:
data:
mongodb:
database: Book
host: javatechiemongodb
port: 27017
Binary file not shown.
Binary file not shown.
Binary file not shown.
14 changes: 14 additions & 0 deletions target/classes/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "3"
services:
javatechiemongodb:
image: mongo:latest
container_name: "javatechiemongodb"
ports:
- 27017:27017
springboot-mongodb:
image: springboot-mongodb:1.0
container_name: springboot-mongodb
ports:
- 8080:8080
links:
- javatechiemongodb
3 changes: 3 additions & 0 deletions target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
artifactId=springboot-mongodb-docker
groupId=com.javatechie
version=0.0.1-SNAPSHOT
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
com/javatechie/docker/compose/model/Book.class
com/javatechie/docker/compose/dao/BookRepository.class
com/javatechie/docker/compose/SpringbootMongodbDockerApplication.class
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/workspace/springboot-mongo-docker/src/main/java/com/javatechie/docker/compose/model/Book.java
/workspace/springboot-mongo-docker/src/main/java/com/javatechie/docker/compose/SpringbootMongodbDockerApplication.java
/workspace/springboot-mongo-docker/src/main/java/com/javatechie/docker/compose/dao/BookRepository.java
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
com/javatechie/docker/compose/SpringbootMongodbDockerApplicationTests.class
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/workspace/springboot-mongo-docker/src/test/java/com/javatechie/docker/compose/SpringbootMongodbDockerApplicationTests.java
Binary file added target/springboot-mongo-docker.jar
Binary file not shown.
Binary file added target/springboot-mongo-docker.jar.original
Binary file not shown.
3 changes: 3 additions & 0 deletions target/surefire-reports/2024-03-06T12-53-46_379.dumpstream
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Created at 2024-03-06T12:53:46.867
Picked up JAVA_TOOL_OPTIONS: -Xmx3489m

3 changes: 3 additions & 0 deletions target/surefire-reports/2024-03-15T11-24-53_150.dumpstream
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Created at 2024-03-15T11:24:53.435
Picked up JAVA_TOOL_OPTIONS: -Xmx3489m

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-------------------------------------------------------------------------------
Test set: com.javatechie.docker.compose.SpringbootMongodbDockerApplicationTests
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.873 s - in com.javatechie.docker.compose.SpringbootMongodbDockerApplicationTests
Binary file not shown.