-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 764 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM anapsix/alpine-java:latest
MAINTAINER codingchili@github
# run mvn clean package to build the jar file.
# to build the docker image run: docker build .
# to push the image
# docker tag <imageid> <user>/excelastic:<version>
RUN mkdir -p /opt/excelastic
COPY docker/configuration_template.json /opt/excelastic
COPY docker/bootstrap.sh /opt/excelastic
COPY build/libs/excelastic-*.jar /opt/excelastic/excelastic.jar
RUN chmod +x /opt/excelastic/bootstrap.sh && \
apk add gettext
WORKDIR /opt/excelastic
ENV es_host localhost
ENV es_port 9200
ENV es_tls false
ENV default_index excelastic
ENV es_authentication false
ENV username root
ENV password root
ENV java_opts ""
EXPOSE 8080:8080/tcp
ENTRYPOINT ["/bin/sh", "-c", "/opt/excelastic/bootstrap.sh"]