Skip to content

Commit

Permalink
Merge pull request #347 from okhasawn/fixClasspath
Browse files Browse the repository at this point in the history
Fix classpath for capture proxy after renaming
  • Loading branch information
sumobrian authored Oct 10, 2023
2 parents 8765da5 + 12bfab3 commit c32af70
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
environment:
- http.port=19200
# Run processes for elasticsearch and capture proxy, and exit if either one ends
command: /bin/sh -c '/usr/local/bin/docker-entrypoint.sh eswrapper & /runJavaWithClasspath.sh org.opensearch.migrations.trafficcapture.proxyserver.Main --kafkaConnection kafka:9092 --destinationUri https://localhost:19200 --insecureDestination --listenPort 9200 --sslConfigFile /usr/share/elasticsearch/config/proxy_tls.yml & wait -n 1'
command: /bin/sh -c '/usr/local/bin/docker-entrypoint.sh eswrapper & /runJavaWithClasspath.sh org.opensearch.migrations.trafficcapture.proxyserver.CaptureProxy --kafkaConnection kafka:9092 --destinationUri https://localhost:19200 --insecureDestination --listenPort 9200 --sslConfigFile /usr/share/elasticsearch/config/proxy_tls.yml & wait -n 1'
depends_on:
- kafka

Expand All @@ -24,7 +24,7 @@ services:
# - migrations
# ports:
# - "9200:9200"
# command: /runJavaWithClasspath.sh org.opensearch.migrations.trafficcapture.proxyserver.Main --kafkaConnection kafka:9092 --destinationUri https://elasticsearch:9200 --insecureDestination --listenPort 9200 --sslConfigFile /usr/share/elasticsearch/config/proxy_tls.yml
# command: /runJavaWithClasspath.sh org.opensearch.migrations.trafficcapture.proxyserver.CaptureProxy --kafkaConnection kafka:9092 --destinationUri https://elasticsearch:9200 --insecureDestination --listenPort 9200 --sslConfigFile /usr/share/elasticsearch/config/proxy_tls.yml
# depends_on:
# - kafka
# - elasticsearch
Expand Down
2 changes: 1 addition & 1 deletion TrafficCapture/trafficCaptureProxyServer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ tasks.withType(Zip){

application {
// Define the main class for the application.
mainClass = 'org.opensearch.migrations.trafficcapture.proxyserver.Main'
mainClass = 'org.opensearch.migrations.trafficcapture.proxyserver.CaptureProxy'
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
- testing
ports:
- "9201:9201"
command: /runJavaWithClasspath.sh org.opensearch.migrations.trafficcapture.proxyserver.Main --destinationUri http://webserver:80 --listenPort 9201 --noCapture --destinationConnectionPoolSize 0 --numThreads 1
command: /runJavaWithClasspath.sh org.opensearch.migrations.trafficcapture.proxyserver.CaptureProxy --destinationUri http://webserver:80 --listenPort 9201 --noCapture --destinationConnectionPoolSize 0 --numThreads 1
depends_on:
- webserver

Expand Down
2 changes: 1 addition & 1 deletion deployment/copilot/capture-proxy-es/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ image:
# Port exposed through your container to route traffic to it.
port: 9200

command: /bin/sh -c '/usr/local/bin/docker-entrypoint.sh eswrapper & /runJavaWithClasspath.sh org.opensearch.migrations.trafficcapture.proxyserver.Main --kafkaConnection ${MIGRATION_KAFKA_BROKER_ENDPOINTS} --enableMSKAuth --destinationUri https://localhost:19200 --insecureDestination --listenPort 9200 --sslConfigFile /usr/share/elasticsearch/config/proxy_tls.yml & wait -n 1'
command: /bin/sh -c '/usr/local/bin/docker-entrypoint.sh eswrapper & /runJavaWithClasspath.sh org.opensearch.migrations.trafficcapture.proxyserver.CaptureProxy --kafkaConnection ${MIGRATION_KAFKA_BROKER_ENDPOINTS} --enableMSKAuth --destinationUri https://localhost:19200 --insecureDestination --listenPort 9200 --sslConfigFile /usr/share/elasticsearch/config/proxy_tls.yml & wait -n 1'

cpu: 1024 # Number of CPU units for the task.
memory: 4096 # Amount of memory in MiB used by the task.
Expand Down
2 changes: 1 addition & 1 deletion deployment/copilot/capture-proxy/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ image:
# Port exposed through your container to route traffic to it.
port: 9200

command: /runJavaWithClasspath.sh org.opensearch.migrations.trafficcapture.proxyserver.Main --kafkaConnection ${MIGRATION_KAFKA_BROKER_ENDPOINTS} --enableMSKAuth --destinationUri https://elasticsearch:9200 --insecureDestination --listenPort 9200 --sslConfigFile /usr/share/elasticsearch/config/proxy_tls.yml
command: /runJavaWithClasspath.sh org.opensearch.migrations.trafficcapture.proxyserver.CaptureProxy --kafkaConnection ${MIGRATION_KAFKA_BROKER_ENDPOINTS} --enableMSKAuth --destinationUri https://elasticsearch:9200 --insecureDestination --listenPort 9200 --sslConfigFile /usr/share/elasticsearch/config/proxy_tls.yml

cpu: 512 # Number of CPU units for the task.
memory: 2048 # Amount of memory in MiB used by the task.
Expand Down

0 comments on commit c32af70

Please sign in to comment.