Explorar o código

fix centos 7 & debian stretch

Grant Limberg %!s(int64=5) %!d(string=hai) anos
pai
achega
0a2dfc719a
Modificáronse 3 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      Jenkinsfile
  2. 1 1
      dockerbuild/Dockerfile.centos7
  3. 1 1
      dockerbuild/Dockerfile.debian-stretch

+ 1 - 1
Jenkinsfile

@@ -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'

+ 1 - 1
dockerbuild/Dockerfile.centos7

@@ -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 && \

+ 1 - 1
dockerbuild/Dockerfile.debian-stretch

@@ -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 /