Skip to content

Commit

Permalink
fixes docket script
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Sep 22, 2023
1 parent 4149ffc commit b5d0e48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions boot-opensearch-sample/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/ ./
Expand Down
7 changes: 2 additions & 5 deletions boot-opensearch-sample/docker/docker-compose-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b5d0e48

Please sign in to comment.