forked from y-scope/clp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: Add support for building on Centos Stream 9 and drop support fo…
…r building on Centos 7.4 (fixes y-scope#521). (y-scope#528) Co-authored-by: Lin Zhihao <[email protected]>
- Loading branch information
1 parent
a3a3f35
commit decdc2d
Showing
24 changed files
with
129 additions
and
166 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
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 boost, so we install it beforehand. | ||
"${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.