Skip to content

Commit

Permalink
docker: alpine docker
Browse files Browse the repository at this point in the history
  • Loading branch information
tvandera committed Jul 4, 2024
1 parent d196233 commit 35f766e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
20 changes: 20 additions & 0 deletions ci/docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM alpine:3.19

RUN apk add \
binutils gcc g++ gfortran \
cmake ninja make \
wget curl util-linux tar \
git \
eigen-dev openblas-dev hdf5-dev boost-dev catch2-3 \
py3-pybind11-dev python3-dev py3-pip py3-pytest py3-parameterized py3-pytest-xdist

#install HighFive
RUN wget -O HighFive.tar.gz https://github.com/BlueBrain/HighFive/archive/v2.2.2.tar.gz && \
tar xzf HighFive.tar.gz && \
rm HighFive.tar.gz && \
cd HighFive* && \
cmake -S . -B build -GNinja .. -DHIGHFIVE_USE_BOOST=OFF && \
cmake --build build && \
cmake --install build && \
cd ../.. && \
rm -r HighFive*
8 changes: 5 additions & 3 deletions ci/docker/build_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ git config --global --add safe.directory /smurff/.git
git clone /smurff

cd smurff
cmake -S . -B build
cmake -S . -B build -GNinja
cmake --build build
cmake --install build
smurff --bist

python3 -m pip install .
python3 -m venv .venv
. .venv/bin/activate
pip install -v .

smurff --bist
pytest-3 -n auto -v python/test

0 comments on commit 35f766e

Please sign in to comment.