Skip to content
Open
2 changes: 1 addition & 1 deletion deploy/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ $# -ge 1 ] ; then
fi

NS=kernel
CHART_VERSION=1.3.0
CHART_VERSION=1.3.1-develop

echo Create $NS namespace
kubectl create ns $NS
Expand Down
2 changes: 1 addition & 1 deletion helm/auditmanager/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: auditmanager
description: A Helm chart for MOSIP Auditmanager module
type: application
version: 1.3.0
version: 1.3.1-develop
appVersion: ""
dependencies:
- name: common
Expand Down
18 changes: 14 additions & 4 deletions helm/auditmanager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ service:
externalTrafficPolicy: Cluster
image:
registry: docker.io
repository: mosipid/kernel-auditmanager-service
tag: 1.3.0
repository: mosipqa/kernel-auditmanager-service
tag: 1.3.x
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down Expand Up @@ -117,11 +117,21 @@ resources:
memory: 5000Mi
requests:
cpu: 1000m
memory: 3000Mi
memory: 2500Mi
additionalResources:
## Specify any JAVA_OPTS string here. These typically will be specified in conjunction with above resources
## Example: java_opts: "-Xms500M -Xmx500M"
javaOpts: "-Xms2250M -Xmx3750M"
javaOpts: >-
-XX:+UseZGC -XX:+ZGenerational -XX:+ZProactive
-XX:ZCollectionInterval=3 -XX:+ZUncommit -XX:ZUncommitDelay=60
-XX:ConcGCThreads=2 -Xms1875m -Xmx3200m
-XX:SoftMaxHeapSize=2600m -XX:+AlwaysPreTouch
-XX:ActiveProcessorCount=2 -XX:+UseContainerSupport
-XX:MaxMetaspaceSize=256m -XX:ReservedCodeCacheSize=192m
-XX:+UseCodeCacheFlushing -XX:+TieredCompilation
-XX:TieredStopAtLevel=4 -XX:SoftRefLRUPolicyMSPerMB=50
-XX:+DisableExplicitGC -XX:+ExitOnOutOfMemoryError
-Djava.security.egd=file:/dev/./urandom
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
## Clamav container already runs as 'mosip' user, so we may not need to enable this
containerSecurityContext:
Expand Down
4 changes: 2 additions & 2 deletions kernel/kernel-auditmanager-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>io.mosip.kernel</groupId>

<artifactId>kernel-auditmanager-api</artifactId>
<version>1.3.0</version>
<version>1.3.1-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

Expand All @@ -22,7 +22,7 @@
<maven-shade-plugin.version>2.3</maven-shade-plugin.version>
<central.publishing.maven.plugin.version>0.7.0</central.publishing.maven.plugin.version>

<kernel.core.version>1.3.0</kernel.core.version>
<kernel.core.version>1.3.1-SNAPSHOT</kernel.core.version>

<jacoco.maven.plugin.version>0.8.11</jacoco.maven.plugin.version>
<sonar.coverage.exclusions>**/dto/**,**/constant/**,**/config/**,**/httpfilter/**,**/cache/**,**/entity/**,**/model/**,**/exception/**,**/repository/**,**/request/**,**/spi/**,"**/proxy/**","**/AuditManagerBootApplication.java
Expand Down
13 changes: 10 additions & 3 deletions kernel/kernel-auditmanager-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,20 @@ COPY ./target/kernel-auditmanager-service-*.jar /home/${container_user}/kernel-a
# set working directory for the user
WORKDIR /home/${container_user}

COPY configure_start.sh ${work_dir}/configure_start.sh

# change permissions of file inside working dir
RUN sed -i 's/\r$//' ${work_dir}/configure_start.sh \
&& chmod +x ${work_dir}/configure_start.sh \
&& chown -R ${container_user}:${container_user} ${work_dir}

# select container user for all tasks
USER ${container_user_uid}:${container_user_gid}

# can expose required port
EXPOSE 8081

ENTRYPOINT ["sh", "configure_start.sh"]

# the command to run when the container starts
CMD wget -q --show-progress "${iam_adapter_url_env}" -O "${loader_path_env}"/kernel-auth-adapter.jar; \
java -XX:+ExplicitGCInvokesConcurrent -XX:+UseZGC -XX:+ZGenerational -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+UseStringDeduplication -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseCompressedOops \
-Dloader.path="${loader_path_env}" -Dspring.cloud.config.label="${spring_config_label_env}" -Dspring.profiles.active="${active_profile_env}" -Dspring.cloud.config.uri="${spring_config_url_env}" -jar kernel-auditmanager-service.jar ; \
CMD java -Dloader.path="${loader_path_env}" -Dspring.cloud.config.label="${spring_config_label_env}" -Dspring.profiles.active="${active_profile_env}" -Dspring.cloud.config.uri="${spring_config_url_env}" -jar kernel-auditmanager-service.jar ; \
12 changes: 12 additions & 0 deletions kernel/kernel-auditmanager-service/configure_start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

#installs the pre-requisites.
set -e

echo "Downloading pre-requisites install scripts"

wget -q --show-progress "${iam_adapter_url_env}" -O "${loader_path_env}"/kernel-auth-adapter.jar; \

echo "Installating pre-requisites completed."

exec "$@"
12 changes: 6 additions & 6 deletions kernel/kernel-auditmanager-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>io.mosip.kernel</groupId>

<artifactId>kernel-auditmanager-service</artifactId>
<version>1.3.0</version>
<version>1.3.1-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

Expand All @@ -21,12 +21,12 @@
<central.publishing.maven.plugin.version>0.7.0</central.publishing.maven.plugin.version>

<!-- spring -->
<kernel.core.version>1.3.0</kernel.core.version>
<kernel.applicant-type.version>1.3.0</kernel.applicant-type.version>
<kernel.audit-api.version>1.3.0</kernel.audit-api.version>
<kernel.logger.version>1.3.0</kernel.logger.version>
<kernel.core.version>1.3.1-SNAPSHOT</kernel.core.version>
<kernel.applicant-type.version>1.3.1-SNAPSHOT</kernel.applicant-type.version>
<kernel.audit-api.version>1.3.1-SNAPSHOT</kernel.audit-api.version>
<kernel.logger.version>1.3.1-SNAPSHOT</kernel.logger.version>
<kernel.auth-adapter.version>1.3.0</kernel.auth-adapter.version>
<kernel-dataaccess-hibernate-version>1.3.0</kernel-dataaccess-hibernate-version>
<kernel-dataaccess-hibernate-version>1.3.1-SNAPSHOT</kernel-dataaccess-hibernate-version>

<sonar.coverage.exclusions>**/dto/**,**/constant/**,**/config/**,**/httpfilter/**,**/cache/**,**/entity/**,**/model/**,**/exception/**,**/repository/**,**/request/**,**/spi/**,"**/proxy/**","**/AuditManagerBootApplication.java"</sonar.coverage.exclusions>
<sonar.cpd.exclusions>**/dto/**,**/entity/**,**/config/**</sonar.cpd.exclusions>
Expand Down
2 changes: 1 addition & 1 deletion kernel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<version>1.3.0</version>
<version>1.3.1-SNAPSHOT</version>
<groupId>io.mosip.kernel</groupId>
<artifactId>audit-manager</artifactId>
<packaging>pom</packaging>
Expand Down
Loading