-
Notifications
You must be signed in to change notification settings - Fork 0
/
centos.dockerfile.jinja2
81 lines (75 loc) · 1.91 KB
/
centos.dockerfile.jinja2
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{% extends "base.dockerfile.jinja2" %}
{% set packages_cmd_install %}yum install -y --disablerepo=updates{% endset %}
{% set packages_cmd_clean %}yum clean all && rm -rf /var/cache/yum/*{% endset %}
{% set packages_base | oneline %}
bzip2 ca-certificates libffi procps-ng libyaml zlib
gdbm readline openssl-libs
libcurl
tar xz
{% endset %}
{% set packages_base_boost %}boost-program-options boost-locale boost-filesystem boost-date-time boost-regex boost-atomic boost-log{% endset %}
{% set packages_base_leatherman %}leatherman{% endset %}
{% set packages_base_cpp_hocon %}cpp-hocon{% endset %}
{% set packages_base_yaml_cpp %}yaml-cpp{% endset %}
{% set packages_dev | oneline %}
{# ruby #}
{# RUN yum groupinstall -y "Development Tools" #}
autoconf
bison
bzip2-devel
ca-certificates
coreutils
libyaml-devel
gcc
gdbm-devel
glib2-devel
glibc-devel
libffi-devel
openssl-devel
libxml2-devel
libxslt-devel
kernel-headers
make
ncurses-devel
readline-devel
ruby
libyaml-devel
zlib-devel
{#
autoconf \
bison \
bzip2-dev \
ca-certificates \
coreutils \
dpkg-dev dpkg \
gcc \
gdbm-dev \
glib-dev \
libc-dev \
libffi-dev \
libressl-dev \
libxml2-dev \
libxslt-dev \
linux-headers \
make \
ncurses-dev \
readline-dev \
ruby \
yaml-dev \
zlib-dev
#}
{# other #}
gcc-c++ libcurl-devel
wget patch which
{% endset %}
{% set packages_dev_boost %}boost-devel{% endset %}
{% set packages_dev_leatherman %}leatherman-devel{% endset %}
{% set packages_dev_cpp_hocon %}cpp-hocon-devel{% endset %}
{% set packages_dev_yaml_cpp %}yaml-cpp-devel{% endset %}
{% block dev_base %}
{{ super() }}
RUN {{ packages_cmd_install }} epel-release \
&& {{ packages_cmd_install }} cmake3 \
&& {{ packages_cmd_clean }} \
&& ln -s $(find /usr/bin /bin -name cmake3) /usr/local/bin/cmake
{% endblock %}