Skip to content

Commit 343a29a

Browse files
committed
Fixing container and test
1 parent ccef8ee commit 343a29a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

scanbd2smb/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RUN apt-get update && \
1212
libusb-dev \
1313
smbclient \
1414
jq \
15+
dbus \
1516
&& rm -rf /tmp/* /var/{cache,log}/* /var/lib/apt/lists/*
1617

1718
COPY ./scan.sh /scan.sh

scanbd2smb/entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@ echo " OCR_LANGUAGE=$OCR_LANGUAGE"
2222
echo " SCAN_RESOLUTION=$SCAN_RESOLUTION"
2323
echo " SCAN_MODE=$SCAN_MODE"
2424

25+
mkdir -p /run/dbus
26+
dbus-daemon --system --fork
27+
2528
exec /usr/sbin/scanbd -f
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
title "scandb2smb Integration Test"
22

3-
describe processes(Regexp.new("scandb")) do
3+
describe processes(Regexp.new("/usr/sbin/scanbd")) do
44
it { should exist }
5-
its('users') { should include 'root' }
5+
its('users') { should include 'saned' }
66
its('pids') { should cmp "1"}
77
end

0 commit comments

Comments
 (0)