1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-15 13:34:32 +01:00
fastnetmon-rewritten/.circleci/config.yml

557 lines
25 KiB
YAML
Raw Normal View History

version: 2.1
parameters:
fastnetmon_build_version:
type: string
default: "1.2.1"
jobs:
ubuntu2004:
2022-02-09 15:27:32 +01:00
docker:
- image: ubuntu:focal-20200423
steps:
- checkout
- run: apt-get update; true
- run: apt-get install -y perl wget python3-pip
- run: pip3 install s3cmd
- run:
name: install_required_packages
no_output_timeout: 20m
command: perl src/fastnetmon_build.pl --install_dependency_packages_only
2022-02-09 15:27:32 +01:00
- restore_cache:
keys:
- "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
- restore_cache:
keys:
2022-03-13 22:45:05 +01:00
- "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
- run:
name: install_gcc
no_output_timeout: 80m
command: perl src/fastnetmon_build.pl --build_gcc_only
- save_cache:
2022-03-13 22:45:05 +01:00
key: "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
paths:
- /opt/gcc930
2022-02-09 15:27:32 +01:00
- run:
name: install_dependencies
no_output_timeout: 180m
command: perl src/fastnetmon_build.pl --build_dependencies_only
2022-02-09 15:27:32 +01:00
- run:
name: collect_debug
command: cat /tmp/fastnetmon_install.log
when: on_fail
- save_cache:
key: "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
2022-02-09 15:27:32 +01:00
paths:
- /opt
- run: perl src/fastnetmon_build.pl --use-git-master --build_fastnetmon_only
2022-02-09 15:27:32 +01:00
- run: perl src/scripts/build_libary_bundle.pl /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /tmp/fastnetmon_install.log
- run: src/scripts/build_any_package.pl deb /opt/fastnetmon_libraries_bundle.tar.gz << pipeline.parameters.fastnetmon_build_version >> ubuntu 20.04
2022-02-09 15:27:32 +01:00
- store_artifacts:
path: /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
- run: s3cmd --disable-multipart --host=storage.googleapis.com --host-bucket="%(bucket).storage.googleapis.com" put /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb s3://fastnetmon_community_packages/<< pipeline.parameters.fastnetmon_build_version >>/ubuntu/20.04/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
2022-02-09 15:27:32 +01:00
- run: cp src/fastnetmon.conf /etc/fastnetmon.conf
- run: ldd /opt/fastnetmon/fastnetmon
- run: ldd /opt/fastnetmon/fastnetmon_client
- run: ldd /opt/fastnetmon/fastnetmon_api_client
2022-02-09 15:27:32 +01:00
- run: /opt/fastnetmon/fastnetmon --configuration_check
2022-02-09 15:27:32 +01:00
ubuntu1804:
2022-02-09 15:27:32 +01:00
docker:
- image: ubuntu:bionic-20200403
steps:
- checkout
- run: apt-get update; true
- run: apt-get install -y perl wget python3-pip
- run: pip3 install s3cmd
- run:
name: install_required_packages
no_output_timeout: 20m
command: perl src/fastnetmon_build.pl --install_dependency_packages_only
2022-02-09 15:27:32 +01:00
- restore_cache:
keys:
- "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
- restore_cache:
keys:
2022-03-13 22:45:05 +01:00
- "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
- run:
name: install_gcc
no_output_timeout: 80m
command: perl src/fastnetmon_build.pl --build_gcc_only
- save_cache:
2022-03-13 22:45:05 +01:00
key: "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
paths:
- /opt/gcc930
2022-02-09 15:27:32 +01:00
- run:
name: install_dependencies
no_output_timeout: 180m
command: perl src/fastnetmon_build.pl --build_dependencies_only
2022-02-09 15:27:32 +01:00
- run:
name: collect_debug
command: cat /tmp/fastnetmon_install.log
when: on_fail
- save_cache:
key: "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
2022-02-09 15:27:32 +01:00
paths:
- /opt
- run: perl src/fastnetmon_build.pl --use-git-master --build_fastnetmon_only
2022-02-09 15:27:32 +01:00
- run: perl src/scripts/build_libary_bundle.pl /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /tmp/fastnetmon_install.log
- run: src/scripts/build_any_package.pl deb /opt/fastnetmon_libraries_bundle.tar.gz << pipeline.parameters.fastnetmon_build_version >> ubuntu 18.04
2022-02-09 15:27:32 +01:00
- store_artifacts:
path: /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
2022-03-29 23:00:24 +02:00
- run: s3cmd --disable-multipart --host=storage.googleapis.com --host-bucket="%(bucket).storage.googleapis.com" put /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb s3://fastnetmon_community_packages/<< pipeline.parameters.fastnetmon_build_version >>/ubuntu/18.04/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
2022-02-09 15:27:32 +01:00
- run: cp src/fastnetmon.conf /etc/fastnetmon.conf
- run: ldd /opt/fastnetmon/fastnetmon
- run: ldd /opt/fastnetmon/fastnetmon_client
- run: ldd /opt/fastnetmon/fastnetmon_api_client
2022-02-09 15:27:32 +01:00
- run: /opt/fastnetmon/fastnetmon --configuration_check
2022-02-09 15:27:32 +01:00
ubuntu1604:
2022-02-09 15:27:32 +01:00
docker:
- image: ubuntu:xenial-20200326
steps:
- checkout
- run: apt-get update; true
- run: apt-get install -y perl wget python3-pip
- run: pip3 install s3cmd
- run:
name: install_required_packages
no_output_timeout: 20m
command: perl src/fastnetmon_build.pl --install_dependency_packages_only
2022-02-09 15:27:32 +01:00
- restore_cache:
keys:
- "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
- restore_cache:
keys:
2022-03-13 22:45:05 +01:00
- "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
- run:
name: install_gcc
no_output_timeout: 80m
command: perl src/fastnetmon_build.pl --build_gcc_only
- save_cache:
2022-03-13 22:45:05 +01:00
key: "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
paths:
- /opt/gcc930
2022-02-09 15:27:32 +01:00
- run:
name: install_dependencies
no_output_timeout: 180m
command: perl src/fastnetmon_build.pl --build_dependencies_only
2022-02-09 15:27:32 +01:00
- run:
name: collect_debug
command: cat /tmp/fastnetmon_install.log
when: on_fail
- save_cache:
key: "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
2022-02-09 15:27:32 +01:00
paths:
- /opt
- run: perl src/fastnetmon_build.pl --use-git-master --build_fastnetmon_only
2022-02-09 15:27:32 +01:00
- run: perl src/scripts/build_libary_bundle.pl /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /tmp/fastnetmon_install.log
- run: src/scripts/build_any_package.pl deb /opt/fastnetmon_libraries_bundle.tar.gz << pipeline.parameters.fastnetmon_build_version >> ubuntu 16.04
2022-02-09 15:27:32 +01:00
- store_artifacts:
path: /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
2022-03-29 23:00:24 +02:00
- run: s3cmd --disable-multipart --host=storage.googleapis.com --host-bucket="%(bucket).storage.googleapis.com" put /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb s3://fastnetmon_community_packages/<< pipeline.parameters.fastnetmon_build_version >>/ubuntu/16.04/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
2022-02-09 15:27:32 +01:00
- run: cp src/fastnetmon.conf /etc/fastnetmon.conf
- run: ldd /opt/fastnetmon/fastnetmon
- run: ldd /opt/fastnetmon/fastnetmon_client
- run: ldd /opt/fastnetmon/fastnetmon_api_client
2022-02-09 15:27:32 +01:00
- run: /opt/fastnetmon/fastnetmon --configuration_check
ubuntu1404:
2022-02-09 15:27:32 +01:00
docker:
- image: ubuntu:trusty-20191217
steps:
- checkout
- run: apt-get update; true
- run: apt-get install -y perl wget python3-pip
- run: pip3 install s3cmd
2022-02-09 15:27:32 +01:00
- run:
name: install_required_packages
no_output_timeout: 20m
command: perl src/fastnetmon_build.pl --install_dependency_packages_only
2022-02-09 15:27:32 +01:00
- restore_cache:
keys:
- "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
- restore_cache:
keys:
2022-03-13 22:45:05 +01:00
- "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
- run:
name: install_gcc
no_output_timeout: 80m
command: perl src/fastnetmon_build.pl --build_gcc_only
- save_cache:
2022-03-13 22:45:05 +01:00
key: "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
paths:
- /opt/gcc930
2022-02-09 15:27:32 +01:00
- run:
name: install_dependencies
no_output_timeout: 180m
command: perl src/fastnetmon_build.pl --build_dependencies_only
2022-02-09 15:27:32 +01:00
- run:
name: collect_debug
command: cat /tmp/fastnetmon_install.log
when: on_fail
- save_cache:
key: "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
2022-02-09 15:27:32 +01:00
paths:
- /opt
- run: perl src/fastnetmon_build.pl --use-git-master --build_fastnetmon_only
- run: perl src/scripts/build_libary_bundle.pl /opt/fastnetmon_libraries_bundle.tar.gz
2022-02-09 15:27:32 +01:00
- store_artifacts:
path: /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /tmp/fastnetmon_install.log
- run: src/scripts/build_any_package.pl deb /opt/fastnetmon_libraries_bundle.tar.gz << pipeline.parameters.fastnetmon_build_version >> ubuntu 14.04
- store_artifacts:
path: /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
2022-03-29 23:00:24 +02:00
- run: s3cmd --disable-multipart --host=storage.googleapis.com --host-bucket="%(bucket).storage.googleapis.com" put /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb s3://fastnetmon_community_packages/<< pipeline.parameters.fastnetmon_build_version >>/ubuntu/14.04/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
- run: cp src/fastnetmon.conf /etc/fastnetmon.conf
- run: ldd /opt/fastnetmon/fastnetmon
- run: ldd /opt/fastnetmon/fastnetmon_client
- run: ldd /opt/fastnetmon/fastnetmon_api_client
2022-02-09 15:27:32 +01:00
- run: /opt/fastnetmon/fastnetmon --configuration_check
debian8:
2022-02-09 15:27:32 +01:00
docker:
- image: debian:jessie-20200514
steps:
- checkout
- run: apt-get update; true
- run: apt-get install -y perl wget python3-pip
- run: pip3 install s3cmd
2022-02-09 15:27:32 +01:00
- run:
name: install_required_packages
no_output_timeout: 20m
command: perl src/fastnetmon_build.pl --install_dependency_packages_only
2022-02-09 15:27:32 +01:00
- restore_cache:
keys:
- "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
- restore_cache:
keys:
2022-03-13 22:45:05 +01:00
- "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
- run:
name: install_gcc
no_output_timeout: 80m
command: perl src/fastnetmon_build.pl --build_gcc_only
- save_cache:
2022-03-13 22:45:05 +01:00
key: "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
paths:
- /opt/gcc930
2022-02-09 15:27:32 +01:00
- run:
name: install_dependencies
no_output_timeout: 180m
command: perl src/fastnetmon_build.pl --build_dependencies_only
2022-02-09 15:27:32 +01:00
- run:
name: collect_debug
command: cat /tmp/fastnetmon_install.log
when: on_fail
- save_cache:
key: "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
2022-02-09 15:27:32 +01:00
paths:
- /opt
- run: perl src/fastnetmon_build.pl --use-git-master --build_fastnetmon_only
2022-02-09 15:27:32 +01:00
- run: perl src/scripts/build_libary_bundle.pl /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /tmp/fastnetmon_install.log
- run: src/scripts/build_any_package.pl deb /opt/fastnetmon_libraries_bundle.tar.gz << pipeline.parameters.fastnetmon_build_version >> debian 8
2022-02-09 15:27:32 +01:00
- store_artifacts:
path: /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
2022-03-29 23:00:24 +02:00
- run: s3cmd --disable-multipart --host=storage.googleapis.com --host-bucket="%(bucket).storage.googleapis.com" put /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb s3://fastnetmon_community_packages/<< pipeline.parameters.fastnetmon_build_version >>/debian/8/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
2022-02-09 15:27:32 +01:00
- run: cp src/fastnetmon.conf /etc/fastnetmon.conf
- run: ldd /opt/fastnetmon/fastnetmon
- run: ldd /opt/fastnetmon/fastnetmon_client
- run: ldd /opt/fastnetmon/fastnetmon_api_client
2022-02-09 15:27:32 +01:00
- run: /opt/fastnetmon/fastnetmon --configuration_check
2022-02-09 15:27:32 +01:00
debian9:
docker:
- image: debian:stretch-20200514
steps:
- checkout
- run: apt-get update; true
- run: apt-get install -y perl wget python3-pip
- run: pip3 install s3cmd
- run:
name: install_required_packages
no_output_timeout: 20m
command: perl src/fastnetmon_build.pl --install_dependency_packages_only
- restore_cache:
keys:
- "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
- restore_cache:
keys:
2022-03-13 22:45:05 +01:00
- "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
- run:
name: install_gcc
no_output_timeout: 80m
command: perl src/fastnetmon_build.pl --build_gcc_only
- save_cache:
2022-03-13 22:45:05 +01:00
key: "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
paths:
- /opt/gcc930
- run:
name: install_dependencies
no_output_timeout: 180m
command: perl src/fastnetmon_build.pl --build_dependencies_only
- run:
name: collect_debug
command: cat /tmp/fastnetmon_install.log
when: on_fail
- save_cache:
key: "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
paths:
- /opt
- run: perl src/fastnetmon_build.pl --use-git-master --build_fastnetmon_only
- run: perl src/scripts/build_libary_bundle.pl /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /tmp/fastnetmon_install.log
- run: src/scripts/build_any_package.pl deb /opt/fastnetmon_libraries_bundle.tar.gz << pipeline.parameters.fastnetmon_build_version >> debian 9
- store_artifacts:
path: /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
2022-03-29 23:00:24 +02:00
- run: s3cmd --disable-multipart --host=storage.googleapis.com --host-bucket="%(bucket).storage.googleapis.com" put /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb s3://fastnetmon_community_packages/<< pipeline.parameters.fastnetmon_build_version >>/debian/9/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
- run: cp src/fastnetmon.conf /etc/fastnetmon.conf
- run: ldd /opt/fastnetmon/fastnetmon
- run: ldd /opt/fastnetmon/fastnetmon_client
- run: ldd /opt/fastnetmon/fastnetmon_api_client
- run: /opt/fastnetmon/fastnetmon --configuration_check
2022-02-09 15:27:32 +01:00
debian10:
docker:
- image: debian:buster-20200514
steps:
- checkout
- run: apt-get update; true
- run: apt-get install -y perl wget python3-pip
- run: pip3 install s3cmd
- run:
name: install_required_packages
no_output_timeout: 20m
command: perl src/fastnetmon_build.pl --install_dependency_packages_only
- restore_cache:
keys:
- "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
- restore_cache:
keys:
2022-03-13 22:45:05 +01:00
- "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
- run:
name: install_gcc
no_output_timeout: 80m
command: perl src/fastnetmon_build.pl --build_gcc_only
- save_cache:
2022-03-13 22:45:05 +01:00
key: "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
paths:
- /opt/gcc930
- run:
name: install_dependencies
no_output_timeout: 180m
command: perl src/fastnetmon_build.pl --build_dependencies_only
- run:
name: collect_debug
command: cat /tmp/fastnetmon_install.log
when: on_fail
- save_cache:
key: "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
paths:
- /opt
- run: perl src/fastnetmon_build.pl --use-git-master --build_fastnetmon_only
- run: perl src/scripts/build_libary_bundle.pl /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /tmp/fastnetmon_install.log
- run: src/scripts/build_any_package.pl deb /opt/fastnetmon_libraries_bundle.tar.gz << pipeline.parameters.fastnetmon_build_version >> debian 10
- store_artifacts:
path: /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
2022-03-29 23:00:24 +02:00
- run: s3cmd --disable-multipart --host=storage.googleapis.com --host-bucket="%(bucket).storage.googleapis.com" put /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb s3://fastnetmon_community_packages/<< pipeline.parameters.fastnetmon_build_version >>/debian/10/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
- run: cp src/fastnetmon.conf /etc/fastnetmon.conf
- run: ldd /opt/fastnetmon/fastnetmon
- run: ldd /opt/fastnetmon/fastnetmon_client
- run: ldd /opt/fastnetmon/fastnetmon_api_client
- run: /opt/fastnetmon/fastnetmon --configuration_check
centos6:
docker:
- image: centos:centos6.9
steps:
- checkout
- run: sed -i '/mirrorlist/d' /etc/yum.repos.d/CentOS-Base.repo
- run: sed -i 's/#baseurl/baseurl/' /etc/yum.repos.d/CentOS-Base.repo
- run: sed -i 's/mirror.centos.org/vault.centos.org/' /etc/yum.repos.d/CentOS-Base.repo
- run: yum install -y https://d2lzkl7pfhq30w.cloudfront.net/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm
- run: yum install -y perl wget python-pip perl-Archive-Tar
2022-02-09 15:27:33 +01:00
# We use 2.6.1 because in 2.7 they've dropped support for Python 2.6: https://github.com/dateutil/dateutil/releases
- run: pip install python-dateutil==2.6.1 s3cmd
2022-03-29 23:00:24 +02:00
# To address bug /usr/lib64/libmagic.so.1: undefined symbol: magic_list
- run: yum install -y python-magic
- run:
name: install_required_packages
no_output_timeout: 20m
command: perl src/fastnetmon_build.pl --install_dependency_packages_only
- restore_cache:
keys:
- "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
- restore_cache:
keys:
2022-03-13 22:45:05 +01:00
- "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
- run:
name: install_gcc
no_output_timeout: 80m
command: perl src/fastnetmon_build.pl --build_gcc_only
- save_cache:
2022-03-13 22:45:05 +01:00
key: "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
paths:
- /opt/gcc930
- run:
name: install_dependencies
no_output_timeout: 180m
command: perl src/fastnetmon_build.pl --build_dependencies_only
- run:
name: collect_debug
command: cat /tmp/fastnetmon_install.log
when: on_fail
- save_cache:
key: "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
paths:
- /opt
- /usr/include/linux/pf_ring.h
- run: perl src/fastnetmon_build.pl --use-git-master --build_fastnetmon_only
2022-02-09 15:27:32 +01:00
- run: perl src/scripts/build_libary_bundle.pl /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /tmp/fastnetmon_install.log
- run: src/scripts/build_any_package.pl rpm /opt/fastnetmon_libraries_bundle.tar.gz << pipeline.parameters.fastnetmon_build_version >> centos 6
- store_artifacts:
path: /tmp/result_data/fastnetmon-<< pipeline.parameters.fastnetmon_build_version >>-1.el6.x86_64.rpm
2022-03-29 23:00:24 +02:00
- run: s3cmd --disable-multipart --host=storage.googleapis.com --host-bucket="%(bucket).storage.googleapis.com" put /tmp/result_data/fastnetmon-<< pipeline.parameters.fastnetmon_build_version >>-1.el6.x86_64.rpm s3://fastnetmon_community_packages/<< pipeline.parameters.fastnetmon_build_version >>/centos/6/fastnetmon-<< pipeline.parameters.fastnetmon_build_version >>-1.el6.x86_64.rpm
- run: ldd /opt/fastnetmon/fastnetmon
- run: ldd /opt/fastnetmon/fastnetmon_client
- run: cp src/fastnetmon.conf /etc/fastnetmon.conf
- run: /opt/fastnetmon/fastnetmon --configuration_check
centos7:
docker:
- image: centos:centos7.8.2003
steps:
- checkout
- run: yum install -y perl wget python3-pip perl-Archive-Tar
- run: pip3 install s3cmd
- run:
name: install_required_packages
no_output_timeout: 20m
command: perl src/fastnetmon_build.pl --install_dependency_packages_only
- restore_cache:
keys:
- "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
- restore_cache:
keys:
2022-03-13 22:45:05 +01:00
- "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
- run:
name: install_gcc
no_output_timeout: 80m
command: perl src/fastnetmon_build.pl --build_gcc_only
- save_cache:
2022-03-13 22:45:05 +01:00
key: "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
paths:
- /opt/gcc930
- run:
name: install_dependencies
no_output_timeout: 180m
command: perl src/fastnetmon_build.pl --build_dependencies_only
- run:
name: collect_debug
command: cat /tmp/fastnetmon_install.log
when: on_fail
- save_cache:
key: "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
paths:
- /opt
- /usr/include/linux/pf_ring.h
- store_artifacts:
path: /tmp/fastnetmon_install.log
- run: perl src/fastnetmon_build.pl --use-git-master --build_fastnetmon_only
- run: perl src/scripts/build_libary_bundle.pl /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /opt/fastnetmon_libraries_bundle.tar.gz
- run: src/scripts/build_any_package.pl rpm /opt/fastnetmon_libraries_bundle.tar.gz << pipeline.parameters.fastnetmon_build_version >> centos 7
- store_artifacts:
path: /tmp/result_data/fastnetmon-<< pipeline.parameters.fastnetmon_build_version >>-1.el7.x86_64.rpm
2022-03-29 23:00:24 +02:00
- run: s3cmd --disable-multipart --host=storage.googleapis.com --host-bucket="%(bucket).storage.googleapis.com" put /tmp/result_data/fastnetmon-<< pipeline.parameters.fastnetmon_build_version >>-1.el7.x86_64.rpm s3://fastnetmon_community_packages/<< pipeline.parameters.fastnetmon_build_version >>/centos/7/fastnetmon-<< pipeline.parameters.fastnetmon_build_version >>-1.el7.x86_64.rpm
- run: cp src/fastnetmon.conf /etc/fastnetmon.conf
- run: ldd /opt/fastnetmon/fastnetmon
- run: ldd /opt/fastnetmon/fastnetmon_client
- run: ldd /opt/fastnetmon/fastnetmon_api_client
- run: /opt/fastnetmon/fastnetmon --configuration_check
2022-02-09 15:27:32 +01:00
centos8:
docker:
- image: centos:centos8.1.1911
steps:
- checkout
- run: yum install -y perl wget python3-pip
- run: pip3 install s3cmd
- run:
name: install_required_packages
no_output_timeout: 20m
command: perl src/fastnetmon_build.pl --install_dependency_packages_only
- restore_cache:
keys:
- "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
- restore_cache:
keys:
2022-03-13 22:45:05 +01:00
- "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
- run:
name: install_gcc
no_output_timeout: 80m
command: perl src/fastnetmon_build.pl --build_gcc_only
- save_cache:
2022-03-13 22:45:05 +01:00
key: "{{ .Environment.CIRCLE_JOB }}_gcc_25_10_2020"
paths:
- /opt/gcc930
- run:
name: install_dependencies
no_output_timeout: 180m
command: perl src/fastnetmon_build.pl --build_dependencies_only
- run:
name: collect_debug
command: cat /tmp/fastnetmon_install.log
when: on_fail
- save_cache:
key: "{{ .Environment.CIRCLE_JOB }}_dependencies_31_10_2020"
paths:
- /opt
- /usr/include/linux/pf_ring.h
- run: perl src/fastnetmon_build.pl --use-git-master --build_fastnetmon_only
- run: perl src/scripts/build_libary_bundle.pl /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /opt/fastnetmon_libraries_bundle.tar.gz
- store_artifacts:
path: /tmp/fastnetmon_install.log
- run: src/scripts/build_any_package.pl rpm /opt/fastnetmon_libraries_bundle.tar.gz << pipeline.parameters.fastnetmon_build_version >> centos 8
- store_artifacts:
path: /tmp/result_data/fastnetmon-<< pipeline.parameters.fastnetmon_build_version >>-1.el8.x86_64.rpm
2022-03-29 23:00:24 +02:00
- run: s3cmd --disable-multipart --host=storage.googleapis.com --host-bucket="%(bucket).storage.googleapis.com" put /tmp/result_data/fastnetmon-<< pipeline.parameters.fastnetmon_build_version >>-1.el8.x86_64.rpm s3://fastnetmon_community_packages/<< pipeline.parameters.fastnetmon_build_version >>/centos/8/fastnetmon-<< pipeline.parameters.fastnetmon_build_version >>-1.el8.x86_64.rpm
- run: cp src/fastnetmon.conf /etc/fastnetmon.conf
- run: ldd /opt/fastnetmon/fastnetmon
- run: ldd /opt/fastnetmon/fastnetmon_client
- run: ldd /opt/fastnetmon/fastnetmon_api_client
- run: /opt/fastnetmon/fastnetmon --configuration_check
2022-02-09 15:27:32 +01:00
workflows:
version: 2
all_distros:
2022-02-09 15:27:32 +01:00
jobs:
- debian8
2022-02-09 15:27:32 +01:00
- debian9
- debian10
- ubuntu1404
2022-02-09 15:27:32 +01:00
- ubuntu1604
- ubuntu1804
- ubuntu2004
- centos6
- centos7
2022-02-09 15:27:32 +01:00
- centos8