Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/docker_build_tpls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ jobs:
# SPEC: "~pygeosx~openmp cuda_arch=86 %gcc@10.1.0 ^cuda@12.4.0+allow-unsupported-compilers"
# INSTALL_DIR_ROOT: /oak/stanford/groups/tchelepi/geos-sherlock/GPU
# RUNS_ON: ubuntu-latest
- name: Ubuntu (24.04, amdclang 19 + rocm 6.4.3)
DOCKER_REPOSITORY: geosx/ubuntu24.04-amdclang19.0.0-rocm6.4.3
TPL_DOCKERFILE: docker/tpl-ubuntu-hip.Dockerfile
DOCKER_ROOT_IMAGE: rocm/dev-ubuntu-24.04:6.4.3
RUNS_ON: streak2
NPROC: 8
DOCKER_RUN_ARGS: "--cpus=8 --memory=128g -v /etc/pki/tls/certs/ca-bundle.crt:/etc/pki/tls/certs/ca-bundle.crt:ro -v /etc/pki/tls/certs/ca-bundle.crt:/certs/ca-bundle.crt:ro"

steps:
- name: Checkout
Expand All @@ -88,7 +95,7 @@ jobs:
lfs: true

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4

- name: Print environment
run: printenv
Expand All @@ -99,8 +106,15 @@ jobs:
# 1. Copy the host's CA bundle into the Docker build context
cp /etc/pki/tls/certs/ca-bundle.crt ./ca-bundle.crt

# 2. Inject the COPY and update-ca-trust commands right before dnf runs
sed -i '/RUN dnf clean all/i COPY ca-bundle.crt /etc/pki/ca-trust/source/anchors/ca-bundle.crt\nRUN update-ca-trust extract' ${{ matrix.TPL_DOCKERFILE }}
# 2. Inject distro-specific trust-store setup into the Dockerfile.
if grep -q 'RUN dnf clean all' "${{ matrix.TPL_DOCKERFILE }}"; then
sed -i '/RUN dnf clean all/i COPY ca-bundle.crt /etc/pki/ca-trust/source/anchors/ca-bundle.crt\nRUN update-ca-trust extract' "${{ matrix.TPL_DOCKERFILE }}"
elif grep -q 'apt-get update' "${{ matrix.TPL_DOCKERFILE }}"; then
perl -0pi -e 's/(RUN .*?apt-get update)/COPY ca-bundle.crt \/usr\/local\/share\/ca-certificates\/host-ca.crt\nRUN update-ca-certificates\n\n$1/s' "${{ matrix.TPL_DOCKERFILE }}"
else
echo "Could not find a CA-injection hook in ${{ matrix.TPL_DOCKERFILE }}"
exit 1
fi

- name: Run the docker build docker script
env:
Expand Down
3 changes: 2 additions & 1 deletion .uberenv_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"spack_commit": "2e2169d5282d166f63e3ee4db8d4446c43cefa8a",
"spack_commit_note": "v1.1.1 (Jan 14th 2026)",
"spack_packages_commit": "3dd98680871078353a28ee508fa76c7554f918fa",
"spack_packages_note": "Feb 25th 2026"
"spack_packages_note": "Feb 25th 2026",
"spack_setup_clingo": 0
}
Loading
Loading