diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..d657a63 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -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) diff --git a/.gitpod.dockerfile b/.gitpod.dockerfile new file mode 100644 index 0000000..1c0ba0f --- /dev/null +++ b/.gitpod.dockerfile @@ -0,0 +1,2 @@ +FROM gitpod/workspace-mongodb + diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..9edbade --- /dev/null +++ b/.gitpod.yml @@ -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 + + diff --git a/target/classes/application.properties b/target/classes/application.properties new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/target/classes/application.properties @@ -0,0 +1 @@ + diff --git a/target/classes/application.yml b/target/classes/application.yml new file mode 100644 index 0000000..6336495 --- /dev/null +++ b/target/classes/application.yml @@ -0,0 +1,6 @@ +spring: + data: + mongodb: + database: Book + host: javatechiemongodb + port: 27017 \ No newline at end of file diff --git a/target/classes/com/javatechie/docker/compose/SpringbootMongodbDockerApplication.class b/target/classes/com/javatechie/docker/compose/SpringbootMongodbDockerApplication.class new file mode 100644 index 0000000..244ac0a Binary files /dev/null and b/target/classes/com/javatechie/docker/compose/SpringbootMongodbDockerApplication.class differ diff --git a/target/classes/com/javatechie/docker/compose/dao/BookRepository.class b/target/classes/com/javatechie/docker/compose/dao/BookRepository.class new file mode 100644 index 0000000..51a4ac3 Binary files /dev/null and b/target/classes/com/javatechie/docker/compose/dao/BookRepository.class differ diff --git a/target/classes/com/javatechie/docker/compose/model/Book.class b/target/classes/com/javatechie/docker/compose/model/Book.class new file mode 100644 index 0000000..4961d53 Binary files /dev/null and b/target/classes/com/javatechie/docker/compose/model/Book.class differ diff --git a/target/classes/docker-compose.yml b/target/classes/docker-compose.yml new file mode 100644 index 0000000..b48a3d3 --- /dev/null +++ b/target/classes/docker-compose.yml @@ -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 \ No newline at end of file diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties new file mode 100644 index 0000000..86b0cbe --- /dev/null +++ b/target/maven-archiver/pom.properties @@ -0,0 +1,3 @@ +artifactId=springboot-mongodb-docker +groupId=com.javatechie +version=0.0.1-SNAPSHOT diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..0fff65e --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,3 @@ +com/javatechie/docker/compose/model/Book.class +com/javatechie/docker/compose/dao/BookRepository.class +com/javatechie/docker/compose/SpringbootMongodbDockerApplication.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..c8f871f --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -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 diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..ed6187c --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1 @@ +com/javatechie/docker/compose/SpringbootMongodbDockerApplicationTests.class diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..803aea9 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1 @@ +/workspace/springboot-mongo-docker/src/test/java/com/javatechie/docker/compose/SpringbootMongodbDockerApplicationTests.java diff --git a/target/springboot-mongo-docker.jar b/target/springboot-mongo-docker.jar new file mode 100644 index 0000000..aa020a7 Binary files /dev/null and b/target/springboot-mongo-docker.jar differ diff --git a/target/springboot-mongo-docker.jar.original b/target/springboot-mongo-docker.jar.original new file mode 100644 index 0000000..0e7ba13 Binary files /dev/null and b/target/springboot-mongo-docker.jar.original differ diff --git a/target/surefire-reports/2024-03-06T12-53-46_379.dumpstream b/target/surefire-reports/2024-03-06T12-53-46_379.dumpstream new file mode 100644 index 0000000..10701e1 --- /dev/null +++ b/target/surefire-reports/2024-03-06T12-53-46_379.dumpstream @@ -0,0 +1,3 @@ +# Created at 2024-03-06T12:53:46.867 +Picked up JAVA_TOOL_OPTIONS: -Xmx3489m + diff --git a/target/surefire-reports/2024-03-15T11-24-53_150.dumpstream b/target/surefire-reports/2024-03-15T11-24-53_150.dumpstream new file mode 100644 index 0000000..c6ad8a6 --- /dev/null +++ b/target/surefire-reports/2024-03-15T11-24-53_150.dumpstream @@ -0,0 +1,3 @@ +# Created at 2024-03-15T11:24:53.435 +Picked up JAVA_TOOL_OPTIONS: -Xmx3489m + diff --git a/target/surefire-reports/TEST-com.javatechie.docker.compose.SpringbootMongodbDockerApplicationTests.xml b/target/surefire-reports/TEST-com.javatechie.docker.compose.SpringbootMongodbDockerApplicationTests.xml new file mode 100644 index 0000000..a771d5a --- /dev/null +++ b/target/surefire-reports/TEST-com.javatechie.docker.compose.SpringbootMongodbDockerApplicationTests.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/surefire-reports/com.javatechie.docker.compose.SpringbootMongodbDockerApplicationTests.txt b/target/surefire-reports/com.javatechie.docker.compose.SpringbootMongodbDockerApplicationTests.txt new file mode 100644 index 0000000..4319492 --- /dev/null +++ b/target/surefire-reports/com.javatechie.docker.compose.SpringbootMongodbDockerApplicationTests.txt @@ -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 diff --git a/target/test-classes/com/javatechie/docker/compose/SpringbootMongodbDockerApplicationTests.class b/target/test-classes/com/javatechie/docker/compose/SpringbootMongodbDockerApplicationTests.class new file mode 100644 index 0000000..bb30758 Binary files /dev/null and b/target/test-classes/com/javatechie/docker/compose/SpringbootMongodbDockerApplicationTests.class differ