-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UGRID-4/UGRID-8/UGRID-12: Docker Linux build (#19)
- Loading branch information
1 parent
05f30e8
commit b18b9ff
Showing
17 changed files
with
473 additions
and
146 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM quay.io/pypa/manylinux_2_28_x86_64:2024-07-01-8dac23b | ||
|
||
WORKDIR /workspace | ||
|
||
COPY . /workspace/ | ||
|
||
RUN chmod +x /workspace/dnf_install.sh | ||
RUN /workspace/dnf_install.sh | ||
|
||
ARG THIRD_PARTY_WORK_DIR=/app/third_party/work | ||
ARG THIRD_PARTY_INSTALL_DIR=/app/third_party/install | ||
ENV THIRD_PARTY_INSTALL_DIR=${THIRD_PARTY_INSTALL_DIR} | ||
|
||
RUN chmod +x /workspace/install_netcdf_cxx4.sh | ||
RUN /workspace/install_netcdf_cxx4.sh \ | ||
--work_dir ${THIRD_PARTY_WORK_DIR} \ | ||
--install_dir ${THIRD_PARTY_INSTALL_DIR} \ | ||
--clean | ||
|
||
ENV CLEAN_BUILD=false | ||
|
||
ENTRYPOINT ["bash", "/workspace/scripts/docker/main.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,29 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
source error.sh | ||
|
||
dnf update -y | ||
|
||
dev_toolset="gcc-toolset-12" | ||
|
||
packages=( | ||
"git" | ||
"cmake" | ||
"boost-devel" | ||
"m4" | ||
"perl" | ||
"openssl" | ||
"libcurl-devel" | ||
${dev_toolset} | ||
"doxygen" | ||
) | ||
|
||
for package in "${packages[@]}"; do | ||
dnf install -y "${package}" || error "[dnf] Failed to install ${package}" | ||
done | ||
|
||
scl enable "${dev_toolset}" bash || error "[scl] Failed to enable ${dev_toolset}" | ||
|
||
dnf clean all |
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,7 @@ | ||
#!/bin/sh | ||
|
||
error() { | ||
local exit_code="$?" | ||
echo "$(basename "$0")": "$1" | ||
exit $exit_code | ||
} |
Oops, something went wrong.