centos_7_sanitize.sh 822 B

123456789101112131415
  1. #!/bin/bash -xe
  2. ${DOCKER_EXEC} yum clean all
  3. ${DOCKER_EXEC} yum -y update
  4. ${DOCKER_EXEC} yum -y install yum-utils epel-release rpmdevtools libasan llvm
  5. ${DOCKER_EXEC} rpmdev-setuptree
  6. ${DOCKER_EXEC} yum-builddep -y ./pbspro.spec
  7. ${DOCKER_EXEC} ./autogen.sh
  8. ${DOCKER_EXEC} ./configure
  9. ${DOCKER_EXEC} make dist
  10. ${DOCKER_EXEC} /bin/bash -c 'cp -fv pbspro-*.tar.gz /root/rpmbuild/SOURCES/'
  11. ${DOCKER_EXEC} /bin/bash -c 'CFLAGS="-g -O2 -Wall -Werror -fsanitize=address -fno-omit-frame-pointer" rpmbuild -bb pbspro.spec'
  12. ${DOCKER_EXEC} /bin/bash -c 'yum -y install /root/rpmbuild/RPMS/x86_64/pbspro-server-??.*.x86_64.rpm'
  13. ${DOCKER_EXEC} /bin/bash -c 'sed -i "s@PBS_START_MOM=0@PBS_START_MOM=1@" /etc/pbs.conf'
  14. ${DOCKER_EXEC} /etc/init.d/pbs start
  15. ${DOCKER_EXEC} yum -y install python-pip sudo which net-tools man-db time.x86_64