[es] Fine java security grants

Fixes #119
* also switch/upgrade base to openjdk 8u111
This commit is contained in:
Geoff Bourne 2017-01-04 20:37:20 -06:00
parent 5062bc91ab
commit e44d27c00a
2 changed files with 8 additions and 1 deletions

View File

@ -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/

View 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";
};