Skip to content

ci: use own DPF standalone Docker image reference in workflows #3882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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
1 change: 1 addition & 0 deletions .ci/collect_mapdl_logs_remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ echo "Collecting local build logs..."

echo "Collecting docker run log..."
cp log.txt ./"$LOG_NAMES"/log.txt || echo "MAPDL run docker log not found."
cp log_dpf.txt ./"$LOG_NAMES"/log_dpf.txt || echo "DPF run docker log not found."

echo "Copying docker launch log..."
cp mapdl_launch_0.log ./"$LOG_NAMES"/mapdl_launch_0.log || echo "MAPDL launch docker log not found."
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
PYANSYS_OFF_SCREEN: True
BUILD_CHEATSHEET: '${{ inputs.build_cheatsheet }}'
MAPDL_IMAGE_VERSION_DOCS_BUILD: v24.2-ubuntu-student
DPF_DOCKER_IMAGE: ghcr.io/ansys/mapdl:v25.2-ubuntu-dpf-standalone
MAPDL_PACKAGE: ghcr.io/ansys/mapdl
PYMAPDL_START_INSTANCE: FALSE
PYMAPDL_PORT: 21000 # default won't work on GitHub runners
Expand Down Expand Up @@ -110,7 +111,7 @@ jobs:
- name: "DPF server activation"
shell: bash
run: |
$(docker pull ghcr.io/ansys/dpf-core:22.2dev && docker run -d --name dpfserver -p ${{ env.DPF_PORT }}:50052 ghcr.io/ansys/dpf-core:22.2dev && echo "DPF Server active on port ${{ env.DPF_PORT }}.") &
$(docker pull $DPF_DOCKER_IMAGE && docker run -d --name dpfserver -p ${{ env.DPF_PORT }}:50052 $DPF_DOCKER_IMAGE && echo "DPF Server active on port ${{ env.DPF_PORT }}.") &

- name: "Getting files change filters"
uses: dorny/paths-filter@v3
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ jobs:
PYMAPDL_PORT2: 21001 # for the pool testing and default won't work on GitHub runners
PYMAPDL_DB_PORT: 21002 # default won't work on GitHub runners
PYMAPDL_DB_PORT2: 21003 # default won't work on GitHub runners
DPF_DOCKER_IMAGE: ghcr.io/ansys/mapdl:v25.2-ubuntu-dpf-standalone
DPF_PORT: 21004
DPF_START_SERVER: False
HAS_DPF: True
PYTEST_ARGUMENTS: '-vvv -rxXsa --color=yes --durations=30 --random-order --random-order-bucket=class --maxfail=10 --reruns 3 --reruns-delay 4 --cov=ansys.mapdl.core --cov-report=html --timeout=180 --profile-svg --profile'
MAIN_PYTHON_VERSION: '3.12'
MAPDL_PACKAGE: ghcr.io/ansys/mapdl
Expand Down Expand Up @@ -134,7 +136,7 @@ jobs:
- name: "DPF server activation"
shell: bash
run: |
$(docker pull ghcr.io/ansys/dpf-core:22.2dev && docker run -d --name dpfserver -p ${{ env.DPF_PORT }}:50052 ghcr.io/ansys/dpf-core:22.2dev && echo "DPF Server active on port ${{ env.DPF_PORT }}.") &
docker pull $DPF_DOCKER_IMAGE && docker run -d --name dpfserver -p ${{ env.DPF_PORT }}:50052 $DPF_DOCKER_IMAGE && echo "DPF Server active on port ${{ env.DPF_PORT }}." > log_dpf.txt &

- name: "Getting files change filters"
uses: dorny/paths-filter@v3
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/3882.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ci: use own DPF standalone Docker image reference in workflows
Loading