-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating docker file for temperature Sensor. (#927)
- Loading branch information
1 parent
54dccb0
commit a9474e0
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
edge-modules/SimulatedTemperatureSensor/docker/linux/arm64v8/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ARG base_tag=1.0.0-preview010-linux-arm64v8 | ||
FROM azureiotedge/azureiotedge-module-base:${base_tag} | ||
|
||
ARG EXE_DIR=. | ||
|
||
ENV MODULE_NAME "SimulatedTemperatureSensor.dll" | ||
|
||
WORKDIR /app | ||
|
||
COPY $EXE_DIR/ ./ | ||
|
||
USER moduleuser | ||
|
||
CMD echo "$(date --utc +"[%Y-%m-%d %H:%M:%S %:z]"): Starting Module" && \ | ||
exec /usr/bin/dotnet SimulatedTemperatureSensor.dll |
6 changes: 6 additions & 0 deletions
6
edge-modules/SimulatedTemperatureSensor/docker/linux/arm64v8/base/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ARG base_tag=3.0-runtime-bionic-arm64v8 | ||
FROM microsoft/dotnet:${base_tag} | ||
|
||
# Add an unprivileged user account for running the module | ||
RUN useradd -ms /bin/bash moduleuser | ||
USER moduleuser |