Skip to content

Commit

Permalink
Merge pull request #12887 from KratosMultiphysics/ci/update-docker-ro…
Browse files Browse the repository at this point in the history
…cky-image

[CI] Adding Rocky image build to CI
  • Loading branch information
loumalouomega authored Dec 17, 2024
2 parents ec51824 + 9efea02 commit 1a76a15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_docker_images_for_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ jobs:
# only push the new image when the changes are merged to master
run: docker push kratosmultiphysics/kratos-image-ci-ubuntu-22-04

build-docker-centos:
build-docker-rocky:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file scripts/docker_files/docker_file_ci_centos_7/DockerFile --tag kratosmultiphysics/kratos-image-ci-centos7
run: docker build . --file scripts/docker_files/docker_file_ci_rockylinux8/DockerFile --tag kratosmultiphysics/kratos-image-ci-rocky8
- name: Docker Login
uses: azure/docker-login@v2
with:
Expand All @@ -61,4 +61,4 @@ jobs:
- name: Publish the Docker image
if: ${{ github.event_name == 'push'}}
# only push the new image when the changes are merged to master
run: docker push kratosmultiphysics/kratos-image-ci-centos7
run: docker push kratosmultiphysics/kratos-image-ci-rocky8
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ USER root

ENV HOME /root

# install python3.8.10
# Install python3.8.10
RUN dnf update -y && \
dnf groupinstall "Development Tools" -y && \
dnf install -y wget openssl-devel bzip2-devel libffi-devel && \
Expand All @@ -20,14 +20,19 @@ ENV PYTHON_EXECUTABLE /usr/local/bin/python3.8

RUN python3.8 -m pip install numpy sympy scipy parameterized

# install build utils
# Install build utils
RUN dnf update -y && dnf install -y \
--enablerepo=devel ninja-build \
cmake \
gcc-gfortran \
--enablerepo=devel blas-devel \
--enablerepo=devel lapack-devel

# Install Boost libraries
RUN dnf update -y && dnf install -y \
boost-devel \
boost-static

CMD [ "/bin/bash" ]

WORKDIR $HOME
WORKDIR $HOME

0 comments on commit 1a76a15

Please sign in to comment.