-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new docker build with clang asan build recipe
- Loading branch information
Showing
11 changed files
with
91 additions
and
14 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
13 changes: 9 additions & 4 deletions
13
.../docker/alpinedav_ubuntu_20.04_rocm_6.0.0_devel_build_ascent_tpls/docker_uberenv_build.sh
100644 → 100755
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
scripts/ci/docker/alpinedav_ubuntu_22.04_devel_clang_build_ascent_tpls/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 @@ | ||
# Copyright (c) Lawrence Livermore National Security, LLC and other Ascent | ||
# Project developers. See top-level LICENSE AND COPYRIGHT files for dates and | ||
# other details. No copyright assignment is required to contribute to Ascent. | ||
|
||
ARG TAG_ARCH=x86_64 | ||
FROM alpinedav/ascent-devel:ubuntu-22.04-${TAG_ARCH} | ||
|
||
ENV TAG_ARCH ${TAG_ARCH} | ||
|
||
# obtain a copy of ascent source from host env, | ||
# which we use to call uberenv | ||
COPY ascent.docker.src.tar.gz / | ||
# extract | ||
RUN tar -xzf ascent.docker.src.tar.gz | ||
|
||
# copy spack build script in | ||
COPY docker_uberenv_build.sh docker_env_setup.sh / | ||
RUN chmod -R a+x /*.sh | ||
|
||
RUN /docker_uberenv_build.sh | ||
|
||
RUN /docker_env_setup.sh |
15 changes: 15 additions & 0 deletions
15
scripts/ci/docker/alpinedav_ubuntu_22.04_devel_clang_build_ascent_tpls/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 @@ | ||
#!/bin/bash | ||
# Copyright (c) Lawrence Livermore National Security, LLC and other Ascent | ||
# Project developers. See top-level LICENSE AND COPYRIGHT files for dates and | ||
# other details. No copyright assignment is required to contribute to Ascent. | ||
set -ev | ||
|
||
export REPO_NAME="ascent" | ||
export TAG_ARCH=`uname -m` | ||
export TAG_BASE=alpinedav/ascent-devel:ubuntu-22.04-clang-14-${TAG_ARCH}-build-ascent-tpls | ||
|
||
date | ||
|
||
python3 ../../../docker_build_and_tag.py ${REPO_NAME} ${TAG_ARCH} ${TAG_BASE} | ||
|
||
date |
7 changes: 7 additions & 0 deletions
7
scripts/ci/docker/alpinedav_ubuntu_22.04_devel_clang_build_ascent_tpls/docker_env_setup.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,7 @@ | ||
# create some helper scripts | ||
python ascent/scripts/gen_spack_env_script.py cmake mpi | ||
echo "git clone --recursive https://github.com/Alpine-DAV/ascent.git" > clone.sh | ||
chmod +x clone.sh | ||
|
||
# delete copy of source from host (ci will fetch new from repo) | ||
rm -rf ascent |
26 changes: 26 additions & 0 deletions
26
...ts/ci/docker/alpinedav_ubuntu_22.04_devel_clang_build_ascent_tpls/docker_uberenv_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,26 @@ | ||
#!/bin/bash | ||
set -ev | ||
|
||
export CMAKE_ARCH=`uname -m` | ||
|
||
if [[ ${CMAKE_ARCH} == "arm64" ]]; then | ||
export CMAKE_ARCH="aarch64" | ||
fi | ||
|
||
cmake_install_dir=/cmake-3.23.2-linux-${CMAKE_ARCH} | ||
if [ ! -d ${cmake_install_dir} ]; then | ||
# setup cmake in container | ||
curl -L https://github.com/Kitware/CMake/releases/download/v3.23.2/cmake-3.23.2-linux-${CMAKE_ARCH}.tar.gz -o cmake-3.23.2-linux-${CMAKE_ARCH}.tar.gz | ||
tar -xzf cmake-3.23.2-linux-${CMAKE_ARCH}.tar.gz | ||
fi | ||
|
||
export PATH=$PATH:/${cmake_install_dir}/bin/ | ||
|
||
export CFLAGS="-fsanitize=address" | ||
export CXXFLAGS="-fsanitize=address" | ||
|
||
# build tpls with helper script /w clang and | ||
chmod +x ascent/scripts/build_ascent/build_ascent.sh | ||
# bi | ||
env CXX=clang++ CC=clang enable_tests=OFF build_ascent=false ascent/scripts/build_ascent/build_ascent.sh | ||
|