Skip to content

Commit

Permalink
configure nats container
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaimaaeROUAI committed Apr 8, 2024
1 parent a6b963f commit 7b3a4dc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
14 changes: 13 additions & 1 deletion src/fulfillment/app/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,16 @@ mushop:
messaging:
subjects:
orders: ${ORDERS_NEW:mushop-orders}
shipments: ${ORDERS_SHIPPED:mushop-shipments}
shipments: ${ORDERS_SHIPPED:mushop-shipments}
test-resources:
containers:
nats:
image-name: nats:latest
hostnames:
- nats.host
exposed-ports:
- nats.port: 4222
nats:
default:
addresses:
- "nats://${nats.host}:${nats.port}"
5 changes: 0 additions & 5 deletions src/fulfillment/oci/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ dependencies {
implementation("io.micronaut.oraclecloud:micronaut-oraclecloud-micrometer")

testImplementation(project(":tck"))
testImplementation("org.testcontainers:testcontainers")
testImplementation("io.micronaut:micronaut-http-client")
}

Expand All @@ -52,7 +51,3 @@ dockerBuild {
dockerBuildNative {
images = ["phx.ocir.io/oraclelabs/micronaut-showcase/mushop/${project.parent.name}-${project.name}-native:$project.version"]
}

dockerfileNative {
instruction "RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.11/main' >> /etc/apk/repositories && apk update && apk add 'zlib<1.2.12'"
}
1 change: 0 additions & 1 deletion src/fulfillment/tck/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ dependencies {
implementation("io.micronaut:micronaut-inject-groovy")
implementation("io.micronaut.test:micronaut-test-spock")
implementation("org.testcontainers:spock")
implementation("org.testcontainers:testcontainers")
}

0 comments on commit 7b3a4dc

Please sign in to comment.