Pull the latest docker images in the postinstall script

This way an 'update' will allow us to test the docker images easily
This commit is contained in:
Girish Ramakrishnan
2014-12-28 15:54:18 -08:00
parent 33481e70ad
commit eefe8e46d7
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -118,6 +118,7 @@ $SRCDIR/postinstall/setup_collectd.sh
echo "=== Setup haraka mail relay ==="
docker rm -f haraka || true
docker pull girish/haraka:0.1
HARAKA_CONTAINER_ID=$(docker run --restart=always -d --name="haraka" --cap-add="NET_ADMIN"\
-p 127.0.0.1:25:25 \
-h $DOMAIN_NAME \
@@ -129,13 +130,14 @@ echo "=== Setup MySQL addon ==="
docker rm -f mysql || true
MYSQL_ROOT_PASSWORD=$(pwgen -1 -s)
DOCKER0_IP=$( /sbin/ifconfig docker0 | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}')
docker pull girish/mysql:0.1
MYSQL_CONTAINER_ID=$(docker run --restart=always -d --name="mysql" \
-p 127.0.0.1:3306:3306 \
-h "$DOMAIN_NAME" \
-e MYSQL_ROOT_PASSWORD="$MYSQL_ROOT_PASSWORD" \
-e MYSQL_ROOT_HOST="$DOCKER0_IP" \
-v "$MYSQL_DIR:/var/lib/mysql" girish/mysql:0.1)
echo "MySQL container id: $HARAKA_CONTAINER_ID"
echo "MySQL container id: $MYSQL_CONTAINER_ID"
echo "==== Creating cloudron.conf ===="
sudo -u yellowtent -H bash <<EOF
+1
View File
@@ -14,6 +14,7 @@ GRAPHITE_DIR="/home/yellowtent/data/graphite"
mkdir -p $GRAPHITE_DIR
docker rm -f graphite || true
docker pull girish/graphite:0.2
docker run --restart=always -d --name="graphite" \
-p 127.0.0.1:2003:2003 \
-p 127.0.0.1:2004:2004 \