Skip to content

Commit

Permalink
Fix docker compile script, remove bin&obj dirs to avoid conflict in s…
Browse files Browse the repository at this point in the history
…rc folders (dotnet).
  • Loading branch information
riclolsen committed Sep 15, 2024
1 parent 8844831 commit 0d0596e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions compile-docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ services:
dotnet build --self-contained --runtime linux-x64 -c Release -o /publish_bin/ &&
cd /src/lib60870.netcore/iec101client/ &&
dotnet publish --self-contained --runtime linux-x64 -p:PublishReadyToRun=true -c Release -o /publish_bin/ &&
rm -rf obj bin
rm -rf obj bin &&
cd /src/lib60870.netcore/iec101server/ &&
dotnet publish --self-contained --runtime linux-x64 -p:PublishReadyToRun=true -c Release -o /publish_bin/ &&
rm -rf obj bin
rm -rf obj bin &&
cd /src/lib60870.netcore/iec104client/ &&
dotnet publish --self-contained --runtime linux-x64 -p:PublishReadyToRun=true -c Release -o /publish_bin/ &&
rm -rf obj bin
rm -rf obj bin &&
cd /src/lib60870.netcore/iec104server/ &&
dotnet publish --self-contained --runtime linux-x64 -p:PublishReadyToRun=true -c Release -o /publish_bin/ &&
rm -rf obj bin
rm -rf obj bin &&
cd /src/lib60870.netcore/lib60870.netcore/
rm -rf obj bin
rm -rf obj bin &&
cd /src/OPC-UA-Client/ &&
dotnet publish --self-contained --runtime linux-x64 -p:PublishReadyToRun=true -c Release -o /publish_bin/ &&
rm -rf obj bin
rm -rf obj bin &&
cd /src/libplctag/libplctag.NET/src/libplctag &&
dotnet build --self-contained --runtime linux-x64 -c Release -o /publish_bin/ &&
cd /src/libplctag/PLCTagsClient &&
dotnet publish --self-contained --runtime linux-x64 -p:PublishReadyToRun=true -c Release -o /publish_bin/ &&
rm -rf obj bin
rm -rf obj bin &&
cd /src/libplctag/libplctag.NET/src/libplctag &&
rm -rf obj bin
rm -rf obj bin &&
apt-get update &&
apt-get -y install gcc make &&
cd /src/libiec61850 &&
Expand All @@ -43,15 +43,15 @@ services:
dotnet publish --no-self-contained --runtime linux-x64 -c Release IEC61850.NET.core.2.0 &&
cd iec61850_client &&
dotnet publish --no-self-contained --runtime linux-x64 -p:PublishReadyToRun=true -c Release -o /publish_bin/ &&
rm -rf obj bin
rm -rf obj bin &&
cd dotnet/core/2.0/IEC61850.NET.core.2.0 &&
rm -rf obj bin
rm -rf obj bin &&
cd /src/OPC-DA-Client/ &&
dotnet publish --self-contained --runtime win-x64 -p:PublishReadyToRun=true -f net8.0-windows -c Release -o /publish_bin_win/ OPC-DA-Client.csproj &&
rm -rf obj bin
rm -rf obj bin &&
cd /src/dnp3/Dnp3Client/ &&
dotnet publish --self-contained --runtime win-x64 -p:PublishReadyToRun=true -c Release -o /publish_bin_win/ &&
rm -rf obj bin
rm -rf obj bin &&
cp Dependencies/OpenSSL/*.dll /publish_bin_win/ "

# NOTICE Dnp3Client is Windows-only, so it can only run in docker/linux using Wine.
Expand Down

0 comments on commit 0d0596e

Please sign in to comment.