mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
[es] Fine java security grants
Fixes #119 * also switch/upgrade base to openjdk 8u111
This commit is contained in:
parent
5062bc91ab
commit
e44d27c00a
@ -1,4 +1,4 @@
|
||||
FROM java:8u92-jre-alpine
|
||||
FROM openjdk:8u111-jre-alpine
|
||||
|
||||
MAINTAINER itzg
|
||||
|
||||
@ -25,6 +25,7 @@ VOLUME ["/data","/conf"]
|
||||
|
||||
WORKDIR $ES_HOME
|
||||
|
||||
COPY java.policy /usr/lib/jvm/java-1.8-openjdk/jre/lib/security/
|
||||
COPY start /start
|
||||
COPY log4j2.properties $ES_HOME/config/
|
||||
|
||||
|
6
elasticsearch/java.policy
Normal file
6
elasticsearch/java.policy
Normal file
@ -0,0 +1,6 @@
|
||||
grant {
|
||||
// JMX Java Management eXtensions
|
||||
permission javax.management.MBeanTrustPermission "register";
|
||||
permission javax.management.MBeanServerPermission "createMBeanServer";
|
||||
permission javax.management.MBeanPermission "-#-[-]", "queryNames";
|
||||
};
|
Loading…
Reference in New Issue
Block a user