Skip to content

Commit 39134ee

Browse files
author
Bernd Ritter
committed
Added JMX and Makefile support
1 parent 64a2ee9 commit 39134ee

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

Makefile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
up:
2+
docker compose -f doc/docker-compose.yml up -d
3+
4+
down:
5+
docker compose -f doc/docker-compose.yml down
6+
7+
logs:
8+
docker compose -f doc/docker-compose.yml logs -f
9+
10+
build:
11+
docker run -it --rm -u ubuntu -v ~/.m2:/home/ubuntu/.m2 -v.:/opt/app -e MAVEN_CONFIG=/home/ubuntu/.m2 -w /opt/app/ maven:3-eclipse-temurin-21 mvn clean package
12+
13+
restart:
14+
docker compose -f doc/docker-compose.yml restart app
15+
16+
open:
17+
xdg-open http://localhost:8080/holarseweb
18+
19+
status:
20+
docker compose -f doc/docker-compose.yml ps
21+
22+
shell:
23+
docker compose -f doc/docker-compose.yml exec -it app /bin/bash

doc/docker-compose.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ services:
3030
- holarse-dev
3131

3232
app:
33-
image: tomcat:11.0.2-jdk21-openjdk-slim
33+
image: tomcat:11-jdk21
3434
container_name: app
3535
restart: always
3636
ports:
3737
- 8080:8080
38+
- 9090:9090
3839
volumes:
3940
- './tomcat/conf/context.xml:/usr/local/tomcat/conf/context.xml'
4041
- './tomcat/conf/server.xml:/usr/local/tomcat/conf/server.xml'
@@ -46,6 +47,7 @@ services:
4647
environment:
4748
- OCI_ACCESSKEYID=${OCI_ACCESSKEYID}
4849
- OCI_SECRETKEYID=${OCI_SECRETKEYID}
50+
- JAVA_OPTS=-Dcom.sun.management.jmxremote.port=9090 -Dcom.sun.management.jmxremote.host=0.0.0.0 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
4951

5052
cache:
5153
image: memcached:latest

0 commit comments

Comments
 (0)