Add yakkety_amd64
authorvarac <varacanero@zeromail.org>
Wed, 8 Mar 2017 22:42:27 +0000 (23:42 +0100)
committervarac <varacanero@zeromail.org>
Wed, 8 Mar 2017 22:42:27 +0000 (23:42 +0100)
docker/yakkety_amd64/Dockerfile [new file with mode: 0644]
docker/yakkety_amd64/files/etc/apt/sources.list [new file with mode: 0644]

diff --git a/docker/yakkety_amd64/Dockerfile b/docker/yakkety_amd64/Dockerfile
new file mode 100644 (file)
index 0000000..73bc16a
--- /dev/null
@@ -0,0 +1,31 @@
+FROM ubuntu:16.10
+
+MAINTAINER LEAP Encryption Access Project <info@leap.se>
+
+COPY files/etc /etc
+
+RUN apt-get update \
+  && apt-get install -y --no-install-recommends \
+    git \
+    locales \
+    sudo \
+    ca-certificates \
+    wget
+
+# No yakkety dist in bitmask repo yet
+RUN echo "deb http://deb.bitmask.net/debian xenial main" > /etc/apt/sources.list.d/leap-client-repo.list \
+  && wget -O- https://dl.bitmask.net/apt.key | apt-key add -
+
+RUN apt-get update \
+  && apt-get -y dist-upgrade \
+  && apt-get install -y --no-install-recommends leap-archive-keyring \
+  && apt-get clean && \
+     rm -rf /var/lib/apt/lists/*
+
+RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
+ENV LANG en_US.utf8
+
+RUN useradd -ms /bin/bash -G sudo cirunner
+
+# allow all members of sudo group to execute any command without password
+RUN sed -i 's/^%sudo.*/%sudo ALL=(ALL) NOPASSWD:ALL/' /etc/sudoers
diff --git a/docker/yakkety_amd64/files/etc/apt/sources.list b/docker/yakkety_amd64/files/etc/apt/sources.list
new file mode 100644 (file)
index 0000000..8365fe3
--- /dev/null
@@ -0,0 +1,3 @@
+deb http://archive.ubuntu.com/ubuntu/ yakkety main universe
+deb http://archive.ubuntu.com/ubuntu/ yakkety-updates main universe
+deb http://archive.ubuntu.com/ubuntu/ yakkety-security main universe