Skip to content

Commit 7ed5549

Browse files
committed
Add OPC-DA-Client to demo docker.
1 parent b1dcef9 commit 7ed5549

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

demo-docker/docker-compose.yaml

+26-3
Original file line numberDiff line numberDiff line change
@@ -308,14 +308,37 @@ services:
308308
container_name: jsdemo_dnp3_client_wine
309309
#dpkg --add-architecture i386 && apt update && apt install -y xvfb wget libfreetype6 wine wine32:i386 && cd /root &&
310310
#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 &&
312312
export WINEDEBUG=-all &&
313313
rm -rf /tmp/.X0-lock && (Xvfb :0 -screen 0 1024x768x16 &) &&
314314
wget -nc https://download.visualstudio.microsoft.com/download/pr/3c01bbe6-a49d-468f-8335-f195588f582f/b935469e8480e611eae4d79b2e51965e/dotnet-runtime-6.0.33-win-x64.exe ;
315315
wget -nc https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks ;
316-
chmod +x winetricks &&
316+
sh ./winetricks win10 &&
317317
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 "
319342
restart: unless-stopped
320343
volumes:
321344
- ./conf:/conf

0 commit comments

Comments
 (0)