Skip to content

Commit

Permalink
* configs
Browse files Browse the repository at this point in the history
  • Loading branch information
MRIIOT committed Feb 28, 2022
1 parent ccf99c0 commit aad808a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.ARM
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
RUN mkdir -p /etc/fanuc
COPY docker/config.yml /etc/fanuc
COPY docker/nlog.config /etc/fanuc
COPY docker/config-example.yml /etc/fanuc/nlog.config
COPY docker/nlog-example-linux.config /etc/fanuc/nlog.config

ENTRYPOINT ["dotnet", "fanuc.dll", "--nlog", "/etc/fanuc/nlog.config", "--config", "/etc/fanuc/config.yml"]
4 changes: 2 additions & 2 deletions Dockerfile.LINUX64
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
RUN mkdir -p /etc/fanuc
COPY docker/config.yml /etc/fanuc
COPY docker/nlog.config /etc/fanuc
COPY docker/config-example.yml /etc/fanuc/config.yml
COPY docker/nlog-example-linux.config /etc/fanuc/nlog.yml

ENTRYPOINT ["dotnet", "fanuc.dll", "--nlog", "/etc/fanuc/nlog.config", "--config", "/etc/fanuc/config.yml"]
22 changes: 22 additions & 0 deletions docker/nlog-example-linux.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- XSD manual extracted from package NLog.Schema: https://www.nuget.org/packages/NLog.Schema-->
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xsi:schemaLocation="NLog NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
autoReload="true"
internalLogFile="/etc/fanuc/driver-internal.log"
internalLogLevel="Info" >

<!-- the targets to write to -->
<targets>
<!-- write logs to file -->
<target xsi:type="File" name="fileTarget" fileName="/etc/fanuc/driver.log"
layout="${date}|${level:uppercase=true}|${message} ${exception:format=tostring}|${logger}|${all-event-properties}" />
<target xsi:type="Console" name="consoleTarget"
layout="${date}|${level:uppercase=true}|${message} ${exception:format=tostring}|${logger}|${all-event-properties}" />
</targets>

<!-- rules to map from logger name to target -->
<rules>
<logger name="*" minlevel="INFO" writeTo="fileTarget,consoleTarget" />
</rules>
</nlog>
File renamed without changes.

0 comments on commit aad808a

Please sign in to comment.