Open blacksd opened 8 years ago
Hi, I tried the instructions to build the container but the procedure stops for missing deps. Which is kind of strange, because in xential the packages are there https://launchpad.net/ubuntu/xenial/+package/openjdk-6-jre-headless
docker-unifi-controller git:(master) make docker build -t="rednut/unifi-controller:latest" --rm --no-cache . Sending build context to Docker daemon 207.4 kB Step 0 : FROM ubuntu ---> 4ef6a5ece191 Step 1 : MAINTAINER stuart nixon dotcomstu@gmail.com ---> Running in 4150cd7835df ---> dffa0903da42 Removing intermediate container 4150cd7835df Step 2 : ENV DEBIAN_FRONTEND noninteractive ---> Running in b93a2db1f8c6 ---> 3a25f6c5a4b2 Removing intermediate container b93a2db1f8c6 Step 3 : RUN mkdir -p /var/log/supervisor /usr/lib/unifi/data && touch /usr/lib/unifi/data/.unifidatadir ---> Running in ea1cd7a6c422 ---> 044b85d8344a Removing intermediate container ea1cd7a6c422 Step 4 : ADD ./100-ubnt.list /etc/apt/sources.list.d/100-ubnt.list ---> 5c311169630c Removing intermediate container ed3ef551f884 Step 5 : RUN apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 && apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 && apt-get update -q -y && apt-get install -q -y mongodb-server unifi ---> Running in 10556be15564 Executing: /tmp/tmp.d7ArCdOtma/gpg.1.sh --keyserver keyserver.ubuntu.com --recv C0A52C50 gpg: requesting key C0A52C50 from hkp server keyserver.ubuntu.com gpg: key C0A52C50: public key "UniFi Developers <unifi-dev@ubnt.com>" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) Executing: /tmp/tmp.8K9kZ2hbWq/gpg.1.sh --keyserver keyserver.ubuntu.com --recv 7F0CEB10 gpg: requesting key 7F0CEB10 from hkp server keyserver.ubuntu.com gpg: key 7F0CEB10: public key "Richard Kreuter <richard@10gen.com>" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [92.2 kB] Get:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease [92.2 kB] Get:4 http://archive.ubuntu.com/ubuntu xenial/main Sources [1103 kB] Ign:5 http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist InRelease Get:6 http://archive.ubuntu.com/ubuntu xenial/restricted Sources [5179 B] Get:7 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9802 kB] Get:8 http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist Release [2040 B] Get:9 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB] Get:10 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB] Get:11 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB] Get:12 http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist Release.gpg [490 B] Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main Sources [3517 B] Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [40 B] Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [846 B] Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [5798 B] Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [40 B] Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [4006 B] Get:20 http://archive.ubuntu.com/ubuntu xenial-security/main Sources [1557 B] Get:21 http://archive.ubuntu.com/ubuntu xenial-security/restricted Sources [40 B] Get:22 http://archive.ubuntu.com/ubuntu xenial-security/universe Sources [846 B] Get:23 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [3011 B] Get:24 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [40 B] Get:25 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [1561 B] Ign:13 http://dl.ubnt.com/unifi/debian stable InRelease Get:26 http://dl.ubnt.com/unifi/debian stable Release [2498 B] Get:27 http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist/10gen amd64 Packages [29.8 kB] Get:28 http://dl.ubnt.com/unifi/debian stable Release.gpg [490 B] Get:29 http://dl.ubnt.com/unifi/debian stable/ubiquiti amd64 Packages [847 B] Fetched 22.8 MB in 2s (9084 kB/s) Reading package lists... W: http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/Release.gpg: Signature by key 492EAFE8CD016A07919F1D2B9ECBEC467F0CEB10 uses weak digest algorithm (SHA1) W: http://www.ubnt.com/downloads/unifi/debian/dists/stable/Release.gpg: Signature by key 4A228B2D358A5094178285BE06E85760C0A52C50 uses weak digest algorithm (SHA1) Reading package lists... Building dependency tree... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: unifi : Depends: openjdk-6-jre-headless but it is not installable or openjdk-7-jre-headless but it is not installable E: Unable to correct problems, you have held broken packages. The command '/bin/sh -c apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 && apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 && apt-get update -q -y && apt-get install -q -y mongodb-server unifi' returned a non-zero code: 100 make: *** [build] Error 1
The latest ubuntu image is now 16.04 causing the SHA1 failures.
Changing FROM ubuntu to FROM ubuntu:trusty is one fix.
FROM ubuntu
FROM ubuntu:trusty
Hi, I tried the instructions to build the container but the procedure stops for missing deps. Which is kind of strange, because in xential the packages are there https://launchpad.net/ubuntu/xenial/+package/openjdk-6-jre-headless