Skip to content

Commit

Permalink
Merge pull request #176 from shreelakshmijoshi/refactor/merging-deplo…
Browse files Browse the repository at this point in the history
…yerdev-and-deployer

Refactor/merging deployerdev and deployer
  • Loading branch information
Gokul-KG authored Sep 12, 2024
2 parents 2358731 + 9fafc21 commit fdd6ddd
Show file tree
Hide file tree
Showing 4 changed files with 188 additions and 321 deletions.
4 changes: 2 additions & 2 deletions docs/SETUP-and-Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ export LOG_LEVEL=INFO
- `iudx.iudx.apd.acl.server-dev-0.0.1-SNAPSHOT-fat.jar` - non-clustered vert.x and does not contain micrometer metrics

#### Running the clustered JAR
**Note**: The clustered JAR requires Zookeeper to be installed. Refer [here](https://zookeeper.apache.org/doc/r3.3.3/zookeeperStarted.html) to learn more about how to set up Zookeeper. Additionally, the `zookeepers` key in the config being used needs to be updated with the IP address/domain of the system running Zookeeper.
**Note**: The clustered JAR requires Zookeeper to be installed. Refer [here](https://zookeeper.apache.org/doc/current/zookeeperStarted.html) to learn more about how to set up Zookeeper. Additionally, the `zookeepers` key in the config being used needs to be updated with the IP address/domain of the system running Zookeeper.
The JAR requires 3 runtime arguments when running:

* --config/-c : path to the config file
* --hostname/-i : the hostname for clustering
* --host/-i : the hostname for clustering
* --modules/-m : comma separated list of module names to deploy

e.g. ```java -jar target/iudx.iudx.apd.acl.server-cluster-0.0.1-SNAPSHOT-fat.jar --host $(hostname)
Expand Down
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
<junit-jupiter.params>5.10.2</junit-jupiter.params>
<testcontainer.params>1.19.7</testcontainer.params>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<exec.mainClass>iudx.apd.acl.server.deploy.Deployer</exec.mainClass>
<exec.mainClassDev>iudx.apd.acl.server.deploy.DeployerDev
<exec.mainClassDev>iudx.apd.acl.server.deploy.Deployer
</exec.mainClassDev>
</properties>

Expand Down Expand Up @@ -544,7 +543,7 @@
<execution>
<id>acl-apd-server</id>
<configuration>
<mainClass>iudx.apd.acl.server.deploy.DeployerDev</mainClass>
<mainClass>iudx.apd.acl.server.deploy.Deployer</mainClass>
<arguments>
<argument>-jar</argument>
<argument>{project.build.directory}/${project.artifactId}-dev-${project.version}-fat.jar
Expand Down
Loading

0 comments on commit fdd6ddd

Please sign in to comment.