Skip to content

Commit

Permalink
allow remote debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
sscarduzio committed Dec 13, 2016
1 parent 3d062d4 commit 303c8d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,16 @@ RUN adduser -D -u 1000 esuser
RUN chown -R esuser /elasticsearch
USER esuser

# Remote debugger
ENV ES_JAVA_OPTS "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000"

# Define default command.
CMD /elasticsearch/bin/elasticsearch

# Expose ports.
# - 8000: Debug
# - 9200: HTTP
# - 9300: transport
EXPOSE 9200
EXPOSE 8000
#EXPOSE 9300

0 comments on commit 303c8d8

Please sign in to comment.