From b5d0e485d97093b56838db98120b951351a29ef5 Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Fri, 22 Sep 2023 04:18:24 +0000 Subject: [PATCH] fixes docket script --- boot-opensearch-sample/Dockerfile | 4 ++-- boot-opensearch-sample/docker/docker-compose-app.yml | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/boot-opensearch-sample/Dockerfile b/boot-opensearch-sample/Dockerfile index 3605ff498..f1f2871aa 100644 --- a/boot-opensearch-sample/Dockerfile +++ b/boot-opensearch-sample/Dockerfile @@ -1,11 +1,11 @@ -FROM eclipse-temurin:17.0.8_7-jre-focal as builder +FROM eclipse-temurin:21-jre-focal as builder WORKDIR application ARG JAR_FILE=target/boot-opensearch-sample-0.0.1-SNAPSHOT.jar COPY ${JAR_FILE} application.jar RUN java -Djarmode=layertools -jar application.jar extract # the second stage of our build will copy the extracted layers -FROM eclipse-temurin:17.0.8_7-jre-focal +FROM eclipse-temurin:21-jre-focal WORKDIR application COPY --from=builder application/dependencies/ ./ COPY --from=builder application/spring-boot-loader/ ./ diff --git a/boot-opensearch-sample/docker/docker-compose-app.yml b/boot-opensearch-sample/docker/docker-compose-app.yml index 49df92430..a26b95493 100644 --- a/boot-opensearch-sample/docker/docker-compose-app.yml +++ b/boot-opensearch-sample/docker/docker-compose-app.yml @@ -8,10 +8,7 @@ services: - "18787:8787" restart: always depends_on: - - postgresqldb + - opensearch environment: - SPRING_PROFILES_ACTIVE=docker - - SPRING_DATASOURCE_DRIVER_CLASS_NAME=org.postgresql.Driver - - SPRING_DATASOURCE_URL=jdbc:postgresql://postgresqldb:5432/appdb - - SPRING_DATASOURCE_USERNAME=appuser - - SPRING_DATASOURCE_PASSWORD=secret + - OPENSEARCH_URIS=http://opensearch:9200