mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-18 18:56:24 +00:00
CentOS 6 Docker build.
This commit is contained in:
parent
81cd68b60d
commit
d20bcdae12
@ -3,9 +3,12 @@ MAINTAINER Adam Ierymenko <adam.ierymenko@zerotier.com>
|
||||
|
||||
RUN yum update -y
|
||||
RUN yum install -y epel-release
|
||||
RUN yum install -y clang make development-tools rpmdevtools http-parser-devel lz4-devel libnatpmp-devel
|
||||
RUN yum install -y make development-tools rpmdevtools http-parser-devel lz4-devel libnatpmp-devel
|
||||
|
||||
RUN yum install -y centos-release-scl
|
||||
RUN yum install -y devtoolset-4-gcc-c++
|
||||
|
||||
RUN ln -sf /opt/rh/devtoolset-4/root/usr/bin/gcc /usr/bin/gcc
|
||||
RUN ln -sf /opt/rh/devtoolset-4/root/usr/bin/g++ /usr/bin/g++
|
||||
|
||||
ADD zt1-src.tar.gz /
|
||||
|
||||
#RUN ln -sf /usr/bin/clang++-3.5 /usr/bin/clang++
|
||||
#RUN ln -sf /usr/bin/clang-3.5 /usr/bin/clang
|
||||
|
@ -3,9 +3,21 @@ MAINTAINER Adam Ierymenko <adam.ierymenko@zerotier.com>
|
||||
|
||||
RUN yum update -y
|
||||
RUN yum install -y epel-release
|
||||
RUN yum install -y clang make development-tools rpmdevtools http-parser-devel lz4-devel libnatpmp-devel
|
||||
RUN yum install -y make development-tools rpmdevtools http-parser-devel lz4-devel libnatpmp-devel
|
||||
|
||||
#RUN rpm --import http://ftp.scientificlinux.org/linux/scientific/5x/x86_64/RPM-GPG-KEYs/RPM-GPG-KEY-cern
|
||||
#RUN curl http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo >/etc/yum.repos.d/slc6-devtoolset.repo
|
||||
#RUN yum install -y devtoolset-2-gcc-c++
|
||||
|
||||
#RUN ln -sf /opt/rh/devtoolset-2/root/usr/bin/gcc /usr/bin/gcc
|
||||
#RUN ln -sf /opt/rh/devtoolset-2/root/usr/bin/g++ /usr/bin/g++
|
||||
|
||||
RUN yum install -y clang
|
||||
RUN yum install -y gcc-c++
|
||||
|
||||
ADD zt1-src.tar.gz /
|
||||
|
||||
#RUN ln -sf /usr/bin/clang++-3.5 /usr/bin/clang++
|
||||
#RUN ln -sf /usr/bin/clang-3.5 /usr/bin/clang
|
||||
RUN mv /ZeroTierOne/make-linux.mk /ZeroTierOne/make-linux.mk.old
|
||||
RUN echo 'CFLAGS=-O3 -fstack-protector' >/ZeroTierOne/make-linux.mk
|
||||
RUN echo 'CXXFLAGS=-O3 -fstack-protector' >>/ZeroTierOne/make-linux.mk
|
||||
RUN cat /ZeroTierOne/make-linux.mk.old >>/ZeroTierOne/make-linux.mk
|
||||
|
Loading…
Reference in New Issue
Block a user