-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
22 lines (15 loc) · 821 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM centos:latest
MAINTAINER lmangani <[email protected]>
# PRE-Requirements
RUN yum install -y nano cronie wget sudo initscripts; yum clean all
RUN useradd -ms /bin/bash dremio
RUN wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jre-8u131-linux-x64.rpm \
&& yum localinstall -y jre-8u131-linux-x64.rpm && rm -rf jre*.rpm; yum clean all
RUN wget http://download.dremio.com/community-server/1.3.1-201712020438070881-a7af5c8/dremio-community-1.3.1-201712020438070881_a7af5c8_1.noarch.rpm \
&& yum localinstall -y dremio*.rpm \
&& rm -rf dremio*.rpm
RUN chkconfig --level 3456 dremio on
COPY run.sh /run.sh
RUN chmod +x /run.sh
EXPOSE 9047
ENTRYPOINT ["/run.sh"]