Skip to content

Commit

Permalink
Including Publish Profile for Github
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Wiens committed Jan 30, 2025
1 parent db09e60 commit 0abf851
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 4 deletions.
42 changes: 42 additions & 0 deletions jpo-deduplicator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -291,4 +291,46 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>package-jar</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>
us.dot.its.jpo.deduplicator.DeduplicatorApplication</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<id>repackage</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<!-- GitHub Artifact publishing configuration -->
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/${github_organization}/jpo-deduplicator</url>
</repository>
</distributionManagement>
</project>
61 changes: 57 additions & 4 deletions sample.env
Original file line number Diff line number Diff line change
@@ -1,27 +1,80 @@
### COMMON variables - START ###
# (Required) The IP address of Docker host machine which can be found by running "ifconfig"
# Hint: look for "inet addr:" within "eth0" or "en0" for OSX
DOCKER_HOST_IP=""


# Set the HOST IP of where the containers are running
DOCKER_HOST_IP=

# Set to the directory where the source code is. Generally the location of this file.
DOCKER_HOST_DIR=


KAFKA_BOOTSTRAP_SERVERS=${DOCKER_HOST_IP}:9092

# GitHub properties for pulling the latest version of the JPO-ODE
MAVEN_GITHUB_TOKEN=
MAVEN_GITHUB_ORG=usdot-jpo-ode


# Docker compose restart policy: https://docs.docker.com/engine/containers/start-containers-automatically/
RESTART_POLICY="on-failure:3"

# Available profiles:
# - all
# - deduplicator
# - deduplicator
# - deduplicator
# - deduplicator
# EXAMPLE: COMPOSE_PROFILES=deduplicator

# Available profiles:
# - all
# - cm_api_full
# - conflictmonitor
# - geojsonconverter
# - cm_gui
# - cm_api
# - keycloak
# - mongo
# - ode
# - adm
# - kafka
# - cm_base
# - conflictmonitor-build
# - cm_build
# - conflictmonitor-build
# - cm_release
# - conflictmonitor-release
# - ode_geojsonconverter
# - geojsonconverter
# - ode
# - adm

COMPOSE_PROFILES=deduplicator


# Set to "CONFLUENT" if broker is a Confluent Cloud broker
KAFKA_TYPE=

# Set to actual Confluent Cloud access key and secret values for SASL authentication
CONFLUENT_KEY=
CONFLUENT_SECRET=


### COMMON variables - END ###



### KAFKA variables - START ###
KAFKA_BOOTSTRAP_SERVERS=${DOCKER_HOST_IP}:9092
KAFKA_LOG_RETENTION_HOURS=3
KAFKA_LOG_RETENTION_BYTES=10737418240 # 10GB

# Variables for creating kafka topics:
KAFKA_TOPIC_PARTITIONS=1
KAFKA_TOPIC_REPLICAS=1
KAFKA_TOPIC_MIN_INSYNC_REPLICAS=1
KAFKA_TOPIC_RETENTION_MS=300000
KAFKA_TOPIC_DELETE_RETENTION_MS=3600000
### KAFKA variables - END ###


### DEDUPLICATOR variables - START ###
Expand Down

0 comments on commit 0abf851

Please sign in to comment.