Skip to content

Commit

Permalink
Add better docker support and documentation (TrinityCore#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellingtonsantos authored Dec 27, 2022
1 parent dbf272d commit a9e3e83
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ RUN dotnet build -c Release
FROM mcr.microsoft.com/dotnet/runtime:7.0
WORKDIR /app
COPY --from=build /src/WowPacketParser/bin/Release .
ENTRYPOINT ["dotnet", "WowPacketParser.dll"]
COPY --chmod=755 ./docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ It is possible run WPP on Docker using the `trinitycore/wpp` image.

To build image:
```
docker build . -t trinitycore/wpp
DOCKER_BUILDKIT=1 docker build . -t trinitycore/wpp
```

To configure:
Expand All @@ -72,7 +72,7 @@ Copy WowPacketParser/App.config as template and edit as your needs.
To run:

```
docker run -v /place/where/sniffs/are/kept:/sniffs -v App.config:/app/WowPacketparser.dll.config trinitycore/wpp /sniffs/sniffname.pkt
docker run -it --rm -v /place/where/sniffs/are/kept:/sniffs -v /full/path/App.config:/app/WowPacketParser.dll.config trinitycore/wpp /sniffs/sniffname.pkt
```

*/place/where/sniffs/are/kept* should your local directory containing the .pkt file and *sniffname.pkt* the file to be parsed.
Expand Down
4 changes: 4 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

cd $(dirname "$1")
/app/WowPacketParser "$1"

0 comments on commit a9e3e83

Please sign in to comment.