Skip to content

Commit 464e80c

Browse files
ci: backwards compatibility changes on Docker images (#2256)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 57587fa commit 464e80c

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/backwards_compatibility.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,17 @@ jobs:
9292
docker rm $dockerContainers
9393
}
9494
95+
- name: Define SERVER_ENDPOINT variable if needed
96+
if: matrix.backend-version == '24.1' || matrix.backend-version == '24.2' || matrix.backend-version == '25.1'
97+
run: |
98+
$env:SERVER_ENDPOINT = "-e [email protected]"
99+
echo "SERVER_ENDPOINT variable set to: $env:SERVER_ENDPOINT"
100+
echo "SERVER_ENDPOINT=$env:SERVER_ENDPOINT" | Out-File -FilePath $env:GITHUB_ENV -Append
101+
95102
- name: Start Geometry service and verify start
96103
run: |
97104
.\.venv\Scripts\Activate.ps1
98-
docker run --detach --name ${{ env.GEO_CONT_NAME }} -e LICENSE_SERVER=${{ env.ANSRV_GEO_LICENSE_SERVER }} -p ${{ env.ANSRV_GEO_PORT }}:50051 ${{ env.ANSRV_GEO_IMAGE }}:${{ matrix.image-tag }} ${{ secrets.TRANSPORT_MODE_SELECTION }}
105+
docker run --detach --name ${{ env.GEO_CONT_NAME }} -e LICENSE_SERVER=${{ env.ANSRV_GEO_LICENSE_SERVER }} ${{ env.SERVER_ENDPOINT }} -p ${{ env.ANSRV_GEO_PORT }}:50051 ${{ env.ANSRV_GEO_IMAGE }}:${{ matrix.image-tag }} ${{ secrets.TRANSPORT_MODE_SELECTION }}
99106
Start-Sleep -Seconds 10
100107
python -c "from ansys.geometry.core.connection.validate import validate; validate()"
101108
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Backwards compatibility changes on Docker images

docker/windows/dms/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN mkdir tmp_folder && \
2626

2727
# Defining environment variables
2828
ENV LICENSE_SERVER=""
29-
ENV SERVER_ENDPOINT="0.0.0.0:50051"
29+
ENV SERVER_ENDPOINT="50051@0.0.0.0"
3030
ENV ENABLE_TRACE=0
3131
ENV LOG_LEVEL=2
3232
ENV AWP_ROOT252=C:/app/unified

0 commit comments

Comments
 (0)