UPGRADE: base image to 14.04
authorSam <sam.saffron@gmail.com>
Fri, 13 Jun 2014 01:21:58 +0000 (11:21 +1000)
committerSam <sam.saffron@gmail.com>
Fri, 13 Jun 2014 01:21:58 +0000 (11:21 +1000)
image/base/Dockerfile
image/base_21/Dockerfile
image/base_21/runit-1 [new file with mode: 0755]
image/base_21/runit-1.d-cleanup-pids [new file with mode: 0755]
image/base_21/runit-2 [new file with mode: 0755]
image/discourse/Dockerfile
image/discourse_21/Dockerfile
launcher
templates/sshd.template.yml

index 604fae5f1405a6fc885728467758841a2ac5d219..612088070d21df4d36cceaa5564bf945cd360084 100644 (file)
@@ -1,10 +1,8 @@
-# DOCKER-VERSION 0.6.7 : samsaffron/discourse_base
-
 # Official repo only has a ppa for postgresql 9.3 at the moment (14/3/2014)
 # When new LTS ships we can upgrade
 
 # VERSION 0.2.2
-FROM ubuntu:12.04
+FROM ubuntu:14.04
 
 MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
 
@@ -12,7 +10,7 @@ RUN echo "debconf debconf/frontend select Teletype" | debconf-set-selections &&\
     apt-get -y install fping &&\
     sh -c "fping proxy && echo 'Acquire { Retries \"0\"; HTTP { Proxy \"http://proxy:3128\";}; };' > /etc/apt/apt.conf.d/40proxy || true" &&\
     apt-get -y update &&\
-    apt-get -y install python-software-properties &&\
+    apt-get -y install software-properties-common &&\
     add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe" &&\
     add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-updates main universe" &&\
     apt-get -y update &&\
@@ -21,7 +19,7 @@ RUN echo "debconf debconf/frontend select Teletype" | debconf-set-selections &&\
     add-apt-repository -y ppa:rwky/redis &&\
     add-apt-repository -y ppa:nginx/stable &&\
     apt-get install -y curl && curl http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add - &&\
-    echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" | \
+    echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" | \
     tee /etc/apt/sources.list.d/postgres.list &&\
     apt-get -y update &&\
     apt-get -y install build-essential git curl wget \
index 49fdf4411771d1eddb360050953e8aedf9a0b06a..b4adb322e3885a131cfe6fa69b4fea92f9b96e60 100644 (file)
@@ -1,10 +1,8 @@
-# DOCKER-VERSION 0.6.7 : samsaffron/discourse_base
-
 # Official repo only has a ppa for postgresql 9.3 at the moment (14/3/2014)
 # When new LTS ships we can upgrade
 
 # VERSION 0.2.0
-FROM ubuntu:12.04
+FROM ubuntu:14.04
 
 MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
 
@@ -12,7 +10,7 @@ RUN echo "debconf debconf/frontend select Teletype" | debconf-set-selections &&\
     apt-get -y install fping &&\
     sh -c "fping proxy && echo 'Acquire { Retries \"0\"; HTTP { Proxy \"http://proxy:3128\";}; };' > /etc/apt/apt.conf.d/40proxy || true" &&\
     apt-get -y update &&\
-    apt-get -y install python-software-properties &&\
+    apt-get -y install software-properties-common &&\
     add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe" &&\
     add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-updates main universe" &&\
     apt-get -y update &&\
@@ -21,7 +19,7 @@ RUN echo "debconf debconf/frontend select Teletype" | debconf-set-selections &&\
     add-apt-repository -y ppa:rwky/redis &&\
     add-apt-repository -y ppa:nginx/stable &&\
     apt-get install -y curl && curl http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add - &&\
-    echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" | \
+    echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" | \
     tee /etc/apt/sources.list.d/postgres.list &&\
     apt-get -y update &&\
     apt-get -y install build-essential git curl wget \
@@ -56,4 +54,9 @@ RUN echo "debconf debconf/frontend select Teletype" | debconf-set-selections &&\
     apt-get -y install runit monit socat &&\
     apt-get clean &&\
     rm -f /etc/apt/apt.conf.d/40proxy &&\
-    locale-gen en_US
+    locale-gen en_US &&\
+    mkdir -p /etc/runit/1.d
+
+ADD runit-1 /etc/runit/1
+ADD runit-1.d-cleanup-pids /etc/runit/1.d/cleanup-pids
+ADD runit-2 /etc/runit/2
diff --git a/image/base_21/runit-1 b/image/base_21/runit-1
new file mode 100755 (executable)
index 0000000..e9c842e
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+/bin/run-parts --verbose --exit-on-error /etc/runit/1.d
diff --git a/image/base_21/runit-1.d-cleanup-pids b/image/base_21/runit-1.d-cleanup-pids
new file mode 100755 (executable)
index 0000000..cf5c3da
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+/bin/echo "Cleaning stale PID files"
+/bin/rm -f /var/run/*.pid
diff --git a/image/base_21/runit-2 b/image/base_21/runit-2
new file mode 100755 (executable)
index 0000000..b3ec10e
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash
+/usr/bin/runsvdir -P /etc/service
index f87713138913db17b618adec768e482fc3d4990b..6aba6fb6ccb0331c5cc817abcf95fe2a23bd35da 100644 (file)
@@ -1,4 +1,4 @@
-FROM samsaffron/discourse_base:0.2.2
+FROM samsaffron/discourse_base:0.2.3
 
 MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
 
index 666cb9e549a9c153576943d560c0c6a2916271b0..a0735a2d508517206d66c69575307bc560502da6 100644 (file)
@@ -1,4 +1,4 @@
-FROM samsaffron/discourse_base_21:2.1.2
+FROM samsaffron/discourse_base_21:2.1.2.1
 
 MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
 
index b8e0a462082847f982fe91f54751a20b0d513eb7..d4aff1cffd777b395c37ac7dc285b03c51d9175d 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -13,7 +13,7 @@ config_file=containers/"$config".yml
 cidfile=cids/"$config".cid
 cidbootstrap=cids/"$config"_boostrap.cid
 local_discourse=local_discourse
-image=samsaffron/discourse:0.2.2
+image=samsaffron/discourse:0.2.3
 docker_path=`which docker.io || which docker`
 
 docker_ip=`/sbin/ifconfig | \
index 888e834ca0607b6ed11588dbf3ca0af4d88be2ac..9f365c498ffc29ba2fc30bc24e28e9070e208451 100644 (file)
@@ -9,6 +9,12 @@ env:
 
 run:
 
+  - replace:
+      filename: /etc/pam.d/sshd
+      from: "session    required     pam_loginuid.so"
+      to: ""
+
+
   - file:
      path: /etc/service/sshd/run
      chmod: "+x"
@@ -27,7 +33,6 @@ run:
         - chmod 640 /root/.ssh/authorized_keys
         - rm /etc/update-motd.d/00-header
         - rm /etc/update-motd.d/10-help-text
-        - rm /etc/update-motd.d/99-footer
         - rm /etc/legal
   - file:
      path: /etc/update-motd.d/00-discourse