Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
c85d7f1
add build scripts
cinterloper Sep 2, 2025
9161259
port workflow
cinterloper Sep 4, 2025
0e64809
use http url for submodule
cinterloper Sep 4, 2025
e580e4a
fix ubuntu20.04 dep
cinterloper Sep 4, 2025
38c7ab3
debug scripts, and switch ubuntu 24.04 to installing pipenv from apt
cinterloper Sep 4, 2025
52251c7
set debian debugging and change incorrect function name
cinterloper Sep 4, 2025
132e38c
set redhat debugging
cinterloper Sep 4, 2025
3390880
install pipenv via apt in debian 12
cinterloper Sep 4, 2025
3f5c0e8
install via apt
cinterloper Sep 4, 2025
c6536c1
use python3.10 for ubuntu 20.04
cinterloper Sep 4, 2025
965f2cb
update 22.04 for python3.10
cinterloper Sep 5, 2025
48a38e1
backout dead snakes
cinterloper Sep 5, 2025
74ddf60
matrix support
cinterloper Sep 5, 2025
cac2383
update ubi9 image
cinterloper Sep 5, 2025
c4fe6ce
update debian 11 image
cinterloper Sep 5, 2025
6c6080b
fix debian11
cinterloper Sep 5, 2025
917dbb6
use dots in ubuntu distro names to match script
cinterloper Sep 5, 2025
55a4aad
add asdf to ubuntu 24.04
cinterloper Sep 5, 2025
0354073
refactor to standardize build process
cinterloper Sep 5, 2025
1825bc7
version images
cinterloper Sep 5, 2025
2c217d7
only build required distro
cinterloper Sep 6, 2025
ec2aafb
update distro name in workflow
cinterloper Sep 6, 2025
7647e9a
remove break system packages for redhat
cinterloper Sep 6, 2025
33635b6
artifact names must be unique per run
cinterloper Sep 6, 2025
770214f
parallelize sign and upload
cinterloper Sep 6, 2025
1bc80c0
use matrix.distro variable
cinterloper Sep 6, 2025
5e08c6f
update version
cinterloper Sep 6, 2025
4e1d549
update oidc creds and change project from test to database
cinterloper Sep 9, 2025
f8c9369
fix build-name
cinterloper Sep 9, 2025
2d49f9b
retrigger build
cinterloper Sep 9, 2025
7dce319
matrix x86 and arm
cinterloper Sep 12, 2025
87160b4
matrix debian13, redhat-el8, amazon-2023
cinterloper Sep 17, 2025
e645290
fix debian13 build
cinterloper Sep 17, 2025
232c1d6
fix el8 build
cinterloper Sep 17, 2025
090714d
fix el9 build
cinterloper Sep 17, 2025
99b5166
fix amazon 2023 build
cinterloper Sep 17, 2025
c9561c3
push mac artifact to jfrog
cinterloper Sep 22, 2025
5bbd753
fix build name for mac artifact
cinterloper Sep 22, 2025
0e46f52
fix project
cinterloper Sep 22, 2025
b9d2ed2
Add support for rhel 10.
pvinh-spike Oct 14, 2025
c1e8758
Add SERVER-436 branch to the action.
pvinh-spike Oct 14, 2025
2879bc3
Manually run action.
pvinh-spike Oct 14, 2025
0c0c4ee
Remove undefined variables.
pvinh-spike Oct 14, 2025
387df5d
Add SERVER-436 branch.
pvinh-spike Oct 15, 2025
54962d2
Fix fpm.
pvinh-spike Oct 15, 2025
7f6fe42
Fix fpm.
pvinh-spike Oct 15, 2025
b4fde91
Fix fpm.
pvinh-spike Oct 15, 2025
6ca90fc
Fix fpm.
pvinh-spike Oct 15, 2025
e5b60b5
Remove support for Debian 11.
pvinh-spike Oct 15, 2025
f8a90c5
update workflows and pin to specific commit, disable redhat 8 due to …
cinterloper Oct 15, 2025
7bce621
standardize on build script, dont unshallow submodules
cinterloper Oct 15, 2025
3692ad3
cleanup dockerfiles
cinterloper Oct 15, 2025
378b811
pin versions of fpm and redhat images
cinterloper Oct 17, 2025
e8e8d0d
change name to prifix aerospike-
cinterloper Oct 20, 2025
45e3c36
Merge branch 'SERVER-216' into SERVER-436
cinterloper Oct 20, 2025
67d0e06
merge with master
cinterloper Oct 20, 2025
91f2379
pin redhat version
cinterloper Oct 20, 2025
b9c05ca
ubi -> el
cinterloper Oct 22, 2025
a1c68d0
match rpm naming conventions, remove outdated tests
cinterloper Oct 22, 2025
ef4ec11
fix el10 name
cinterloper Oct 22, 2025
67367d2
change package name to reflect aerospike prefix
cinterloper Oct 22, 2025
80d558c
amazon -> amzn
cinterloper Oct 22, 2025
8b4f67c
add tests, fix package name
cinterloper Oct 23, 2025
7fab7c1
change name
cinterloper Oct 23, 2025
2e6ac30
Delete .github/docker/test/test_package.sh
cinterloper Oct 23, 2025
2213967
remove source removed file
cinterloper Oct 23, 2025
d62762e
cleanup dependencies for python and readline
cinterloper Oct 23, 2025
a607bcd
cleanup dependencies
cinterloper Oct 23, 2025
2b6d832
update deps
cinterloper Oct 23, 2025
e3481d2
standardize python install
cinterloper Oct 23, 2025
4f3d18e
fix debian13 test image
cinterloper Oct 23, 2025
ee19fd2
refactor to use server-packaging-common
cinterloper Oct 31, 2025
3f7bc39
update for server-packaging-common
cinterloper Oct 31, 2025
7d17c90
fix missing version in Makefile
cinterloper Oct 31, 2025
b8be097
Merge remote-tracking branch 'origin/master' into dev/SERVER-216
cinterloper Oct 31, 2025
665951a
debug issues with running package installation test for redhat based …
cinterloper Oct 31, 2025
666868e
fix rpm version dashes to underscore
cinterloper Oct 31, 2025
6af470d
update to execute JFrog installation tests
cinterloper Nov 6, 2025
edeca78
use dynamic name
cinterloper Nov 7, 2025
48a6065
Merge remote-tracking branch 'origin/master' into dev/SERVER-216
cinterloper Nov 10, 2025
b58c763
update packaging common
cinterloper Nov 10, 2025
23683c7
update common
cinterloper Nov 11, 2025
c0404c9
update common
cinterloper Nov 11, 2025
7a87bc5
update common
cinterloper Nov 12, 2025
f4f2b5d
update common
cinterloper Nov 12, 2025
5568455
debug: Update subproject commit reference in common packaging
a-spiker Nov 14, 2025
189608b
feat: Exclude system libraries from PyInstaller build to prevent glib…
a-spiker Nov 14, 2025
e94ecfb
Revert "feat: Exclude system libraries from PyInstaller build to prev…
a-spiker Nov 14, 2025
3a3a486
debug: Adjust pipenv installation to avoid binary packages for crypto…
a-spiker Nov 14, 2025
8c3d1dd
feat: Add Rust installation for building cryptography from source
a-spiker Nov 14, 2025
e91c41c
feat: Integrate Rust installation into dependency setup for various e…
a-spiker Nov 14, 2025
85e216a
debug: Improve Rust installation script with symlinks and verification
a-spiker Nov 14, 2025
5ee862e
debug: Set PIP_NO_BINARY for cryptography in init target
a-spiker Nov 14, 2025
97d4624
remove old submodule
cinterloper Nov 14, 2025
3cab2b9
add renamed submodule
cinterloper Nov 14, 2025
672b919
Merge remote-tracking branch 'origin/dev/SERVER-216-akash' into dev/S…
cinterloper Nov 14, 2025
d2a3e91
Revert "Merge remote-tracking branch 'origin/dev/SERVER-216-akash' in…
cinterloper Nov 14, 2025
5332247
feat: Exclude system libraries from PyInstaller build to prevent glib…
a-spiker Nov 14, 2025
c967ba9
cleanup
cinterloper Nov 14, 2025
904493a
Merge remote-tracking branch 'origin/master' into dev/SERVER-216
cinterloper Nov 14, 2025
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
1 change: 1 addition & 0 deletions .github/packaging/common
Submodule common added at fa4318
30 changes: 30 additions & 0 deletions .github/packaging/project/build_package.sh

Choose a reason for hiding this comment

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

I've committed needed changes for makefiles and with that this file should be changed to:

function build_packages(){
if [ "$ENV_DISTRO" = "" ]; then
echo "ENV_DISTRO is not set"
return
fi
chown -R root:root .
GIT_DIR=$(git rev-parse --show-toplevel)
cd "$GIT_DIR"

echo "building package for $BUILD_DISTRO"

if [[ $ENV_DISTRO == "ubuntu" ]]; then
make deb
elif [[ $ENV_DISTRO == "debian" ]]; then
make deb
elif [[ $ENV_DISTRO == "el" ]]; then
make rpm
elif [[ $ENV_DISTRO == "amzn" ]]; then
make rpm
else
make tar
fi

mkdir -p /tmp/output/$ENV_DISTRO
cp -a $GIT_DIR/pkg/target/* /tmp/output/$ENV_DISTRO
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash
set -xeuo pipefail

Copy link
Contributor

Choose a reason for hiding this comment

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

For the sake of consistency, asconfig uses


#!/usr/bin/env bash
set -xeuo pipefail

should we add that here?

function build_packages(){
if [ "$ENV_DISTRO" = "" ]; then
echo "ENV_DISTRO is not set"
return
fi
chown -R root:root .
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this chown needed?

GIT_DIR=$(git rev-parse --show-toplevel)
cd "$GIT_DIR"
make one-file
Copy link
Contributor

Choose a reason for hiding this comment

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

I think asadm's default make command builds targets "one-dir". Why go with "one-file" here?

cd $GIT_DIR/pkg
echo "building package for $BUILD_DISTRO"

if [[ $ENV_DISTRO == *"ubuntu"* ]]; then
make deb
elif [[ $ENV_DISTRO == *"debian"* ]]; then
make deb
elif [[ $ENV_DISTRO == *"el"* ]]; then
make rpm
elif [[ $ENV_DISTRO == *"amzn"* ]]; then
make rpm
else
make tar
fi

mkdir -p /tmp/output/$ENV_DISTRO
cp -a $GIT_DIR/pkg/target/* /tmp/output/$ENV_DISTRO
}
13 changes: 13 additions & 0 deletions .github/packaging/project/gha-main.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -xeuo pipefail

DISTRO="$1"
env
cd local
git fetch --unshallow --tags --no-recurse-submodules
git submodule update --init
ls -laht
git branch -v
.github/packaging/common/entrypoint.sh -c -d $DISTRO
.github/packaging/common/entrypoint.sh -e -d $DISTRO
ls -laht ../dist
274 changes: 274 additions & 0 deletions .github/packaging/project/install_deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,274 @@
#!/usr/bin/env bash
set -xeuo pipefail

DEBIAN_12_DEPS="libreadline8 libreadline-dev ruby-rubygems make rpm git snapd curl binutils rsync libssl3 libssl-dev lzma lzma-dev libffi-dev build-essential gcc g++"
DEBIAN_13_DEPS="libreadline8 libreadline-dev ruby-rubygems make rpm git snapd curl binutils rsync libssl3 libssl-dev lzma liblzma-dev libffi-dev libsqlite3-dev build-essential gcc g++ zlib1g-dev libbz2-dev libreadline-dev libncursesw5-dev libnss3-dev uuid-dev tk-dev xz-utils"
UBUNTU_2004_DEPS="libreadline8 libreadline-dev ruby make rpm git snapd curl binutils rsync libssl1.1 libssl-dev lzma lzma-dev libffi-dev build-essential gcc g++"
UBUNTU_2204_DEPS="libreadline8 libreadline-dev ruby-rubygems make rpm git snapd curl binutils rsync libssl3 libssl-dev lzma lzma-dev libffi-dev build-essential gcc g++"
UBUNTU_2404_DEPS="libreadline8 libreadline-dev ruby-rubygems make rpm git snapd curl binutils rsync libssl3 libssl-dev lzma lzma-dev libffi-dev build-essential gcc g++"
EL8_DEPS="ruby rubygems redhat-rpm-config rpm-build make git rsync gcc gcc-c++ make automake zlib zlib-devel libffi-devel openssl-devel bzip2-devel xz-devel xz xz-libs sqlite sqlite-devel sqlite-libs"
EL9_DEPS="ruby rpmdevtools make git rsync gcc g++ make automake zlib zlib-devel libffi-devel openssl-devel bzip2-devel xz-devel xz xz-libs sqlite sqlite-devel sqlite-libs"
EL10_DEPS="ruby rpmdevtools make git rsync gcc g++ make automake zlib zlib-devel libffi-devel openssl-devel bzip2-devel xz-devel xz xz-libs sqlite sqlite-devel sqlite-libs"
AMZN2023_DEPS="readline-devel ruby rpmdevtools make git rsync gcc g++ make automake zlib zlib-devel libffi-devel openssl-devel bzip2-devel xz-devel xz xz-libs sqlite sqlite-devel sqlite-libs"

function install_deps_debian12() {

Choose a reason for hiding this comment

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

Can we have a new line here?

Choose a reason for hiding this comment

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

Should we add a new line for readable?

apt -y install $DEBIAN_12_DEPS
if [ "$(uname -m)" = "x86_64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang
elif [ "$(uname -m)" = "aarch64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang
else
echo "unknown arch $(uname -m)"
exit 1
fi
/opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected]
install /root/go/bin/asdf /usr/local/bin/asdf
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is the use of "asdf" coming from?

Copy link
Contributor

Choose a reason for hiding this comment

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

I see pyenv (or nowadays uv) used for python version management more often

asdf plugin add python https://github.com/asdf-community/asdf-python.git
asdf install python 3.10.18
asdf set python 3.10.18
echo "python 3.10.18" > /.tool-versions
echo "python 3.10.18" > /root/.tool-versions
asdf exec python -m pip install --break-system-packages pipenv
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3
install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv
install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip
install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3
gem install fpm -v 1.17.0
}

function install_deps_debian13() {
apt -y install $DEBIAN_13_DEPS
if [ "$(uname -m)" = "x86_64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang
elif [ "$(uname -m)" = "aarch64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang
else
echo "unknown arch $(uname -m)"
exit 1
fi
/opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected]
install /root/go/bin/asdf /usr/local/bin/asdf
asdf plugin add python https://github.com/asdf-community/asdf-python.git
asdf install python 3.10.18
asdf set python 3.10.18
echo "python 3.10.18" > /.tool-versions
echo "python 3.10.18" > /root/.tool-versions
asdf exec python -m pip install --break-system-packages pipenv
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3
install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv
install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip
install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3

Choose a reason for hiding this comment

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

Should we remove extra empty lines


gem install fpm -v 1.17.0
}

function install_deps_ubuntu20.04() {
apt -y install $UBUNTU_2004_DEPS
if [ "$(uname -m)" = "x86_64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang
elif [ "$(uname -m)" = "aarch64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang
else
echo "unknown arch $(uname -m)"
exit 1
fi
/opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected]
install /root/go/bin/asdf /usr/local/bin/asdf
asdf plugin add python https://github.com/asdf-community/asdf-python.git
asdf install python 3.10.18
asdf set python 3.10.18
echo "python 3.10.18" > /.tool-versions
echo "python 3.10.18" > /root/.tool-versions
asdf exec python -m pip install pipenv
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3
install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv
install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip
install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3
gem install fpm -v 1.17.0
}

function install_deps_ubuntu22.04() {
apt -y install $UBUNTU_2204_DEPS
if [ "$(uname -m)" = "x86_64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang
elif [ "$(uname -m)" = "aarch64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang
else
echo "unknown arch $(uname -m)"
exit 1
fi
/opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected]
install /root/go/bin/asdf /usr/local/bin/asdf
asdf plugin add python https://github.com/asdf-community/asdf-python.git
asdf install python 3.10.18
asdf set python 3.10.18
echo "python 3.10.18" > /.tool-versions
echo "python 3.10.18" > /root/.tool-versions
asdf exec python -m pip install pipenv
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3
install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv
install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip
install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3
gem install fpm -v 1.17.0
}

function install_deps_ubuntu24.04() {
apt -y install $UBUNTU_2404_DEPS
if [ "$(uname -m)" = "x86_64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang
elif [ "$(uname -m)" = "aarch64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang
else
echo "unknown arch $(uname -m)"
exit 1
fi

/opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected]
install /root/go/bin/asdf /usr/local/bin/asdf
asdf plugin add python https://github.com/asdf-community/asdf-python.git
asdf install python 3.10.18
asdf set python 3.10.18
echo "python 3.10.18" > /.tool-versions
echo "python 3.10.18" > /root/.tool-versions
asdf exec python -m pip install --break-system-packages pipenv
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3
install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv
install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip
install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3
gem install fpm -v 1.17.0
}

function install_deps_el8() {
dnf module enable -y ruby:2.7
yum install -y "https://download.rockylinux.org/pub/rocky/8.10/Devel/$(uname -m)/os/Packages/r/readline-devel-7.0-10.el8.$(uname -m).rpm"
dnf -y install $EL8_DEPS
gem install --no-document fpm
if [ "$(uname -m)" = "x86_64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang
elif [ "$(uname -m)" = "aarch64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang
else
echo "unknown arch $(uname -m)"
exit 1
fi
/opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected]
install /root/go/bin/asdf /usr/local/bin/asdf
asdf plugin add python https://github.com/asdf-community/asdf-python.git
asdf install python 3.10.18
asdf set python 3.10.18
echo "python 3.10.18" > /.tool-versions
echo "python 3.10.18" > /root/.tool-versions
asdf exec python -m pip install pipenv
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3
install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv
install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip
install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3

Choose a reason for hiding this comment

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

Extra empty line.

gem install fpm -v 1.17.0
}

function install_deps_el9() {
yum install -y "https://download.rockylinux.org/pub/rocky/9.6/devel/$(uname -m)/os/Packages/r/readline-devel-8.1-4.el9.$(uname -m).rpm"
dnf -y install $EL9_DEPS

if [ "$(uname -m)" = "x86_64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang
elif [ "$(uname -m)" = "aarch64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang
else
echo "unknown arch $(uname -m)"
exit 1
fi
/opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected]
install /root/go/bin/asdf /usr/local/bin/asdf
asdf plugin add python https://github.com/asdf-community/asdf-python.git
asdf install python 3.10.18
asdf set python 3.10.18
echo "python 3.10.18" > /.tool-versions
echo "python 3.10.18" > /root/.tool-versions
asdf exec python -m pip install --break-system-packages pipenv
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3
install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv
install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip
install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3
gem install fpm -v 1.17.0
}

function install_deps_el10() {
yum install -y "https://download.rockylinux.org/pub/rocky/10.0/devel/$(uname -m)/os/Packages/r/readline-devel-8.2-11.el10.$(uname -m).rpm"
dnf -y install $EL10_DEPS
if [ "$(uname -m)" = "x86_64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang
elif [ "$(uname -m)" = "aarch64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang
else
echo "unknown arch $(uname -m)"
exit 1
fi
/opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected]
install /root/go/bin/asdf /usr/local/bin/asdf
asdf plugin add python https://github.com/asdf-community/asdf-python.git
asdf install python 3.10.18
asdf set python 3.10.18
echo "python 3.10.18" > /.tool-versions
echo "python 3.10.18" > /root/.tool-versions
asdf exec python -m pip install --break-system-packages pipenv
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3
install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv
install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip
install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3
gem install fpm
}

function install_deps_amzn2023() {
dnf -y install $AMZN2023_DEPS
if [ "$(uname -m)" = "x86_64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang
elif [ "$(uname -m)" = "aarch64" ]; then
curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz
mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang
else
echo "unknown arch $(uname -m)"
exit 1
fi
/opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected]
install /root/go/bin/asdf /usr/local/bin/asdf
asdf plugin add python https://github.com/asdf-community/asdf-python.git
asdf install python 3.10.18
asdf set python 3.10.18
echo "python 3.10.18" > /.tool-versions
echo "python 3.10.18" > /root/.tool-versions
asdf exec python -m pip install --break-system-packages pipenv
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python
install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3
install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv
install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip
install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3
gem install fpm -v 1.17.0
}
7 changes: 7 additions & 0 deletions .github/packaging/project/test/gha-test-main.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -xeuo pipefail
DISTRO="$1"
REPO_NAME="$2"
env
git fetch --unshallow --tags --no-recurse-submodules
.github/packaging/common/example-test.sh "$DISTRO" "$REPO_NAME"
6 changes: 6 additions & 0 deletions .github/packaging/project/test/test_execute.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bats

@test "can run asadm" {
asadm --help
[ "$?" -eq 0 ]
}
Loading
Loading