]> www.vanbest.org Git - motioneye-debian/commitdiff
try to build amd64 and armhf Docker images
authorMarcus Klein <marcus.klein@open-xchange.com>
Fri, 1 Sep 2017 08:28:01 +0000 (10:28 +0200)
committerMarcus Klein <himself@kleini.org>
Sun, 5 Nov 2017 09:07:04 +0000 (10:07 +0100)
.travis.yml
extra/Dockerfile.armv7-armhf
extra/sources.list [new file with mode: 0644]

index 66e4b174aa72859f871aca460c31e68d7c374308..769546aa149b4612d30fcfc1cb24bfee4c6ce973 100644 (file)
@@ -4,11 +4,21 @@ services:
   - docker
 before_install:
   - docker info
+  - docker run --rm --privileged multiarch/qemu-user-static:register --reset
 install:
-  - docker build --build-arg VCS_REF=$TRAVIS_COMMIT --build-arg BUILD_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ") -t $DOCKER_REPO:$TRAVIS_BRANCH extra
-  - docker run --rm $DOCKER_REPO:$TRAVIS_BRANCH uname -a
+  - docker build --build-arg VCS_REF=$TRAVIS_COMMIT --build-arg BUILD_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ") -t $DOCKER_REPO:$TRAVIS_BRANCH-$TARGET -f extra/Dockerfile${EXT} extra
+  - docker run --rm $DOCKER_REPO:$TRAVIS_BRANCH-$TARGET uname -a
 after_success:
   - docker login -e=$DOCKER_EMAIL -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD
-  - docker push $DOCKER_REPO:$TRAVIS_BRANCH
+  - docker push $DOCKER_REPO:$TRAVIS_BRANCH-$TARGET
 env:
-  # DOCKER_REPO
+  # global:
+  #   DOCKER_REPO
+  #   DOCKER_USERNAME
+  #   DOCKER_PASSWORD
+  #   DOCKER_EMAIL
+  matrix:
+    - TARGET=amd64 EXT=""
+    - TARGET=armhf EXT=".armv7-armhf"
+matrix:
+  fast_finish: true
index 088315ebcf813c35ea22958215219468ce4ea8c4..d9206635fd1b038423c51b5869fadf3234e8c683 100644 (file)
@@ -1,5 +1,5 @@
 
-FROM armv7/armhf-ubuntu:15.04
+FROM multiarch/ubuntu-debootstrap:armhf-vivid
 MAINTAINER Conor Heine <conor.heine@gmail.com>
 
 ENV DEBIAN_FRONTEND noninteractive
@@ -11,6 +11,8 @@ ENV LANG en_US.UTF-8
 ENV LC_TYPE en_US.UTF-8
 ENV TZ America/Los_Angeles
 
+ADD sources.list /etc/apt/
+
 RUN apt-get update && \
     apt-get --yes install \
        automake \
@@ -58,7 +60,7 @@ VOLUME /var/run/motion
 # Video & images
 VOLUME /var/lib/motioneye
 
-ADD extra /usr/share/motioneye/extra/
+ADD motioneye.conf.sample /usr/share/motioneye/extra/
 
 CMD test -e /etc/motioneye/motioneye.conf || \    
     cp /usr/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf ; \
diff --git a/extra/sources.list b/extra/sources.list
new file mode 100644 (file)
index 0000000..98e5c1c
--- /dev/null
@@ -0,0 +1,35 @@
+# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
+# newer versions of the distribution.
+
+deb http://ports.ubuntu.com/ubuntu-ports/ vivid main restricted
+deb-src http://ports.ubuntu.com/ubuntu-ports/ vivid main restricted
+
+## Major bug fix updates produced after the final release of the
+## distribution.
+deb http://ports.ubuntu.com/ubuntu-ports/ vivid-updates main restricted
+deb-src http://ports.ubuntu.com/ubuntu-ports/ vivid-updates main restricted
+
+## Uncomment the following two lines to add software from the 'universe'
+## repository.
+## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
+## team. Also, please note that software in universe WILL NOT receive any
+## review or updates from the Ubuntu security team.
+deb http://ports.ubuntu.com/ubuntu-ports/ vivid universe
+deb-src http://ports.ubuntu.com/ubuntu-ports/ vivid universe
+deb http://ports.ubuntu.com/ubuntu-ports/ vivid-updates universe
+deb-src http://ports.ubuntu.com/ubuntu-ports/ vivid-updates universe
+
+## N.B. software from this repository may not have been tested as
+## extensively as that contained in the main release, although it includes
+## newer versions of some applications which may provide useful features.
+## Also, please note that software in backports WILL NOT receive any review
+## or updates from the Ubuntu security team.
+# deb http://ports.ubuntu.com/ubuntu-ports/ vivid-backports main restricted
+# deb-src http://ports.ubuntu.com/ubuntu-ports/ vivid-backports main restricted
+
+deb http://ports.ubuntu.com/ubuntu-ports/ vivid-security main restricted
+deb-src http://ports.ubuntu.com/ubuntu-ports/ vivid-security main restricted
+deb http://ports.ubuntu.com/ubuntu-ports/ vivid-security universe
+deb-src http://ports.ubuntu.com/ubuntu-ports/ vivid-security universe
+# deb http://ports.ubuntu.com/ubuntu-ports/ vivid-security multiverse
+# deb-src http://ports.ubuntu.com/ubuntu-ports/ vivid-security multiverse