@@ -308,14 +308,37 @@ services:
308
308
container_name : jsdemo_dnp3_client_wine
309
309
# dpkg --add-architecture i386 && apt update && apt install -y xvfb wget libfreetype6 wine wine32:i386 && cd /root &&
310
310
# apt update && apt install -y xvfb wget libfreetype6 wine && cd /root &&
311
- command : sh -c "export DISPLAY=:0.0 && cd /root &&
311
+ command : sh -c "export DISPLAY=:0.0 && cd /jsonscada_bin &&
312
312
export WINEDEBUG=-all &&
313
313
rm -rf /tmp/.X0-lock && (Xvfb :0 -screen 0 1024x768x16 &) &&
314
314
wget -nc https://download.visualstudio.microsoft.com/download/pr/3c01bbe6-a49d-468f-8335-f195588f582f/b935469e8480e611eae4d79b2e51965e/dotnet-runtime-6.0.33-win-x64.exe ;
315
315
wget -nc https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks ;
316
- chmod +x winetricks &&
316
+ sh ./ winetricks win10 &&
317
317
wine dotnet-runtime-6.0.33-win-x64.exe /q &&
318
- wine ../jsonscada_bin/Dnp3Client.exe "
318
+ wine Dnp3Client.exe "
319
+ restart : unless-stopped
320
+ volumes :
321
+ - ./conf:/conf
322
+ - ./bin_win:/jsonscada_bin
323
+ links :
324
+ - jsdemo_mongorsn1
325
+ networks :
326
+ - jsdemo_net
327
+
328
+ # OPC-DA client: requires wine as it is currently Windows-only
329
+ opcda_client_wine :
330
+ image : scottyhardy/docker-wine:latest
331
+ container_name : jsdemo_opcda_client_wine
332
+ # dpkg --add-architecture i386 && apt update && apt install -y xvfb wget libfreetype6 wine wine32:i386 && cd /root &&
333
+ # apt update && apt install -y xvfb wget libfreetype6 wine && cd /root &&
334
+ command : sh -c "export DISPLAY=:0.0 && cd /jsonscada_bin &&
335
+ export WINEDEBUG=-all &&
336
+ rm -rf /tmp/.X0-lock && (Xvfb :0 -screen 0 1024x768x16 &) &&
337
+ wget -nc https://download.visualstudio.microsoft.com/download/pr/3c01bbe6-a49d-468f-8335-f195588f582f/b935469e8480e611eae4d79b2e51965e/dotnet-runtime-6.0.33-win-x64.exe ;
338
+ wget -nc https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks ;
339
+ sh ./winetricks win10 &&
340
+ wine dotnet-runtime-6.0.33-win-x64.exe /q &&
341
+ wine OPC-DA-Client.exe "
319
342
restart : unless-stopped
320
343
volumes :
321
344
- ./conf:/conf
0 commit comments