-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0dc5531
commit 9ee6670
Showing
9 changed files
with
68 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="TemplateServiceJavaSpringBootApplication" type="Application" factoryName="Application" nameIsGenerated="true"> | ||
<envs> | ||
<env name="NEWRELIC_API_KEY" value="9815e0163fd3e754c542094658a7fa0fFFFFNRAL" /> | ||
</envs> | ||
<option name="MAIN_CLASS_NAME" value="code.shubham.TemplateServiceJavaSpringBootApplication" /> | ||
<module name="template-service-java-springboot.main" /> | ||
<option name="VM_PARAMETERS" value="-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=8009 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false" /> | ||
<extension name="coverage"> | ||
<pattern> | ||
<option name="PATTERN" value="code.shubham.*" /> | ||
<option name="ENABLED" value="true" /> | ||
</pattern> | ||
</extension> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
FROM openjdk:21-jdk | ||
LABEL authors="Shubham Varshney" | ||
LABEL maintainer="Shubham Varshney" | ||
|
||
ENV JAVA_HOME="/usr/lib/jvm/default-jvm" | ||
|
||
ENV PATH=$PATH:${JAVA_HOME}/bin | ||
ADD build/libs/template-service-java-springboot-0.0.1.jar app.jar | ||
|
||
# Expose the port for JMX | ||
EXPOSE 8009 | ||
|
||
EXPOSE 8080 | ||
ENTRYPOINT ["java", "-Xms64M", "-Xmx128M", "-jar", "app.jar"] | ||
|
||
ENTRYPOINT ["java", "-Xms64M", "-Xmx128M", "-Dcom.sun.management.jmxremote=true", "-Dcom.sun.management.jmxremote.port=8009", "-Dcom.sun.management.jmxremote.ssl=false", "-Dcom.sun.management.jmxremote.authenticate=false", "-jar", "app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
FROM fluent/fluent-bit:2.1.8 | ||
LABEL authors="Shubham Varshney" | ||
LABEL maintainer="Shubham Varshney" | ||
|
||
ADD fluent-bit.conf.temp /fluent-bit/etc/ | ||
#ADD parsers.conf /fluent-bit/etc/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
echo $NEWRELIC_API_KEY | sed -i 's/$NEWRELIC_API_KEY/$1/g' /etc/newrelic-infra.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
FROM newrelic/infrastructure:latest | ||
ADD newrelic-infra/newrelic-infra.yml /etc/newrelic-infra.yml | ||
LABEL authors="Shubham Varshney" | ||
LABEL maintainer="Shubham Varshney" | ||
|
||
ADD newrelic-infra/newrelic-infra.yml /etc/newrelic-infra.yml | ||
ADD newrelic-infra/execute.sh /tmp/execute.sh | ||
|
||
RUN chmod 777 /tmp/execute.sh | ||
|
||
ENTRYPOINT "/bin/bash /tmp/execute.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
license_key: ${NEWRELIC_API_KEY} | ||
license_key: 9815e0163fd3e754c542094658a7fa0fFFFFNRAL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters