-
Notifications
You must be signed in to change notification settings - Fork 76
/
Dockerfile
40 lines (29 loc) · 1.27 KB
/
Dockerfile
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
32
33
34
35
36
37
38
39
40
# Run `make run` to get things started
# our image is centos default image with systemd
FROM centos/systemd
# who's your boss?
MAINTAINER "Tamas Foldi" <[email protected]>
# this is the version what we're building
ENV TABLEAU_VERSION="2019.1.1" \
LANG=en_US.UTF-8
# make systemd dbus visible
VOLUME /sys/fs/cgroup /run /tmp
COPY config/lscpu /bin
# Install core bits and their deps:w
RUN rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
yum install -y iproute curl sudo vim && \
adduser tsm && \
(echo tsm:tsm | chpasswd) && \
(echo 'tsm ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/tsm) && \
mkdir -p /run/systemd/system /opt/tableau/docker_build && \
yum install -y \
"https://downloads.tableau.com/esdalt/${TABLEAU_VERSION}/tableau-server-${TABLEAU_VERSION//\./-}.x86_64.rpm" \
"https://downloads.tableau.com/drivers/linux/yum/tableau-driver/tableau-postgresql-odbc-9.5.3-1.x86_64.rpm" && \
rm -rf /var/tmp/yum-*
COPY config/* /opt/tableau/docker_build/
RUN mkdir -p /etc/systemd/system/ && \
cp /opt/tableau/docker_build/tableau_server_install.service /etc/systemd/system/ && \
systemctl enable tableau_server_install
# Expose TSM and Gateway ports
EXPOSE 80 8850
CMD /sbin/init