-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcentos7-pro.dockerfile
43 lines (43 loc) · 1.33 KB
/
centos7-pro.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
41
42
43
FROM centos:7
LABEL maintainer="smanders"
LABEL org.opencontainers.image.source https://github.com/smanders/buildpro
SHELL ["/bin/bash", "-c"]
USER 0
VOLUME /bpvol
# yum repositories
RUN yum -y update \
&& yum clean all \
&& yum -y install --setopt=tsflags=nodocs \
centos-release-scl \
gtk2-devel.x86_64 \
mesa-libGL-devel.x86_64 \
mesa-libGLU-devel.x86_64 \
redhat-lsb-core \
sudo \
vim \
wget \
https://repo.ius.io/ius-release-el7.rpm \
&& yum clean all
RUN yum -y update \
&& yum clean all \
&& yum -y install --setopt=tsflags=nodocs \
devtoolset-7-binutils `#scl` \
devtoolset-7-gcc `#scl` \
devtoolset-7-gcc-c++ `#scl` \
git224 `#ius.io` \
&& yum clean all
# cmake
RUN export CMK_VER=3.17.5 \
&& export CMK_DL=releases/download/v${CMK_VER}/cmake-${CMK_VER}-Linux-x86_64.tar.gz \
&& wget -qO- "https://github.com/Kitware/CMake/${CMK_DL}" \
| tar --strip-components=1 -xz -C /usr/local/ \
&& unset CMK_DL && unset CMK_VER
# copy from local into image
COPY scripts/ /usr/local/bpbin
COPY git-prompt.sh /etc/profile.d/
# environment: gcc version, enable scl binaries
ENV GCC_VER=gcc731 \
BASH_ENV="/usr/local/bpbin/scl_enable" \
ENV="/usr/local/bpbin/scl_enable" \
PROMPT_COMMAND=". /usr/local/bpbin/scl_enable"
ENTRYPOINT ["/bin/bash", "/usr/local/bpbin/entry.sh"]