-
Notifications
You must be signed in to change notification settings - Fork 7
Add support for Rocky8, Rocky9, Ubuntu build #61
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
e0f01e5
Add dependency install scripts and include docs
velomatt dce7123
Use python3 explicitly
velomatt a40b3bf
Don't install dependencies in build.sh
velomatt 03da07a
Add Ubuntu dependency script
velomatt 81b5e08
Only build RPMs if OS is centos or rocky
velomatt bb4052c
Dont build DSSD libucore
velomatt c20536f
Add missing libboost-filesystem-dev package
velomatt f9d9152
Add additional includes needed for gcc 10+
velomatt 5706990
Add Ubuntu 22.04 as supported OS
velomatt b15b5e6
Update dependencies and enhance docker build
velomatt 74a8016
Install CentOS deps after sed yum vault
velomatt 79dc58a
Streamline rhel deps
velomatt 55e2a35
Download sonar-scanner from env var
velomatt 7bc868d
Determine sonar scanner dir name from zip
velomatt cd1005b
Correct var name in comments
velomatt 112420e
Fix host compile issues with GCC 10+
velomatt e00f1f5
Improve README
velomatt 760dcd9
Minor formatting fix for consistency
velomatt 4395e37
Add docker build instructions to README
velomatt 2642327
Add workdir to dockerfiles
velomatt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,28 @@ | ||
#! /usr/bin/env bash | ||
# shellcheck source=/dev/null | ||
set -e | ||
|
||
# Path variables | ||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
if [[ -e /etc/os-release ]]; then | ||
source /etc/os-release | ||
else | ||
ID=unknown | ||
fi | ||
|
||
# Default paths in case they are not exported automatically | ||
export PATH=$PATH:/usr/local/bin:/usr/local/sbin | ||
|
||
for id in $ID $ID_LIKE; do | ||
if [[ -e $SCRIPT_DIR/os/$id.sh ]]; then | ||
echo "os: $id" | ||
source "$SCRIPT_DIR/os/$id.sh" | ||
source "$SCRIPT_DIR/os/common.sh" | ||
exit 0 | ||
fi | ||
done | ||
|
||
printf "Non-supported distribution detected: %s\n" "$ID" >&2 | ||
echo "Aborting!" | ||
exit 1 |
This file contains hidden or 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 @@ | ||
rocky.sh |
This file contains hidden or 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,44 @@ | ||
#! /usr/bin/env bash | ||
set -e | ||
|
||
# Path variables | ||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
REQUIREMENTS=$(realpath "$SCRIPT_DIR/../python/requirements.txt") | ||
|
||
# Upgrade python3 pip to latest | ||
python3 -m pip install pip --upgrade | ||
|
||
# Install python modules from requirements.txt | ||
PIP_ARGS=() | ||
PIP_ARGS+=("-r") | ||
PIP_ARGS+=("$REQUIREMENTS") | ||
|
||
# Optimizations for Docker build | ||
if [[ $DOCKER ]] | ||
then | ||
PIP_ARGS+=("--no-cache-dir") | ||
fi | ||
|
||
# Install python modules from requirements.txt via pip | ||
INSTALL_STRING="python3 -m pip install ${PIP_ARGS[*]}" | ||
echo "executing command: $INSTALL_STRING" | ||
eval "$INSTALL_STRING" | ||
|
||
# Set git config if not already set | ||
for CONFIG in name email | ||
do | ||
if git config --list | grep "user.$CONFIG" | ||
then | ||
echo "git user.$CONFIG is configured." | ||
else | ||
echo "WARNING: git user.$CONFIG is not configured. Setting a temporary user.$CONFIG." | ||
echo "You should set a proper git "user.$CONFIG" with command: git config --global user.$CONFIG <<your-details>>" | ||
git config --global user.$CONFIG "[email protected]" | ||
fi | ||
done | ||
|
||
# Set git safe.directory globally if docker | ||
if [[ $DOCKER ]] | ||
then | ||
git config --global --add safe.directory '*' | ||
fi |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of pushing back we just need to access cnt_cache[i].