Inhibit udev startup in Debian test Docker images.
authorBrett Smith <brett@curoverse.com>
Wed, 3 Feb 2016 19:24:07 +0000 (14:24 -0500)
committerBrett Smith <brett@curoverse.com>
Wed, 3 Feb 2016 19:24:07 +0000 (14:24 -0500)
The FUSE driver package depends on fuse, which depends on udev.
udev can't start its daemon from postinst in a container.
It has code to try to detect running in a container and skip the
daemon, but it fails intermittently.
e.g., <https://ci.curoverse.com/job/build-packages/1699/consoleFull>
It also skips starting the daemon when /etc/udev/disabled exists, so
create that.

jenkins/package-test-dockerfiles/debian7/Dockerfile
jenkins/package-test-dockerfiles/debian8/Dockerfile
jenkins/package-test-dockerfiles/ubuntu1204/Dockerfile
jenkins/package-test-dockerfiles/ubuntu1404/Dockerfile

index 3277e608eba0dd5dd30f0abdf3e0a544262d7116..c9a2fdc682c1d115f0a0f13bb5ef0ef1ad62f623 100644 (file)
@@ -8,4 +8,7 @@ RUN apt-get update && apt-get -y install curl procps && \
     /usr/local/rvm/bin/rvm install 2.1 && \
     /usr/local/rvm/bin/rvm alias create default ruby-2.1
 
+# udev daemon can't start in a container, so don't try.
+RUN mkdir -p /etc/udev/disabled
+
 RUN echo "deb file:///arvados/packages/debian7/ /" >>/etc/apt/sources.list
index 01abbc99636f453ec292a679fc9bf35fa2fcb75c..cde18472333cdc59e9421a24fecc5f10d1611d38 100644 (file)
@@ -8,4 +8,7 @@ RUN apt-get update && apt-get -y install curl && \
     /usr/local/rvm/bin/rvm install 2.1 && \
     /usr/local/rvm/bin/rvm alias create default ruby-2.1
 
+# udev daemon can't start in a container, so don't try.
+RUN mkdir -p /etc/udev/disabled
+
 RUN echo "deb file:///arvados/packages/debian8/ /" >>/etc/apt/sources.list
index 80573bf99cf335aac4a589bc9bf0e2bdc0f93e44..0cb77c8f8a92a2bbc18bd9005b7a4246d66b48a4 100644 (file)
@@ -8,4 +8,7 @@ RUN apt-get update && apt-get -y install curl && \
     /usr/local/rvm/bin/rvm install 2.1 && \
     /usr/local/rvm/bin/rvm alias create default ruby-2.1
 
+# udev daemon can't start in a container, so don't try.
+RUN mkdir -p /etc/udev/disabled
+
 RUN echo "deb file:///arvados/packages/ubuntu1204/ /" >>/etc/apt/sources.list
\ No newline at end of file
index 2d8ebe95c8e93ce9ace945eb5467d0672cd19b02..6c4d0e9b51f3c3a7f6acd27e4eec0f7c7cf413ad 100644 (file)
@@ -8,4 +8,7 @@ RUN apt-get update && apt-get -y install curl && \
     /usr/local/rvm/bin/rvm install 2.1 && \
     /usr/local/rvm/bin/rvm alias create default ruby-2.1
 
+# udev daemon can't start in a container, so don't try.
+RUN mkdir -p /etc/udev/disabled
+
 RUN echo "deb file:///arvados/packages/ubuntu1404/ /" >>/etc/apt/sources.list
\ No newline at end of file