-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #358 from apel/release-3.4.1
Release 3.4.1 to master
- Loading branch information
Showing
18 changed files
with
157 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ jobs: | |
run: rpmlint ${{ steps.rpm.outputs.rpm_dir_path }} | ||
|
||
- name: Upload artifact | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].6 | ||
with: | ||
name: Binary and Source RPMs | ||
path: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
* Fri Aug 30 2024 Adrian Coveney <[email protected]> - 3.4.1-1 | ||
- Improved error logging to store full traceback on unexpected exceptions. | ||
- Changed more code to use pyOpenSSL to improve compatibility with newer OpenSSL versions. | ||
- Added a check to prevent a host certificate being to used for target server encryption. | ||
- Changed which version of exit function is used to avoid edge case. | ||
- Various changes and improvements to build scripts and processes. | ||
|
||
* Wed Feb 21 2024 Adrian Coveney <[email protected]> - 3.4.0-1 | ||
- Fixed compatability with newer versions of OpenSSL that only provide comma separated DNs. | ||
- Fixed Python 3 compatability (indirectly fixing EL8+ compatability) by performing explicit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
FROM centos:7 | ||
MAINTAINER APEL Administrators <[email protected]> | ||
FROM rockylinux:9 | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
LABEL org.opencontainers.image.title="APEL SSM" | ||
LABEL org.opencontainers.image.description="Secure STOMP Messenger (SSM) is designed to simply send messages using the STOMP protocol or via the ARGO Messaging Service (AMS)." | ||
LABEL org.opencontainers.image.source="https://github.com/apel/ssm" | ||
LABEL org.opencontainers.image.licenses="Apache License, Version 2.0" | ||
|
||
# Copy the SSM Git repository to /tmp/ssm | ||
COPY . /tmp/ssm | ||
|
@@ -9,10 +13,10 @@ WORKDIR /tmp/ssm | |
# Add the EPEL repo so we can get pip | ||
RUN yum -y install epel-release && yum clean all | ||
# Then get pip | ||
RUN yum -y install python-pip && yum clean all | ||
RUN yum -y install python3-pip && yum clean all | ||
|
||
# Install the system requirements of python-ldap | ||
RUN yum -y install gcc python-devel openldap-devel && yum clean all | ||
RUN yum -y install gcc python3-devel openldap-devel && yum clean all | ||
|
||
# Install libffi, a requirement of openssl | ||
RUN yum -y install libffi-devel && yum clean all | ||
|
@@ -21,9 +25,9 @@ RUN yum -y install libffi-devel && yum clean all | |
RUN yum -y install openssl && yum clean all | ||
|
||
# Install the python requirements of SSM | ||
RUN pip install -r requirements.txt | ||
RUN pip install -r requirements-docker.txt | ||
# Then install the SSM | ||
RUN python setup.py install | ||
RUN python3 setup.py install | ||
|
||
# Set the working directory back to / | ||
WORKDIR / | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
%endif | ||
|
||
Name: apel-ssm | ||
Version: 3.4.0 | ||
Version: 3.4.1 | ||
%define releasenumber 1 | ||
Release: %{releasenumber}%{?dist} | ||
Summary: Secure stomp messenger | ||
|
@@ -100,6 +100,13 @@ rm -rf $RPM_BUILD_ROOT | |
%doc %_defaultdocdir/%{name} | ||
|
||
%changelog | ||
* Fri Aug 30 2024 Adrian Coveney <[email protected]> - 3.4.1-1 | ||
- Improved error logging to store full traceback on unexpected exceptions. | ||
- Changed more code to use pyOpenSSL to improve compatibility with newer OpenSSL versions. | ||
- Added a check to prevent a host certificate being to used for target server encryption. | ||
- Changed which version of exit function is used to avoid edge case. | ||
- Various changes and improvements to build scripts and processes. | ||
|
||
* Wed Feb 21 2024 Adrian Coveney <[email protected]> - 3.4.0-1 | ||
- Fixed compatability with newer versions of OpenSSL that only provide comma separated DNs. | ||
- Fixed Python 3 compatability (indirectly fixing EL8+ compatability) by performing explicit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Base requirements for ssm | ||
|
||
argo-ams-library | ||
pyopenssl | ||
cryptography | ||
stomp.py | ||
python-daemon | ||
python-ldap | ||
setuptools # Required for pkg_resources (also happens to be a dependency of python-ldap) | ||
|
||
# Dependencies for optional dirq based sending | ||
dirq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
|
||
set -eu | ||
|
||
TAG=3.4.0-1 | ||
TAG=3.4.1-1 | ||
|
||
SOURCE_DIR=~/debbuild/source | ||
BUILD_DIR=~/debbuild/build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,13 @@ | |
# @Author: Nicholas Whyatt ([email protected]) | ||
|
||
# Script runs well with FPM 1.14.2 on ruby 2.7.1, setuptools 51.3.3 on RHEL and Deb platforms | ||
# Download ruby (if you're locked to 2.5, use RVM) and then run: | ||
|
||
# Download ruby (if you're locked to 2.5, use RVM, https://www.tecmint.com/install-ruby-on-centos-rhel-8/#installrubyrvm) and then run: | ||
# sudo gem install fpm -v 1.14.2 | ||
# (may need to be run without the 'sudo') | ||
|
||
# for RPM builds, you will also need: | ||
# sudo yum install rpm-build | sudo apt-get install rpm | ||
# sudo yum install rpm-build rpmlint | sudo apt-get install rpm lintian | ||
# ./ssm-build.sh (deb | rpm) <version> <iteration> <python_root_dir> | ||
# e.g. | ||
# ./ssm-build.sh deb 3.4.0 1 /usr/lib/python3.6 | ||
|
@@ -107,6 +110,7 @@ rm -f "$TAR_FILE" | |
# Get supplied Python version | ||
PY_VERSION="$(basename "$PYTHON_ROOT_DIR")" | ||
PY_NUM=${PY_VERSION#python} | ||
OS_EXTENSION="$(uname -r | grep -o 'el[7-9]' || echo '_all')" | ||
|
||
# Universal FPM Call | ||
FPM_CORE="fpm -s python \ | ||
|
@@ -127,25 +131,27 @@ if [[ ${PY_NUM:0:1} == "3" ]]; then | |
|
||
if [[ "$PACK_TYPE" = "deb" ]]; then | ||
FPM_PYTHON="--depends python3 \ | ||
--depends python-pip3 \ | ||
--depends 'python-stomp' \ | ||
--depends python-ldap \ | ||
--depends python3-pip \ | ||
--depends python3-cryptography \ | ||
--depends python3-openssl \ | ||
--depends python3-daemon \ | ||
--depends 'python3-stomp' \ | ||
--depends python3-ldap \ | ||
--depends libssl-dev \ | ||
--depends libsasl2-dev \ | ||
--depends openssl " | ||
|
||
OS_EXTENSION="_all" | ||
|
||
# Currently builds for el8 | ||
elif [[ "$PACK_TYPE" = "rpm" ]]; then | ||
FPM_PYTHON="--depends python3 \ | ||
--depends python3-stomppy \ | ||
--depends python3-pip \ | ||
--depends python3-cryptography \ | ||
--depends python3-pyOpenSSL \ | ||
--depends python3-daemon \ | ||
--depends python3-ldap \ | ||
--depends openssl \ | ||
--depends openssl-devel " | ||
|
||
OS_EXTENSION="el8" | ||
fi | ||
|
||
elif [[ ${PY_NUM:0:1} == "2" ]]; then | ||
|
@@ -156,29 +162,32 @@ elif [[ ${PY_NUM:0:1} == "2" ]]; then | |
--depends python-pip \ | ||
--depends 'python-stomp < 5.0.0' \ | ||
--depends python-ldap \ | ||
--depends python-cryptography \ | ||
--depends python-openssl \ | ||
--depends python-daemon \ | ||
--depends libssl-dev \ | ||
--depends libsasl2-dev \ | ||
--depends openssl " | ||
|
||
OS_EXTENSION="_all" | ||
|
||
# el7 and below, due to yum package versions | ||
elif [[ "$PACK_TYPE" = "rpm" ]]; then | ||
FPM_PYTHON="--depends python2 \ | ||
--depends python2-pip \ | ||
--depends python2-cryptography \ | ||
--depends python2-pyOpenSSL \ | ||
--depends python2-daemon \ | ||
--depends stomppy \ | ||
--depends python-ldap \ | ||
--depends openssl \ | ||
--depends openssl-devel " | ||
|
||
OS_EXTENSION="el7" | ||
fi | ||
fi | ||
|
||
# python-bin must always be specified in modern linux | ||
PACKAGE_VERSION="--$PACK_TYPE-changelog $SOURCE_DIR/ssm-$VERSION-$ITERATION/CHANGELOG \ | ||
--$PACK_TYPE-dist $OS_EXTENSION \ | ||
--python-bin /usr/bin/$PY_VERSION \ | ||
--python-install-bin /usr/bin \ | ||
--python-install-lib $PYTHON_ROOT_DIR$LIB_EXTENSION \ | ||
--exclude *.pyc \ | ||
--package $BUILD_DIR \ | ||
|
@@ -203,3 +212,18 @@ fpm -s pleaserun -t "$PACK_TYPE" \ | |
--depends apel-ssm \ | ||
--package "$BUILD_DIR" \ | ||
/usr/bin/ssmreceive | ||
|
||
echo "Possible Issues to Fix:" | ||
if [ "$OS_EXTENSION" == "_all" ] | ||
then | ||
# Check the resultant debs for 'lint' | ||
TAG="$VERSION-$ITERATION" | ||
DEBDIR="$(dirname "$BUILD_DIR")" | ||
|
||
lintian "$DEBDIR"/apel-ssm_"${TAG}"_all.deb | ||
lintian "$DEBDIR"/apel-ssm-service_"${TAG}"_all.deb | ||
else | ||
# Check for errors in SPEC and built packages | ||
# For instance; Given $(dirname /root/rpmb/rpmbuild/source) will output "/root/rpmb/rpmbuild". | ||
rpmlint "$(dirname "$SOURCE_DIR")" | ||
fi |
Oops, something went wrong.