Skip to content

Commit efef657

Browse files
committed
BAH-2827 | add. script to modify server properties in performance image (#51)
1 parent 89a3263 commit efef657

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

bahmni-emr/package/docker/profiling.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
FROM bahmniindiadistro/openmrs:latest
22

3+
COPY bahmni-emr/package/docker/resources/modify-server-properties.sh modify-server-properties.sh
4+
RUN chmod +x modify-server-properties.sh
5+
RUN ./modify-server-properties.sh
6+
RUN rm -rf modify-server-properties.sh
7+
38
RUN mkdir -p /etc/profiling/
49
RUN yum install -y \
510
wget \
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
set -e
3+
4+
sed '/module.allow_web_admin/a\
5+
c3p0.min_size=0\
6+
c3p0.max_size=150\
7+
c3p0.max_statements=0\
8+
c3p0.maxStatementsPerConnection=0\
9+
c3p0.maxIdleTime=5\
10+
c3p0.maxIdleTimeExcessConnections=5\
11+
c3p0.numHelperThreads=10' ./startup-init.sh > ./startup-init-temp.sh
12+
13+
rm ./startup-init.sh
14+
mv ./startup-init-temp.sh ./startup-init.sh

0 commit comments

Comments
 (0)