Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build EL9 packages #6153

Merged
merged 6 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
# 'machine' executor runs Unit tests ~x1.5 faster, comparing to 'docker' executor
# but the fastest is still ~x1.5-2 slower, comparing to Travis
machine: true
parallelism: 2
parallelism: 3
working_directory: ~/st2
steps:
- checkout
Expand Down Expand Up @@ -107,33 +107,48 @@ jobs:

# Build & Test st2 packages
packages:
parallelism: 2
parallelism: 3
# 4CPUs & 8GB RAM CircleCI machine
# sadly, it doesn't work with 'setup_remote_docker'
resource_class: large
docker:
# The primary container is an instance of the first list image listed. Your build commands run in this container.
- image: circleci/python:3.6
- image: circleci/python:3.8
working_directory: ~/st2
environment:
- DISTROS: "focal el8"
- DISTROS: "focal el8 el9"
- ST2_PACKAGES_REPO: https://github.com/StackStorm/st2-packages
- ST2_PACKAGES: "st2"
- ST2_CHECKOUT: 0
- ST2_GITDIR: /tmp/st2
- BASH_ENV: ~/.buildenv
steps:
- checkout
- run:
name: Install latest Docker Compose V2
command: |
set -x
export CODENAME=$(source /etc/os-release && echo "$VERSION_CODENAME")
export DISTRO=$(source /etc/os-release && echo "$ID")
export ARCH=$(dpkg --print-architecture)
# get gpg key for download.docker
curl -fsSL https://download.docker.com/linux/${DISTRO}/gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/download.docker.gpg
# set source list
sudo tee <<<"deb [arch=${ARCH}] https://download.docker.com/linux/${DISTRO} ${CODENAME} stable" /etc/apt/sources.list.d/download.docker.list
# update package list
sudo apt update
# install docker CLI and Docker Compose v2
sudo apt install docker-ce-cli docker-compose-plugin
- setup_remote_docker:
reusable: true # default - false
exclusive: true # default - true
version: 19.03.14
version: docker24
- run:
name: Docker version
command: |
set -x
docker --version
docker-compose --version
docker compose version
- run:
name: Download st2-packages repository
command: |
Expand Down Expand Up @@ -222,7 +237,7 @@ jobs:
- image: circleci/ruby:2.7
working_directory: /tmp/deploy
environment:
- DISTROS: "focal el8"
- DISTROS: "focal el8 el9"
steps:
- attach_workspace:
at: .
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Added
to pants' use of PEX lockfiles. This is not a user-facing addition.
#6118 #6141 #6133
Contributed by @cognifloyd
* Build of ST2 EL9 packages #6153
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: aren't these entries "newest at top"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've always added to the end of the current builds section.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newest at bottom

Contributed by @amanda11

3.8.1 - December 13, 2023
-------------------------
Expand Down
Loading