Skip to content

Commit 16402a3

Browse files
committed
special elasticsearch container
1 parent a1dd314 commit 16402a3

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/docker.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ jobs:
4949
FOLDER: scripts/monitor
5050
IMAGE: monitor
5151
README: ""
52+
- name: elasticsearch
53+
FOLDER: scripts/elasticsearch
54+
IMAGE: elasticsearch
55+
README: ""
56+
5257
steps:
5358
- uses: actions/checkout@v2
5459

scripts/elasticsearch/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM elasticsearch:2
2+
3+
RUN apt-get update && apt-get install -y zip && rm -rf /var/lib/apt/lists/* && \
4+
for x in $(find /usr/share/elasticsearch -name \*.jar); do \
5+
zip -d $x org/apache/log4j/net/JMSAppender.class org/apache/log4j/net/SocketServer.class | grep 'deleting:' && echo "fixed $x"; \
6+
done; \
7+
echo "removed JMSAppender and SocketServer"

0 commit comments

Comments
 (0)