1
- version : ' 2.1'
2
-
3
1
# {json:scada} Docker Compilation for Linux x64 - (c) 2020-2024 - Ricardo L. Olsen
4
2
# Requires Internet connection!
5
3
@@ -47,17 +45,7 @@ services:
47
45
cd /src/libiec61850/dotnet/core/2.0/IEC61850.NET.core.2.0/ &&
48
46
rm -rf obj bin &&
49
47
cd /src/libiec61850 &&
50
- rm -rf .install &&
51
- cd /src/OPC-DA-Client/ &&
52
- dotnet publish --self-contained --runtime win-x64 -p:PublishReadyToRun=true -f net8.0-windows -c Release -o /publish_bin_win/ OPC-DA-Client.csproj &&
53
- rm -rf obj bin &&
54
- cd /src/dnp3/Dnp3Client/ &&
55
- dotnet publish --self-contained --runtime win-x64 -p:PublishReadyToRun=true -c Release -o /publish_bin_win/ &&
56
- rm -rf obj bin &&
57
- cp Dependencies/OpenSSL/*.dll /publish_bin_win/ "
58
-
59
- # NOTICE Dnp3Client is Windows-only, so it can only run in docker/linux using Wine.
60
-
48
+ rm -rf .install "
61
49
environment :
62
50
- DOTNET_CLI_TELEMETRY_OPTOUT=1
63
51
# command: tail -f /dev/null
@@ -67,10 +55,28 @@ services:
67
55
- ../src/OPC-UA-Client:/src/OPC-UA-Client
68
56
- ../src/libplctag:/src/libplctag
69
57
- ../demo-docker/bin:/publish_bin
70
- - ../src/dnp3:/src/dnp3
71
- - ../src/OPC-DA-Client:/src/OPC-DA-Client
72
58
- ../src/opcdaaehda-client-solution-net:/src/opcdaaehda-client-solution-net
59
+
60
+ # NOTICE Dnp3Client and OPC-DA-Client are Windows-only, so it can only run in docker/linux using Wine.
61
+ dotnet_compile_win :
62
+ image : mcr.microsoft.com/dotnet/sdk:6.0
63
+ container_name : js_dotnet_compile
64
+ command : sh -c "cd /src/OPC-DA-Client/ &&
65
+ dotnet publish --self-contained --runtime win-x64 -p:PublishReadyToRun=false -f net6.0-windows -c Release -o /publish_bin_win/ OPC-DA-Client.csproj &&
66
+ rm -rf obj bin &&
67
+ cd /src/dnp3/Dnp3Client/ &&
68
+ dotnet publish --self-contained --runtime win-x64 -p:PublishReadyToRun=false -c Release -o /publish_bin_win/ Dnp3Client.csproj &&
69
+ rm -rf obj bin &&
70
+ cp Dependencies/OpenSSL/*.dll /publish_bin_win/ "
71
+ environment :
72
+ - DOTNET_CLI_TELEMETRY_OPTOUT=1
73
+ # command: tail -f /dev/null
74
+ volumes :
73
75
- ../demo-docker/bin_win:/publish_bin_win
76
+ - ../src/dnp3:/src/dnp3
77
+ - ./Dnp3Client.csproj:/src/dnp3/Dnp3Client/Dnp3Client.csproj
78
+ - ../src/OPC-DA-Client:/src/OPC-DA-Client
79
+ - ./OPC-DA-Client.csproj:/src/OPC-DA-Client/OPC-DA-Client.csproj
74
80
75
81
calculations_compile :
76
82
image : golang:alpine
@@ -189,6 +195,6 @@ services:
189
195
mqtt_sparkplug_update :
190
196
image : node:20-alpine
191
197
container_name : js_mqtt_sparkplug_update
192
- command : sh -c "apk add --update npm && npm install -g npm && cd /mqtt-sparkplug && npm install && chmod -R 777 node_modules "
198
+ command : sh -c "apk add --update npm && npm install -g npm && cd /mqtt-sparkplug && npm install"
193
199
volumes :
194
200
- ../src/mqtt-sparkplug:/mqtt-sparkplug
0 commit comments