Skip to content

Commit

Permalink
issue with permission on aws ebs
Browse files Browse the repository at this point in the history
  • Loading branch information
nordri committed Feb 1, 2018
1 parent 1d6c2c9 commit 273e2d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/services/elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ LABEL version=$VERSION

USER root

RUN chown elasticsearch:elasticsearch config/elasticsearch.yml
ADD run_elasticsearch.sh /run_elasticsearch.sh
CMD /run_elasticsearch.sh

USER elasticsearch
5 changes: 5 additions & 0 deletions docker/services/elasticsearch/run_elasticsearch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

chown -R elasticsearch:elasticsearch /usr/share/elasticsearch*
su elasticsearch -s /bin/sh -c "/usr/share/elasticsearch/bin/elasticsearch"

0 comments on commit 273e2d5

Please sign in to comment.