-
Notifications
You must be signed in to change notification settings - Fork 73
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
core: Add support for building on Centos Stream 9 and drop support for building on Centos 7.4 (fixes #521). #528
Merged
Merged
Changes from 26 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
e3e6451
Link reducer-server against boost::system and boost::thread.
kirkrodrigues 98e9c86
Upgrade to mongocxx 3.10.2 which installs mongoc by itself.
kirkrodrigues 0269ad1
Add libboost-thread to Jammy container image.
kirkrodrigues fe2d368
Link against static mongoc.
kirkrodrigues cf1e02e
Fix typo.
kirkrodrigues 994bcb0
Add shared library build to workflow checks.
kirkrodrigues 58492b6
Remove boost::thread; Link reducer-server against Threads::Threads.
kirkrodrigues e826830
Remove obsolete mongoc installation script.
kirkrodrigues a2e5d81
Touch-up comment.
kirkrodrigues 1e65bdf
Don't nuke build directory between builds.
kirkrodrigues f9fe9d4
Replace build-and-run-unit-tests shell script with Python script; Par…
kirkrodrigues d99c879
Use flags that name the matrix jobs nicely; Fix typo.
kirkrodrigues cdacf35
Define functions before use.
kirkrodrigues 58cb7e1
Try ./
kirkrodrigues 780b73b
Set workflow job names explicitly; Refactoring.
kirkrodrigues e4eadc9
Try not comparing against 'true'.
kirkrodrigues 631d320
core: Replace Centos 7.4 container image with Centos Stream 9 contain…
kirkrodrigues fdefeb5
Fix typo.
kirkrodrigues c822f58
Use lowercase names for stages.
kirkrodrigues c9670f7
Fix remaining references to Centos 7.4.
kirkrodrigues 2b21594
Install task in container image.
kirkrodrigues 41c21ef
Use mysql.h rather than mariadb/mysql.h.
kirkrodrigues e7b00c1
Set continue-on-error: true so failure of shared/static lib build doe…
kirkrodrigues f433128
Merge branch 'fix-526' into fix-521
kirkrodrigues 34755df
Update .clang-format.
kirkrodrigues a0b03ef
Merge branch 'main' into fix-521
kirkrodrigues ebd64b1
Update components/core/tools/scripts/lib_install/centos-stream-9/inst…
kirkrodrigues 0676df4
CMakeLists.txt: Fix incorrect line wrapping.
kirkrodrigues 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 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
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
22 changes: 22 additions & 0 deletions
22
components/core/tools/docker-images/clp-env-base-centos-stream-9/Dockerfile
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,22 @@ | ||
FROM dokken/centos-stream-9 AS base | ||
|
||
WORKDIR /root | ||
|
||
RUN mkdir -p ./tools/scripts/lib_install | ||
ADD ./tools/scripts/lib_install ./tools/scripts/lib_install | ||
|
||
RUN ./tools/scripts/lib_install/centos-stream-9/install-all.sh | ||
|
||
# NOTE: | ||
# 1. `task` doesn't have an apt/dnf package so we use its install script. | ||
# 2. We don't want to install it using `install-prebuilt-packages.sh` since users may use that on | ||
# their own machines and it would change their environment in a way that can't easily be undone. | ||
RUN sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin | ||
|
||
# Remove cached files | ||
RUN dnf clean all \ | ||
&& rm -rf /tmp/* /var/tmp/* | ||
|
||
# Flatten the image | ||
FROM scratch | ||
COPY --from=base / / |
15 changes: 15 additions & 0 deletions
15
components/core/tools/docker-images/clp-env-base-centos-stream-9/build.sh
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,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Exit on any error | ||
set -e | ||
|
||
# Error on undefined variable | ||
set -u | ||
|
||
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
component_root="${script_dir}/../../../" | ||
|
||
docker build \ | ||
--tag clp-core-dependencies-x86-centos-stream-9:dev \ | ||
"$component_root" \ | ||
--file "${script_dir}/Dockerfile" |
39 changes: 0 additions & 39 deletions
39
components/core/tools/docker-images/clp-env-base-centos7.4/Dockerfile
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
components/core/tools/docker-images/clp-env-base-centos7.4/build.sh
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
components/core/tools/docker-images/clp-env-base-centos7.4/setup-scripts/git
This file was deleted.
Oops, something went wrong.
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
18 changes: 18 additions & 0 deletions
18
components/core/tools/scripts/lib_install/centos-stream-9/install-packages-from-source.sh
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,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Exit on any error | ||
set -e | ||
|
||
# Error on undefined variable | ||
set -u | ||
|
||
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
lib_install_scripts_dir="${script_dir}/.." | ||
|
||
# NOTE: The remaining installation scripts depend on and boost, so we install it beforehand. | ||
kirkrodrigues marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"${lib_install_scripts_dir}/install-boost.sh" 1.76.0 | ||
|
||
"${lib_install_scripts_dir}/fmtlib.sh" 8.0.1 | ||
"${lib_install_scripts_dir}/spdlog.sh" 1.9.2 | ||
"${lib_install_scripts_dir}/mongocxx.sh" 3.10.2 | ||
"${lib_install_scripts_dir}/msgpack.sh" 6.0.0 |
19 changes: 19 additions & 0 deletions
19
components/core/tools/scripts/lib_install/centos-stream-9/install-prebuilt-packages.sh
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,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Exit on any error | ||
set -e | ||
|
||
# Error on undefined variable | ||
set -u | ||
|
||
dnf install -y \ | ||
cmake \ | ||
gcc-c++ \ | ||
git \ | ||
java-11-openjdk \ | ||
libarchive-devel \ | ||
libcurl-devel \ | ||
libzstd-devel \ | ||
make \ | ||
mariadb-connector-c-devel \ | ||
openssl-devel |
34 changes: 0 additions & 34 deletions
34
components/core/tools/scripts/lib_install/centos7.4/install-packages-from-source.sh
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
components/core/tools/scripts/lib_install/centos7.4/install-prebuilt-packages.sh
This file was deleted.
Oops, something went wrong.
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
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.
Looking at line 132 in the same file, I feel this line wrapping is inappropriate.
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.
Sorry, my mistake.