Skip to content

Commit

Permalink
Add metrics for openmrs
Browse files Browse the repository at this point in the history
  • Loading branch information
enyachoke committed Mar 21, 2021
1 parent f4c0801 commit 05792ee
Show file tree
Hide file tree
Showing 2 changed files with 4,739 additions and 1 deletion.
11 changes: 10 additions & 1 deletion openmrs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,24 @@ ARG OPENMRS_WAR_URL=https://openmrs.jfrog.io/artifactory/public/org/openmrs/web/

RUN apk add mysql-client gettext coreutils curl wget

RUN wget -O /usr/local/tomcat/webapps/openmrs.war ${OPENMRS_WAR_URL}
COPY setenv.sh /usr/local/tomcat/bin/setenv.sh
COPY setenv.sh /usr/local/tomcat/bin/setenv.sh

COPY wait-for-it.sh /usr/local/tomcat/wait-for-it.sh
COPY startup.sh /usr/local/tomcat/startup.sh
COPY tomcat/web.xml /usr/local/tomcat/conf/web.xml

RUN sed -i '/Connector port="8080"/a URIEncoding="UTF-8" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>"' /usr/local/tomcat/conf/server.xml

RUN chmod +x /usr/local/tomcat/wait-for-it.sh
RUN chmod +x /usr/local/tomcat/startup.sh
RUN wget -O /usr/local/tomcat/webapps/openmrs.war ${OPENMRS_WAR_URL} \
&& wget -O /usr/local/tomcat/lib/simpleclient_common-0.10.0.jar https://repo1.maven.org/maven2/io/prometheus/simpleclient_common/0.10.0/simpleclient_common-0.10.0.jar \
&& wget -O /usr/local/tomcat/lib/simpleclient_hotspot-0.10.0.jar https://repo1.maven.org/maven2/io/prometheus/simpleclient_hotspot/0.10.0/simpleclient_hotspot-0.10.0.jar \
&& wget -O /usr/local/tomcat/lib/simpleclient_servlet-0.10.0.jar https://repo1.maven.org/maven2/io/prometheus/simpleclient_servlet/0.10.0/simpleclient_servlet-0.10.0.jar \
&& wget -O /usr/local/tomcat/lib/simpleclient-0.10.0.jar https://repo1.maven.org/maven2/io/prometheus/simpleclient/0.10.0/simpleclient-0.10.0.jar \
&& wget -O /usr/local/tomcat/lib/tomcat_exporter_client-0.0.14.jar https://repo1.maven.org/maven2/nl/nlighten/tomcat_exporter_client/0.0.14/tomcat_exporter_client-0.0.14.jar \
&& wget -O /usr/local/tomcat/webapps/metrics.war https://repo1.maven.org/maven2/nl/nlighten/tomcat_exporter_servlet/0.0.14/tomcat_exporter_servlet-0.0.14.war


CMD ["/usr/local/tomcat/startup.sh"]
Loading

0 comments on commit 05792ee

Please sign in to comment.