mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 04:53:44 +02:00
fix centos 7 & debian stretch
This commit is contained in:
parent
b2132aa975
commit
0a2dfc719a
3 changed files with 3 additions and 3 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -358,7 +358,7 @@ def buildCentosNative() {
|
||||||
def runtime = docker.image("ztbuild/${distro}-${arch}:latest")
|
def runtime = docker.image("ztbuild/${distro}-${arch}:latest")
|
||||||
runtime.inside {
|
runtime.inside {
|
||||||
dir("build") {
|
dir("build") {
|
||||||
if (distro == 'centos7') {
|
if (distro == 'centos7' && arch == 'amd64') {
|
||||||
sh 'source scl_source enable devtoolset-8 llvm-toolset-7 && make'
|
sh 'source scl_source enable devtoolset-8 llvm-toolset-7 && make'
|
||||||
} else {
|
} else {
|
||||||
sh 'make'
|
sh 'make'
|
||||||
|
|
|
@ -3,7 +3,7 @@ FROM centos:7
|
||||||
ARG go_pkg_url
|
ARG go_pkg_url
|
||||||
|
|
||||||
RUN yum install -y epel-release
|
RUN yum install -y epel-release
|
||||||
RUN yum install -y curl git wget openssh-server sudo make development-tools rpmdevtools clang gcc-c++ ruby ruby-devel centos-release-scl scl-utils devtoolset-8 llvm-toolset-7 && yum clean all
|
RUN yum install -y curl git wget openssh-server sudo make development-tools rpmdevtools clang gcc-c++ ruby ruby-devel centos-release-scl scl-utils && yum install -y devtoolset-8 llvm-toolset-7 && yum clean all
|
||||||
|
|
||||||
RUN curl -s $go_pkg_url -o go.tar.gz && \
|
RUN curl -s $go_pkg_url -o go.tar.gz && \
|
||||||
tar -C /usr/local -xzf go.tar.gz && \
|
tar -C /usr/local -xzf go.tar.gz && \
|
||||||
|
|
|
@ -9,7 +9,7 @@ RUN curl -s -k -L $go_pkg_url -o go.tar.gz && \
|
||||||
rm go.tar.gz
|
rm go.tar.gz
|
||||||
RUN curl -s -k -L https://github.com/Kitware/CMake/releases/download/v3.17.3/cmake-3.17.3.tar.gz -o cmake-3.17.3.tar.gz && tar -xzf cmake-3.17.3.tar.gz
|
RUN curl -s -k -L https://github.com/Kitware/CMake/releases/download/v3.17.3/cmake-3.17.3.tar.gz -o cmake-3.17.3.tar.gz && tar -xzf cmake-3.17.3.tar.gz
|
||||||
WORKDIR /cmake-3.17.3
|
WORKDIR /cmake-3.17.3
|
||||||
RUN ./bootstrap && make && make install
|
RUN ./bootstrap && make -j8 && make install
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue