Skip to content

Commit

Permalink
Merge refs/heads/master into renovate/vstest-monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
cognite-bulldozer[bot] authored Aug 22, 2024
2 parents 03a0d9e + c79fea5 commit c85018e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
FROM mcr.microsoft.com/dotnet/runtime:8.0

VOLUME /config
VOLUME /logs
VOLUME /certificates

COPY /deploy /extractor

WORKDIR /extractor

COPY /config/config.remote.yml /config_remote/config.yml
COPY /config/opc.ua.net.extractor.Config.xml /config_remote

Expand All @@ -12,4 +16,11 @@ ENV OPCUA_CERTIFICATE_DIR="/certificates"
ENV OPCUA_OWN_CERTIFICATE_DIR="/certificates/pki/own"
ENV OPCUA_CERTIFICATE_SUBJECT="CN=Opcua-extractor, C=NO, S=Oslo, O=Cognite, DC=docker.opcua"

RUN mkdir -p /logs /certificates
RUN chmod -R a+rw /logs
RUN chmod -R a+rw /certificates

RUN groupadd -g 1000 extractor && useradd -m -u 1000 -g extractor extractor
USER extractor

ENTRYPOINT ["dotnet", "/extractor/OpcuaExtractor.dll"]
6 changes: 6 additions & 0 deletions Dockerfile.bridge
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@ WORKDIR /bridge

ENV MQTT_BRIDGE_CONFIG_DIR="/config"

RUN mkdir -p /logs
RUN chmod -R a+rw /logs

RUN groupadd -g 1000 extractor && useradd -m -u 1000 -g extractor extractor
USER extractor

ENTRYPOINT ["dotnet", "/bridge/MQTTCDFBridge.dll"]

0 comments on commit c85018e

Please sign in to comment.