-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (31 loc) · 1.54 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
41
42
43
44
45
FROM oraclelinux:7-slim
RUN mkdir /app
COPY .bashrc /root/
COPY entrypoint.sh /app/
# Set the locale
#RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN yum install -y oraclelinux-release-el7 oracle-softwarecollection-release-el7
RUN /usr/bin/ol_yum_configure.sh
RUN yum-config-manager --enable software_collections
RUN yum-config-manager --enable ol7_latest ol7_optional_latest
RUN yum install -y scl-utils
RUN yum install -y https://repo.ius.io/ius-release-el7.rpm \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
RUN yum update -y && yum clean all && rm -rf /var/cache/yum
RUN yum -y group install "Development Tools" && yum remove -y git
RUN yum install -y devtoolset-8 devtoolset-8-libstdc++-devel devtoolset-8-libstdc++-devel.i686 which zip unzip tar bzip2 curl wget mc vim git236 cmake3 \
perl-IPC-Cmd.noarch libgcc libgcc.i686 glibc.i686 glibc-devel glibc-devel.i686 libzip-devel libzip-devel.i686 zlib-devel zlib-devel.i686 \
libstdc++.i686 libstdc++ gmp-devel gmp-devel.i686 mpfr-devel mpfr-devel.i686 libmpc-devel libmpc-devel.i686
# etcd dependencies
RUN yum install -y boost-devel boost-devel.i686 openssl-devel openssl-devel.i686
# create link from cmake to cmake3
RUN ln -s /usr/bin/cmake3 /usr/bin/cmake
# vcpkg
RUN cd /app && git clone https://github.com/Microsoft/vcpkg.git && ./vcpkg/bootstrap-vcpkg.sh -disableMetrics
# cleanup
RUN yum clean all && rm -rf /var/cache/yum
WORKDIR /code
ENTRYPOINT [ "/app/entrypoint.sh" ]