Skip to content

Commit 2e102af

Browse files
authored
avoid ./ in docker container - use better /app (#88)
* avoid ./ in docker container - use better /app * fix local_config * impact on container name change
1 parent 26de466 commit 2e102af

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/ci_cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ jobs:
9292
docker-compose up -d
9393
cd tests # so we're testing the install, not local
9494
pytest -vx
95-
docker kill pyoptics_speos-rpc
96-
docker rm pyoptics_speos-rpc
95+
docker kill optics_speos-rpc
96+
docker rm optics_speos-rpc
9797
env:
9898
LICENSE_SERVER: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}
9999

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ And test configuration file `<tests/local_config.json>`_ must be updated to use
120120
121121
{
122122
"SpeosServerOnDocker": false,
123-
"SpeosContainerName" : "pyoptics_speos-rpc",
123+
"SpeosContainerName" : "optics_speos-rpc",
124124
"SpeosServerPort": 50051
125125
}
126126

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
version: "3.4"
22
services:
3-
pyoptics_speos-rpc:
3+
optics_speos-rpc:
44
image: ghcr.io/pyansys/pyoptics/speos-rpc:2023.2.0.305
5-
container_name: pyoptics_speos-rpc
5+
container_name: optics_speos-rpc
66
ports:
77
- "50051:50051"
88
environment:
99
- SPEOS_LOG_LEVEL=2
1010
- ANSYSLMD_LICENSE_FILE=$LICENSE_SERVER
11-
entrypoint: ./SpeosRPC_Server.x
11+
entrypoint: /app/SpeosRPC_Server.x
1212
volumes:
1313
- type: bind
1414
source: ./tests/assets

tests/local_config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"SpeosServerOnDocker": true,
3-
"SpeosContainerName" : "pyoptics_speos-rpc",
3+
"SpeosContainerName" : "optics_speos-rpc",
44
"SpeosServerPort": 50051
55
}

0 commit comments

Comments
 (0)