2022-05-03 14:24:28 +02:00
|
|
|
version: 2.1
|
2022-03-29 23:00:24 +02:00
|
|
|
parameters:
|
|
|
|
fastnetmon_build_version:
|
|
|
|
type: string
|
2022-10-17 19:45:20 +02:00
|
|
|
default: "1.2.4"
|
2022-06-17 14:24:11 +02:00
|
|
|
orbs:
|
|
|
|
win: circleci/windows@4.1
|
2022-02-09 15:27:32 +01:00
|
|
|
jobs:
|
2022-06-17 14:18:30 +02:00
|
|
|
build_windows2019:
|
2022-06-17 14:24:11 +02:00
|
|
|
executor: win/server-2019
|
|
|
|
steps:
|
|
|
|
- run: 'Write-Host "Hello from FastNetMon"'
|
|
|
|
build_windows2022:
|
|
|
|
executor: win/server-2022
|
2022-06-17 14:11:39 +02:00
|
|
|
steps:
|
2022-06-17 14:24:11 +02:00
|
|
|
- run: 'Write-Host "Hello from FastNetMon"'
|
2022-06-11 16:49:50 +02:00
|
|
|
build_macos:
|
|
|
|
macos:
|
2022-06-17 15:53:59 +02:00
|
|
|
xcode: 13.2.1
|
2022-06-11 16:49:50 +02:00
|
|
|
steps:
|
2022-06-11 16:53:14 +02:00
|
|
|
- checkout
|
|
|
|
- run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
2022-06-17 19:45:36 +02:00
|
|
|
- run: cp src/packaging/homebrew/fastnetmon.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/fastnetmon.rb
|
2022-11-25 14:33:03 +01:00
|
|
|
- run: brew install --build-from-source --HEAD --verbose --debug fastnetmon
|
2022-04-29 21:38:47 +02:00
|
|
|
build_debian_upstream_package:
|
2022-04-29 22:50:32 +02:00
|
|
|
machine:
|
2022-04-29 22:56:16 +02:00
|
|
|
image: ubuntu-2004:current
|
2022-04-29 21:38:47 +02:00
|
|
|
resource_class: large
|
2022-05-03 14:12:27 +02:00
|
|
|
parameters:
|
|
|
|
debian_codename:
|
|
|
|
type: string
|
2022-04-29 21:38:47 +02:00
|
|
|
steps:
|
2022-04-30 17:13:48 +02:00
|
|
|
- run:
|
|
|
|
name: Create folder to share data between host and Docker container with relaxed permissions to allow use of save / restore cache logic
|
2022-04-30 17:26:51 +02:00
|
|
|
command: sudo mkdir /data; sudo chmod 777 /data
|
2022-04-29 22:53:58 +02:00
|
|
|
- run:
|
|
|
|
name: Docker with priviledged mode to run chroot inside and we use tail -f to keep container running
|
2022-04-29 23:42:58 +02:00
|
|
|
command: sudo docker run -d -v /sys/fs/cgroup/:/sys/fs/cgroup:ro -v /data:/data:rw --privileged --cap-add SYS_ADMIN --name linux_priviledged_container debian:bullseye tail -f /dev/null
|
2022-04-29 22:50:32 +02:00
|
|
|
- run: sudo docker exec -it linux_priviledged_container apt-get update; true
|
2022-04-29 22:57:34 +02:00
|
|
|
- run: sudo docker exec -it linux_priviledged_container apt install -y dpkg-dev git pbuilder
|
2022-04-29 22:50:32 +02:00
|
|
|
- run: sudo docker exec -it linux_priviledged_container git clone https://github.com/pavel-odintsov/fastnetmon
|
2022-05-03 13:26:56 +02:00
|
|
|
- run: sudo docker exec -it linux_priviledged_container git clone https://salsa.debian.org/debian/fastnetmon.git fastnetmon-debian-salsa
|
2022-11-30 20:18:16 +01:00
|
|
|
- run: sudo docker exec -it linux_priviledged_container rm fastnetmon-debian-salsa/debian/patches/series
|
2022-04-29 23:29:07 +02:00
|
|
|
- run: sudo docker exec -it linux_priviledged_container tar -czf fastnetmon_$(sudo docker exec -it linux_priviledged_container head -n 1 fastnetmon-debian-salsa/debian/changelog|awk '{print $2}'|sed 's/[()]//g' | sed -E 's/(\-[0-9]+)?$//').orig.tar.gz fastnetmon
|
2022-04-29 22:50:32 +02:00
|
|
|
- run: sudo docker exec -it linux_priviledged_container ls -la
|
2022-04-29 23:05:30 +02:00
|
|
|
- run: sudo docker exec -it linux_priviledged_container bash -c "cd fastnetmon && rm -rf debian && cp -a ../fastnetmon-debian-salsa/debian/ . && dpkg-buildpackage -S -sa -d"
|
2022-04-29 23:36:49 +02:00
|
|
|
- run:
|
|
|
|
name: List produced source files
|
2022-04-30 14:56:59 +02:00
|
|
|
command: sudo docker exec -it linux_priviledged_container ls -la
|
2022-04-30 16:55:10 +02:00
|
|
|
- run:
|
|
|
|
name: Show content of data folder and permissions for it
|
|
|
|
command: ls -la /data
|
2022-04-30 14:56:59 +02:00
|
|
|
- run:
|
|
|
|
name: Check that we have anything in data folder on VM
|
2022-04-29 23:05:30 +02:00
|
|
|
command: ls -la /data
|
|
|
|
- run:
|
|
|
|
name: "Run pbuilder run Docker if we have no image in place"
|
2022-06-10 21:45:05 +02:00
|
|
|
command: "sudo docker exec -it linux_priviledged_container pbuilder --create --basetgz /data/debian_base.tgz --distribution << parameters.debian_codename >>"
|
2022-04-29 22:50:32 +02:00
|
|
|
- run: ls -la /data
|
2022-05-03 14:12:27 +02:00
|
|
|
- run: sudo docker exec -it linux_priviledged_container pbuilder --build --basetgz /data/debian_base.tgz --debbuildopts "-sa" /fastnetmon_$(sudo docker exec -it linux_priviledged_container head -n 1 fastnetmon-debian-salsa/debian/changelog|awk '{print $2}'|sed 's/[()]//g').dsc
|
2022-06-18 14:58:37 +02:00
|
|
|
build_docker_x86_64:
|
2022-04-21 22:02:00 +02:00
|
|
|
machine:
|
|
|
|
image: ubuntu-2004:current
|
|
|
|
steps:
|
|
|
|
- checkout
|
2022-05-17 13:37:35 +02:00
|
|
|
- run: docker build -t ghcr.io/pavel-odintsov/fastnetmon-community:1.2.1 -t ghcr.io/pavel-odintsov/fastnetmon-community:latest - < src/Dockerfile
|
2022-04-21 22:02:00 +02:00
|
|
|
- run: sudo docker images
|
2022-04-22 00:45:14 +02:00
|
|
|
- run: echo $CR_PAT | sudo docker login ghcr.io -u pavel-odintsov --password-stdin
|
2022-05-17 13:37:35 +02:00
|
|
|
- run: sudo docker push ghcr.io/pavel-odintsov/fastnetmon-community:1.2.1
|
2022-04-21 22:02:00 +02:00
|
|
|
- run: sudo docker push ghcr.io/pavel-odintsov/fastnetmon-community:latest
|
2022-06-18 14:58:37 +02:00
|
|
|
build_docker_arm64:
|
|
|
|
machine:
|
|
|
|
image: ubuntu-2004:current
|
|
|
|
resource_class: arm.medium
|
|
|
|
steps:
|
|
|
|
- checkout
|
2022-06-18 15:10:16 +02:00
|
|
|
- run: docker build --build-arg installer_file_name=installer_arm64 -t ghcr.io/pavel-odintsov/fastnetmon-community:1.2.1 -t ghcr.io/pavel-odintsov/fastnetmon-community:latest - < src/Dockerfile
|
2022-06-18 14:58:37 +02:00
|
|
|
- run: sudo docker images
|
2022-05-04 19:22:01 +02:00
|
|
|
build_fedora_upstream:
|
|
|
|
parameters:
|
|
|
|
docker_image:
|
|
|
|
type: string
|
|
|
|
docker:
|
|
|
|
- image: << parameters.docker_image >>
|
2022-05-05 02:19:43 +02:00
|
|
|
resource_class: large
|
2022-05-04 19:22:01 +02:00
|
|
|
steps:
|
|
|
|
- checkout
|
2022-05-04 19:27:20 +02:00
|
|
|
- run: dnf install -y rpm-build rpmdevtools dnf-plugins-core
|
2022-05-28 19:09:40 +02:00
|
|
|
- run: mkdir -p ~/rpmbuild/SPECS
|
2022-05-28 19:10:59 +02:00
|
|
|
- run: cp src/packaging/fedora/fastnetmon.spec ~/rpmbuild/SPECS
|
2022-05-04 19:22:01 +02:00
|
|
|
- run:
|
|
|
|
name: Install build dependencies
|
2022-05-28 19:15:41 +02:00
|
|
|
command: dnf builddep -y ~/rpmbuild/SPECS/fastnetmon.spec
|
2022-05-04 19:22:01 +02:00
|
|
|
- run:
|
|
|
|
name: Download source
|
2022-05-28 19:09:40 +02:00
|
|
|
command: cd ~/rpmbuild && spectool -g -R SPECS/fastnetmon.spec
|
2022-05-28 19:46:27 +02:00
|
|
|
- run:
|
|
|
|
name: Added sysusers file to SOURCES
|
|
|
|
command: cp src/packaging/fedora/fastnetmon.sysusers ~/rpmbuild/SOURCES
|
2022-05-28 19:52:56 +02:00
|
|
|
- run:
|
|
|
|
name: Build source RPM
|
|
|
|
command: cd ~/rpmbuild/SPECS && rpmbuild -bs fastnetmon.spec
|
2022-05-28 19:57:24 +02:00
|
|
|
- store_artifacts:
|
2022-05-28 20:38:45 +02:00
|
|
|
path: /root/rpmbuild/SRPMS
|
2022-05-04 19:22:01 +02:00
|
|
|
- run:
|
|
|
|
name: Build RPM
|
2022-05-28 19:09:40 +02:00
|
|
|
command: cd ~/rpmbuild/SPECS && rpmbuild -bb fastnetmon.spec
|
2022-05-06 02:36:23 +02:00
|
|
|
- store_artifacts:
|
2022-05-28 20:38:45 +02:00
|
|
|
path: /root/rpmbuild/RPMS/x86_64
|
2022-06-10 20:27:03 +02:00
|
|
|
|
2022-06-10 20:52:30 +02:00
|
|
|
build_epel9_upstream:
|
2022-06-10 20:27:03 +02:00
|
|
|
docker:
|
2022-06-10 20:52:30 +02:00
|
|
|
- image: almalinux:9
|
2022-06-10 20:27:03 +02:00
|
|
|
resource_class: large
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: dnf install -y rpm-build rpmdevtools dnf-plugins-core
|
|
|
|
- run: dnf install -y dnf-plugins-core
|
|
|
|
- run: dnf config-manager --set-enabled crb
|
2022-06-10 20:30:45 +02:00
|
|
|
- run: dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
|
2022-06-10 20:27:03 +02:00
|
|
|
- run: mkdir -p ~/rpmbuild/SPECS
|
2022-06-10 20:52:30 +02:00
|
|
|
# It's copy of Fedora SPEC file with capnproto disabled because we have no package for it in EPEL: https://src.fedoraproject.org/rpms/capnproto
|
2022-06-10 20:41:23 +02:00
|
|
|
- run: cp src/packaging/epel/fastnetmon.spec ~/rpmbuild/SPECS
|
2022-06-10 20:27:03 +02:00
|
|
|
- run:
|
|
|
|
name: Install build dependencies
|
|
|
|
command: dnf builddep -y ~/rpmbuild/SPECS/fastnetmon.spec
|
|
|
|
- run:
|
|
|
|
name: Download source
|
|
|
|
command: cd ~/rpmbuild && spectool -g -R SPECS/fastnetmon.spec
|
|
|
|
- run:
|
|
|
|
name: Added sysusers file to SOURCES
|
|
|
|
command: cp src/packaging/fedora/fastnetmon.sysusers ~/rpmbuild/SOURCES
|
|
|
|
- run:
|
|
|
|
name: Build source RPM
|
|
|
|
command: cd ~/rpmbuild/SPECS && rpmbuild -bs fastnetmon.spec
|
|
|
|
- store_artifacts:
|
|
|
|
path: /root/rpmbuild/SRPMS
|
|
|
|
- run:
|
|
|
|
name: Build RPM
|
|
|
|
command: cd ~/rpmbuild/SPECS && rpmbuild -bb fastnetmon.spec
|
|
|
|
- store_artifacts:
|
|
|
|
path: /root/rpmbuild/RPMS/x86_64
|
|
|
|
|
2022-04-21 20:32:41 +02:00
|
|
|
build_ubuntu:
|
|
|
|
parameters:
|
|
|
|
docker_image:
|
|
|
|
type: string
|
|
|
|
ubuntu_version:
|
|
|
|
type: string
|
2022-04-03 22:21:12 +02:00
|
|
|
docker:
|
2022-04-21 20:32:41 +02:00
|
|
|
- image: << parameters.docker_image >>
|
2022-04-03 22:21:12 +02:00
|
|
|
resource_class: large
|
|
|
|
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
|
2022-05-29 22:42:28 +02:00
|
|
|
command: perl src/scripts/fastnetmon_build.pl --install_dependency_packages_only
|
2022-04-03 22:21:12 +02:00
|
|
|
- restore_cache:
|
|
|
|
keys:
|
2022-10-15 17:01:53 +02:00
|
|
|
- "{{ .Environment.CIRCLE_JOB }}_dependencies_15_10_2022"
|
2022-04-03 22:21:12 +02:00
|
|
|
- restore_cache:
|
|
|
|
keys:
|
2022-05-30 00:12:55 +02:00
|
|
|
- "{{ .Environment.CIRCLE_JOB }}_gcc_30_05_2022"
|
2022-04-03 22:21:12 +02:00
|
|
|
- run:
|
|
|
|
name: install_gcc
|
|
|
|
no_output_timeout: 120m
|
2022-05-29 22:42:28 +02:00
|
|
|
command: perl src/scripts/fastnetmon_build.pl --build_gcc_only
|
2022-04-03 22:21:12 +02:00
|
|
|
- save_cache:
|
2022-05-30 00:12:55 +02:00
|
|
|
key: "{{ .Environment.CIRCLE_JOB }}_gcc_30_05_2022"
|
2022-04-03 22:21:12 +02:00
|
|
|
paths:
|
2022-05-30 00:12:55 +02:00
|
|
|
- /opt/fastnetmon-community/libraries/gcc1210
|
2022-04-03 22:21:12 +02:00
|
|
|
- run:
|
|
|
|
name: install_dependencies
|
|
|
|
no_output_timeout: 180m
|
2022-05-29 22:42:28 +02:00
|
|
|
command: perl src/scripts/fastnetmon_build.pl --build_dependencies_only
|
2022-04-03 22:21:12 +02:00
|
|
|
- run:
|
|
|
|
name: collect_debug
|
|
|
|
command: cat /tmp/fastnetmon_install.log
|
|
|
|
when: on_fail
|
|
|
|
- save_cache:
|
2022-10-15 17:01:53 +02:00
|
|
|
key: "{{ .Environment.CIRCLE_JOB }}_dependencies_15_10_2022"
|
2022-04-03 22:21:12 +02:00
|
|
|
paths:
|
|
|
|
- /opt
|
2022-06-17 13:49:40 +02:00
|
|
|
- run: perl src/scripts/fastnetmon_build.pl --build_fastnetmon_only
|
2022-04-03 22:21:12 +02: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
|
2022-04-21 20:32:41 +02:00
|
|
|
- run: src/scripts/build_any_package.pl deb /opt/fastnetmon_libraries_bundle.tar.gz << pipeline.parameters.fastnetmon_build_version >> ubuntu << parameters.ubuntu_version >>
|
2022-04-03 22:21:12 +02:00
|
|
|
- store_artifacts:
|
|
|
|
path: /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
|
2022-04-21 20:32:41 +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/<< parameters.ubuntu_version >>/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
|
2022-02-09 15:27:32 +01:00
|
|
|
- run: cp src/fastnetmon.conf /etc/fastnetmon.conf
|
2022-06-03 13:11:06 +02:00
|
|
|
- run: ldd /opt/fastnetmon-community/app/bin/fastnetmon
|
|
|
|
- run: ldd /opt/fastnetmon-community/app/bin/fastnetmon_client
|
|
|
|
- run: ldd /opt/fastnetmon-community/app/bin/fastnetmon_api_client
|
2022-06-03 13:17:13 +02:00
|
|
|
- run: /opt/fastnetmon-community/app/bin/fastnetmon --configuration_check
|
2022-04-21 21:02:40 +02:00
|
|
|
build_debian:
|
2022-04-21 21:06:12 +02:00
|
|
|
parameters:
|
2022-04-21 21:02:40 +02:00
|
|
|
docker_image:
|
|
|
|
type: string
|
|
|
|
debian_version:
|
|
|
|
type: string
|
2022-04-03 22:21:12 +02:00
|
|
|
docker:
|
2022-04-21 21:02:40 +02:00
|
|
|
- image: << parameters.docker_image >>
|
2022-05-30 00:29:21 +02:00
|
|
|
resource_class: large
|
2022-04-03 22:21:12 +02:00
|
|
|
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
|
2022-05-29 22:42:28 +02:00
|
|
|
command: perl src/scripts/fastnetmon_build.pl --install_dependency_packages_only
|
2022-04-03 22:21:12 +02:00
|
|
|
- restore_cache:
|
|
|
|
keys:
|
2022-10-15 17:01:53 +02:00
|
|
|
- "{{ .Environment.CIRCLE_JOB }}_dependencies_15_10_2022"
|
2022-04-03 22:21:12 +02:00
|
|
|
- restore_cache:
|
|
|
|
keys:
|
2022-05-30 00:12:55 +02:00
|
|
|
- "{{ .Environment.CIRCLE_JOB }}_gcc_30_05_2022"
|
2022-04-03 22:21:12 +02:00
|
|
|
- run:
|
|
|
|
name: install_gcc
|
|
|
|
no_output_timeout: 120m
|
2022-05-29 22:42:28 +02:00
|
|
|
command: perl src/scripts/fastnetmon_build.pl --build_gcc_only
|
2022-04-03 22:21:12 +02:00
|
|
|
- save_cache:
|
2022-05-30 00:12:55 +02:00
|
|
|
key: "{{ .Environment.CIRCLE_JOB }}_gcc_30_05_2022"
|
2022-04-03 22:21:12 +02:00
|
|
|
paths:
|
2022-05-30 00:12:55 +02:00
|
|
|
- /opt/fastnetmon-community/libraries/gcc1210
|
2022-04-03 22:21:12 +02:00
|
|
|
- run:
|
|
|
|
name: install_dependencies
|
|
|
|
no_output_timeout: 180m
|
2022-05-29 22:42:28 +02:00
|
|
|
command: perl src/scripts/fastnetmon_build.pl --build_dependencies_only
|
2022-04-03 22:21:12 +02:00
|
|
|
- run:
|
|
|
|
name: collect_debug
|
|
|
|
command: cat /tmp/fastnetmon_install.log
|
|
|
|
when: on_fail
|
|
|
|
- save_cache:
|
2022-10-15 17:01:53 +02:00
|
|
|
key: "{{ .Environment.CIRCLE_JOB }}_dependencies_15_10_2022"
|
2022-04-03 22:21:12 +02:00
|
|
|
paths:
|
|
|
|
- /opt
|
2022-06-17 13:49:40 +02:00
|
|
|
- run: perl src/scripts/fastnetmon_build.pl --build_fastnetmon_only
|
2022-04-03 22:21:12 +02: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
|
2022-04-21 21:02:40 +02:00
|
|
|
- run: src/scripts/build_any_package.pl deb /opt/fastnetmon_libraries_bundle.tar.gz << pipeline.parameters.fastnetmon_build_version >> debian << parameters.debian_version >>
|
2022-04-03 22:21:12 +02:00
|
|
|
- store_artifacts:
|
|
|
|
path: /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
|
2022-04-21 21:02:40 +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/<< parameters.debian_version >>/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb
|
2022-04-03 22:21:12 +02:00
|
|
|
- run: cp src/fastnetmon.conf /etc/fastnetmon.conf
|
2022-06-03 13:11:06 +02:00
|
|
|
- run: ldd /opt/fastnetmon-community/app/bin/fastnetmon
|
|
|
|
- run: ldd /opt/fastnetmon-community/app/bin/fastnetmon_client
|
|
|
|
- run: ldd /opt/fastnetmon-community/app/bin/fastnetmon_api_client
|
2022-06-03 13:17:13 +02:00
|
|
|
- run: /opt/fastnetmon-community/app/bin/fastnetmon --configuration_check
|
2022-04-21 21:36:09 +02:00
|
|
|
build_centos:
|
|
|
|
parameters:
|
|
|
|
docker_image:
|
|
|
|
type: string
|
|
|
|
centos_version:
|
|
|
|
type: string
|
2022-02-09 15:27:32 +01:00
|
|
|
docker:
|
2022-04-21 21:36:09 +02:00
|
|
|
- image: << parameters.docker_image >>
|
2022-04-02 20:36:03 +02:00
|
|
|
resource_class: large
|
2022-02-09 15:27:32 +01:00
|
|
|
steps:
|
|
|
|
- checkout
|
2022-05-29 22:45:04 +02:00
|
|
|
- run: yum install -y perl wget python3-pip perl-Archive-Tar perl-Env
|
2022-02-09 15:27:32 +01:00
|
|
|
- run: pip3 install s3cmd
|
2022-02-09 15:27:32 +01:00
|
|
|
- run:
|
|
|
|
name: install_required_packages
|
|
|
|
no_output_timeout: 20m
|
2022-05-29 22:42:28 +02:00
|
|
|
command: perl src/scripts/fastnetmon_build.pl --install_dependency_packages_only
|
2022-02-09 15:27:32 +01:00
|
|
|
- restore_cache:
|
|
|
|
keys:
|
2022-10-15 17:01:53 +02:00
|
|
|
- "{{ .Environment.CIRCLE_JOB }}_dependencies_15_10_2022"
|
2022-03-13 16:18:21 +01:00
|
|
|
- restore_cache:
|
|
|
|
keys:
|
2022-05-30 00:12:55 +02:00
|
|
|
- "{{ .Environment.CIRCLE_JOB }}_gcc_30_05_2022"
|
2022-03-13 16:18:21 +01:00
|
|
|
- run:
|
|
|
|
name: install_gcc
|
2022-04-02 02:42:22 +02:00
|
|
|
no_output_timeout: 120m
|
2022-05-29 22:42:28 +02:00
|
|
|
command: perl src/scripts/fastnetmon_build.pl --build_gcc_only
|
2022-03-13 16:18:21 +01:00
|
|
|
- save_cache:
|
2022-05-30 00:12:55 +02:00
|
|
|
key: "{{ .Environment.CIRCLE_JOB }}_gcc_30_05_2022"
|
2022-03-13 16:18:21 +01:00
|
|
|
paths:
|
2022-05-30 00:12:55 +02:00
|
|
|
- /opt/fastnetmon-community/libraries/gcc1210
|
2022-02-09 15:27:32 +01:00
|
|
|
- run:
|
|
|
|
name: install_dependencies
|
2022-03-13 16:18:21 +01:00
|
|
|
no_output_timeout: 180m
|
2022-05-29 22:42:28 +02:00
|
|
|
command: perl src/scripts/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:
|
2022-10-15 17:01:53 +02:00
|
|
|
key: "{{ .Environment.CIRCLE_JOB }}_dependencies_15_10_2022"
|
2022-02-09 15:27:32 +01:00
|
|
|
paths:
|
|
|
|
- /opt
|
|
|
|
- store_artifacts:
|
|
|
|
path: /tmp/fastnetmon_install.log
|
2022-06-17 13:49:40 +02:00
|
|
|
- run: perl src/scripts/fastnetmon_build.pl --build_fastnetmon_only
|
2022-03-13 22:45:05 +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
|
2022-04-21 21:36:09 +02:00
|
|
|
- run: src/scripts/build_any_package.pl rpm /opt/fastnetmon_libraries_bundle.tar.gz << pipeline.parameters.fastnetmon_build_version >> centos << parameters.centos_version >>
|
2022-02-09 15:27:32 +01:00
|
|
|
- store_artifacts:
|
2022-04-21 21:36:09 +02:00
|
|
|
path: /tmp/result_data/fastnetmon-<< pipeline.parameters.fastnetmon_build_version >>-1.el<< parameters.centos_version >>.x86_64.rpm
|
|
|
|
- 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.el<< parameters.centos_version >>.x86_64.rpm s3://fastnetmon_community_packages/<< pipeline.parameters.fastnetmon_build_version >>/centos/<< parameters.centos_version >>/fastnetmon-<< pipeline.parameters.fastnetmon_build_version >>-1.el<< parameters.centos_version >>.x86_64.rpm
|
2022-02-09 15:27:32 +01:00
|
|
|
- run: cp src/fastnetmon.conf /etc/fastnetmon.conf
|
2022-06-03 13:11:06 +02:00
|
|
|
- run: ldd /opt/fastnetmon-community/app/bin/fastnetmon
|
|
|
|
- run: ldd /opt/fastnetmon-community/app/bin/fastnetmon_client
|
|
|
|
- run: ldd /opt/fastnetmon-community/app/bin/fastnetmon_api_client
|
2022-06-03 13:17:13 +02:00
|
|
|
- run: /opt/fastnetmon-community/app/bin/fastnetmon --configuration_check
|
2022-02-09 15:27:32 +01:00
|
|
|
workflows:
|
2022-02-09 15:27:32 +01:00
|
|
|
version: 2
|
|
|
|
all_distros:
|
2022-02-09 15:27:32 +01:00
|
|
|
jobs:
|
2022-04-21 21:36:58 +02:00
|
|
|
- build_centos:
|
2022-04-21 21:36:09 +02:00
|
|
|
docker_image: centos:centos7
|
2022-04-21 21:37:46 +02:00
|
|
|
centos_version: "7"
|
2022-04-21 21:36:09 +02:00
|
|
|
name: "centos7"
|
2022-04-21 21:36:58 +02:00
|
|
|
- build_centos:
|
2022-04-21 21:36:09 +02:00
|
|
|
docker_image: almalinux:8
|
2022-04-21 21:37:46 +02:00
|
|
|
centos_version: "8"
|
2022-04-21 21:36:09 +02:00
|
|
|
name: "centos8"
|
2022-05-15 17:29:22 +02:00
|
|
|
- build_centos:
|
|
|
|
docker_image: almalinux:9
|
|
|
|
centos_version: "9"
|
|
|
|
name: "centos9"
|
2022-04-21 20:32:41 +02:00
|
|
|
- build_ubuntu:
|
|
|
|
docker_image: "ubuntu:jammy"
|
|
|
|
ubuntu_version: "22.04"
|
|
|
|
name: "ubuntu2204"
|
|
|
|
- build_ubuntu:
|
|
|
|
docker_image: "ubuntu:focal"
|
|
|
|
ubuntu_version: "20.04"
|
|
|
|
name: "ubuntu2004"
|
|
|
|
- build_ubuntu:
|
|
|
|
docker_image: "ubuntu:bionic"
|
|
|
|
ubuntu_version: "18.04"
|
|
|
|
name: "ubuntu1804"
|
|
|
|
- build_ubuntu:
|
|
|
|
docker_image: "ubuntu:xenial"
|
|
|
|
ubuntu_version: "16.04"
|
|
|
|
name: "ubuntu1604"
|
2022-04-21 21:02:40 +02:00
|
|
|
- build_debian:
|
|
|
|
docker_image: "debian:stretch"
|
2022-04-21 21:07:18 +02:00
|
|
|
debian_version: "9"
|
2022-04-21 21:02:40 +02:00
|
|
|
name: "debian9"
|
2022-04-21 21:07:18 +02:00
|
|
|
- build_debian:
|
2022-04-21 21:02:40 +02:00
|
|
|
docker_image: "debian:buster"
|
2022-04-21 21:07:18 +02:00
|
|
|
debian_version: "10"
|
2022-04-21 21:02:40 +02:00
|
|
|
name: "debian10"
|
2022-04-21 21:07:18 +02:00
|
|
|
- build_debian:
|
2022-04-21 21:02:40 +02:00
|
|
|
docker_image: "debian:bullseye"
|
2022-04-21 21:07:18 +02:00
|
|
|
debian_version: "11"
|
2022-04-21 21:02:40 +02:00
|
|
|
name: "debian11"
|
2022-11-30 20:26:57 +01:00
|
|
|
- build_debian:
|
|
|
|
docker_image: "debian:bookworm"
|
|
|
|
debian_version: "12"
|
|
|
|
name: "debian12"
|
2022-06-18 14:58:37 +02:00
|
|
|
- build_docker_x86_64:
|
|
|
|
name: "Build Docker image on x86_64 platform"
|
|
|
|
- build_docker_arm64:
|
|
|
|
name: "Build Docker image on ARM64 platform"
|
2022-05-03 14:12:27 +02:00
|
|
|
- build_debian_upstream_package:
|
2022-05-03 14:15:45 +02:00
|
|
|
name: "Debian Sid Upstream Build"
|
|
|
|
debian_codename: "sid"
|
2022-05-04 19:22:01 +02:00
|
|
|
- build_fedora_upstream:
|
|
|
|
name: "Fedora 35 Upstream RPM"
|
|
|
|
docker_image: fedora:35
|
2022-05-21 13:52:14 +02:00
|
|
|
- build_fedora_upstream:
|
|
|
|
name: "Fedora 36 Upstream RPM"
|
|
|
|
docker_image: fedora:36
|
2022-05-28 17:00:02 +02:00
|
|
|
- build_fedora_upstream:
|
|
|
|
name: "Fedora 37 Upstream RPM"
|
|
|
|
docker_image: fedora:37
|
2022-11-30 20:26:57 +01:00
|
|
|
- build_fedora_upstream:
|
|
|
|
name: "Fedora 38 Upstream RPM"
|
|
|
|
docker_image: fedora:38
|
2022-06-10 20:52:30 +02:00
|
|
|
- build_epel9_upstream:
|
2022-06-10 20:21:00 +02:00
|
|
|
name: "EPEL 9 RPM"
|
2022-06-11 16:50:30 +02:00
|
|
|
- build_macos:
|
2022-06-11 16:49:50 +02:00
|
|
|
name: "Build on MacOS"
|
2022-06-17 14:24:11 +02:00
|
|
|
- build_windows2022:
|
|
|
|
name: "Build on Windows Server 2022"
|
2022-06-17 14:18:30 +02:00
|
|
|
- build_windows2019:
|
|
|
|
name: "Build on Windows Server 2019"
|