Skip to content

Commit

Permalink
Test Modules: Fix module-base-full base images to specify moduleuser …
Browse files Browse the repository at this point in the history
…in dockerfile (Azure#3303) (Azure#3348)
  • Loading branch information
and-rewsmith authored Aug 3, 2020
1 parent c57f918 commit 52f6e85
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.6.0-linux-arm32v7
ARG base_tag=1.0.6.1-linux-arm32v7
FROM edgebuilds.azurecr.io/microsoft/azureiotedge-module-base-full:${base_tag}

ARG EXE_DIR=.
Expand Down
2 changes: 1 addition & 1 deletion test/modules/TestAnalyzer/docker/linux/arm32v7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.6.0-linux-arm32v7
ARG base_tag=1.0.6.1-linux-arm32v7
FROM edgebuilds.azurecr.io/microsoft/azureiotedge-module-base-full:${base_tag}

ARG EXE_DIR=.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ RUN apt-get update && apt-get install -y libcap2-bin libsnappy1v5 && \
COPY librocksdb.so /usr/lib/

RUN apt-get update && apt-get install -y --no-install-recommends iproute2 net-tools

# Add an unprivileged user account for running the module
RUN useradd -ms /bin/bash moduleuser
USER moduleuser
2 changes: 1 addition & 1 deletion test/modules/TestAnalyzer/docker/linux/arm64v8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.6.0-linux-arm64v8
ARG base_tag=1.0.6.1-linux-arm64v8
FROM edgebuilds.azurecr.io/microsoft/azureiotedge-module-base-full:${base_tag}

ARG EXE_DIR=.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ RUN apt-get update && \
ln -s /lib/aarch64-linux-gnu/libc.so.6 /usr/lib/aarch64-linux-gnu/libc.so.6

COPY librocksdb.so /usr/lib

# Add an unprivileged user account for running the module
RUN useradd -ms /bin/bash moduleuser
USER moduleuser
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.6.0-linux-arm32v7
ARG base_tag=1.0.6.1-linux-arm32v7
FROM edgebuilds.azurecr.io/microsoft/azureiotedge-module-base-full:${base_tag}

ARG EXE_DIR=.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.6.0-linux-arm64v8
ARG base_tag=1.0.6.1-linux-arm64v8
FROM edgebuilds.azurecr.io/microsoft/azureiotedge-module-base-full:${base_tag}

ARG EXE_DIR=.
Expand Down
2 changes: 1 addition & 1 deletion test/modules/TwinTester/docker/linux/arm32v7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.6.0-linux-arm32v7
ARG base_tag=1.0.6.1-linux-arm32v7
FROM edgebuilds.azurecr.io/microsoft/azureiotedge-module-base-full:${base_tag}

ARG EXE_DIR=.
Expand Down
2 changes: 1 addition & 1 deletion test/modules/TwinTester/docker/linux/arm64v8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.6.0-linux-arm64v8
ARG base_tag=1.0.6.1-linux-arm64v8
FROM edgebuilds.azurecr.io/microsoft/azureiotedge-module-base-full:${base_tag}

ARG EXE_DIR=.
Expand Down

0 comments on commit 52f6e85

Please sign in to comment.