Skip to content

Commit 6b3540f

Browse files
authored
Merge pull request #68 from Azure-Samples/fix-bugs-66-and-67
Fix bugs 66 and 67: missing package libxcb for latest PIL package in sense-hat and image-classifier container
2 parents c2dcdc0 + 023d811 commit 6b3540f

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

modules/ImageClassifierService/arm32v7.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ FROM balenalib/raspberrypi3-debian-python:3.7
22

33
RUN [ "cross-build-start" ]
44

5-
RUN apt update && apt install -y libjpeg62-turbo libopenjp2-7 libtiff5 libatlas-base-dev
5+
RUN apt update && apt install -y libjpeg62-turbo libopenjp2-7 libtiff5 libatlas-base-dev libxcb1
66
RUN pip install absl-py six protobuf wrapt gast astor termcolor keras_applications keras_preprocessing --no-deps
77
RUN pip install numpy==1.16 tensorflow==1.13.1 --extra-index-url 'https://www.piwheels.org/simple' --no-deps
8-
RUN pip install flask pillow --index-url 'https://www.piwheels.org/simple'
8+
RUN pip install flask==1.1.2 pillow==7.1.2 --index-url 'https://www.piwheels.org/simple'
99

1010
COPY app /app
1111

modules/ImageClassifierService/module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"image": {
55
"repository": "$CONTAINER_REGISTRY_ADDRESS/imageclassifierservice",
66
"tag": {
7-
"version": "0.2.16",
7+
"version": "0.2.17",
88
"platforms": {
99
"amd64": "./amd64.Dockerfile",
1010
"arm32v7": "./arm32v7.Dockerfile"

modules/SenseHatDisplay/arm32v7.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ RUN install_packages \
2929
libatlas-base-dev \
3030
libopenjp2-7 \
3131
libtiff-tools \
32-
i2c-tools
32+
i2c-tools \
33+
libxcb1
3334

3435
# Cleanup
3536
RUN rm -rf /var/lib/apt/lists/* \
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
azure-iothub-device-client
2-
numpy
2+
numpy==1.18.3
33
rtimulib
4-
sense-hat
4+
sense-hat==2.2.0

modules/SenseHatDisplay/module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"image": {
55
"repository": "$CONTAINER_REGISTRY_ADDRESS/sensehatdisplay",
66
"tag": {
7-
"version": "0.2.13",
7+
"version": "0.2.14",
88
"platforms": {
99
"arm32v7": "./arm32v7.Dockerfile",
1010
"test-arm32v7": "./test/test-arm32v7.Dockerfile"

0 commit comments

Comments
 (0)