forked from xwang2713/docker-hpcc-0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-platform.template
46 lines (38 loc) · 1.66 KB
/
Dockerfile-platform.template
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
41
42
43
44
45
46
FROM ubuntu:%%DISTRO%%
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
wget \
libaprutil1 \
libboost-regex1.58.0 \
libicu55 \
libldap-2.4-2 \
libtbb2 \
libnuma1 \
libxml2 \
libxslt1.1 \
g++ \
openssh-client \
openssh-server \
expect \
rsync \
python \
sudo \
libblas3 \
libatlas3-base \
psmisc \
--fix-missing \
&& rm -rf /var/lib/apt/lists/*
RUN groupadd hpcc && useradd -s /bin/bash -r -m -d /home/hpcc -g hpcc -c "hpcc Runtime User" hpcc
ENV PLATFORM_VERSION %%PLATFORM_VERSION%%
ENV PLATFORM_VERSION_FULL %%PLATFORM_VERSION_FULL%%
ENV PLATFORM_DOWNLOAD_MD5 %%PLATFORM_DOWNLOAD_MD5%%
ENV PLATFORM_PACKAGE hpccsystems-platform-community_%%PLATFORM_VERION_FULL%%%%DISTRO%%_amd64.deb
RUN set -x \
&& wget "http://wpc.423a.rhocdn.net/00423A/releases/CE-Candidate-${PLATFORM_VERSION}/bin/platform/${PLATFORM_PACKAGE}" \
&& echo "$PLATFORM_DOWNLOAD_MD5 ${PLATFORM_PACKAGE}" | md5sum -c - \
&& dpkg -i "${PLATFORM_PACKAGE}"
RUN mkdir -p /var/run/dbus && mkdir -p /var/run/sshd
EXPOSE 8010 8002 8015 9876
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["bash"]