Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
[update] upgrade container runtime to be compatible with iotedge 1.0.5.
Browse files Browse the repository at this point in the history
[update] update container base images to dotnet 2.1
[new] add windows arm32v7 container output
  • Loading branch information
Yu-Ping Huang (ManpowerGroup Taiwan) committed Jan 28, 2019
1 parent 482c568 commit c237eed
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 12 deletions.
6 changes: 3 additions & 3 deletions iotedgeSQLite/modules/iotedgeSQLite/Dockerfile.amd64
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM microsoft/dotnet:2.0-sdk AS build-env
FROM microsoft/dotnet:2.1-sdk AS build-env
WORKDIR /app

COPY *.csproj ./
Expand All @@ -7,12 +7,12 @@ RUN dotnet restore
COPY . ./
RUN dotnet publish -c Release -o out

FROM microsoft/dotnet:2.0-runtime
FROM microsoft/dotnet:2.1-runtime
WORKDIR /app

COPY --from=build-env /app/out ./

RUN useradd -ms /bin/bash moduleuser
USER moduleuser

ENTRYPOINT ["dotnet", "iotedgeSQLite.dll"]
CMD ["dotnet", "iotedgeSQLite.dll"]
4 changes: 2 additions & 2 deletions iotedgeSQLite/modules/iotedgeSQLite/Dockerfile.amd64.debug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM microsoft/dotnet:2.0-runtime-stretch AS base
FROM microsoft/dotnet:2.1-runtime-stretch AS base

RUN apt-get update && \
apt-get install -y --no-install-recommends unzip procps && \
Expand All @@ -8,7 +8,7 @@ RUN useradd -ms /bin/bash moduleuser
USER moduleuser
RUN curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg

FROM microsoft/dotnet:2.0-sdk AS build-env
FROM microsoft/dotnet:2.1-sdk AS build-env
WORKDIR /app

COPY *.csproj ./
Expand Down
2 changes: 1 addition & 1 deletion iotedgeSQLite/modules/iotedgeSQLite/Dockerfile.arm32v7
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ COPY --from=build-env /app/out ./
RUN useradd -ms /bin/bash moduleuser
USER moduleuser

ENTRYPOINT ["dotnet", "iotedgeSQLite.dll"]
CMD ["dotnet", "iotedgeSQLite.dll"]
6 changes: 3 additions & 3 deletions iotedgeSQLite/modules/iotedgeSQLite/Dockerfile.windows-amd64
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM microsoft/dotnet:2.0-sdk AS build-env
FROM microsoft/dotnet:2.1-sdk AS build-env
WORKDIR /app

COPY *.csproj ./
Expand All @@ -7,7 +7,7 @@ RUN dotnet restore
COPY . ./
RUN dotnet publish -c Release -o out

FROM microsoft/dotnet:2.0-runtime
FROM microsoft/dotnet:2.1.6-runtime-nanoserver-1809
WORKDIR /app
COPY --from=build-env /app/out ./
ENTRYPOINT ["dotnet", "iotedgeSQLite.dll"]
CMD ["dotnet", "iotedgeSQLite.dll"]
13 changes: 13 additions & 0 deletions iotedgeSQLite/modules/iotedgeSQLite/Dockerfile.windows-arm32v7
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM microsoft/dotnet:2.1-sdk AS build-env
WORKDIR /app

COPY *.csproj ./
RUN dotnet restore -r win10-arm

COPY . ./
RUN dotnet publish -c Release -r win10-arm -o out

FROM mcr.microsoft.com/windows/nanoserver:1809_arm
WORKDIR /app
COPY --from=build-env /app/out ./
CMD ["iotedgeSQLite.exe"]
7 changes: 4 additions & 3 deletions iotedgeSQLite/modules/iotedgeSQLite/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
"$schema-version": "0.0.1",
"description": "",
"image": {
"repository": "localhost:5000/iotedgesqlite",
"repository": "azureiotedge/sqlite",
"tag": {
"version": "0.0.1",
"version": "1.0.5",
"platforms": {
"amd64": "./Dockerfile.amd64",
"amd64.debug": "./Dockerfile.amd64.debug",
"arm32v7": "./Dockerfile.arm32v7",
"windows-amd64": "./Dockerfile.windows-amd64"
"windows-amd64": "./Dockerfile.windows-amd64",
"windows-arm32v7": "./Dockerfile.windows-arm32v7"
}
},
"buildOptions": []
Expand Down

0 comments on commit c237eed

Please sign in to comment.