From: Guillaume Pellerin Date: Wed, 18 Mar 2015 20:00:05 +0000 (+0100) Subject: add libmysqlclient dep, fix compose links, fix unique charfield length X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8e8adbfc998ff61f2311f217d91ce6ba80b82d85;p=timeside.git add libmysqlclient dep, fix compose links, fix unique charfield length --- diff --git a/Dockerfile b/Dockerfile index 5d5b91c..d4fd455 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,12 +18,11 @@ FROM debian:wheezy MAINTAINER Guillaume Pellerin , Thomas fillon # install confs, keys and deps -RUN apt-key adv --keyserver pgp.mit.edu --recv-key E3298399DF14BB7C && \ - echo 'deb http://http.debian.net/debian wheezy-backports main contrib non-free' > /etc/apt/sources.list.d/wheezy-backports.list && \ +RUN echo 'deb http://http.debian.net/debian wheezy-backports main contrib non-free' > /etc/apt/sources.list.d/wheezy-backports.list && \ echo 'deb http://debian.parisson.com/debian/ wheezy main' > /etc/apt/sources.list.d/parisson.list && \ apt-get update && \ apt-get -y --force-yes -t wheezy-backports dist-upgrade && \ - apt-get install -y --force-yes python-gst0.10 gstreamer0.10-plugins-good gstreamer0.10-gnonlin gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad gstreamer0.10-alsa vamp-examples && \ + apt-get install -y --force-yes python-gst0.10 gstreamer0.10-plugins-good gstreamer0.10-gnonlin gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad gstreamer0.10-alsa vamp-examples libmysqlclient-dev && \ apt-get install -y --force-yes -t wheezy-backports python-yaafe && \ apt-get install -y --force-yes wget bzip2 build-essential && \ apt-get clean diff --git a/docker-compose-mysql.yml b/docker-compose-mysql.yml index c4a5b76..816f7e5 100644 --- a/docker-compose-mysql.yml +++ b/docker-compose-mysql.yml @@ -93,6 +93,7 @@ worker: links: - rabbitmq - app + - db nginx: image: nginx diff --git a/examples/sandbox/update_schema.sh b/examples/sandbox/update_schema.sh index 82d28e9..bfe47d4 100755 --- a/examples/sandbox/update_schema.sh +++ b/examples/sandbox/update_schema.sh @@ -1,5 +1,5 @@ #!/bin/sh -./manage.py schemamigration timeside --auto -./manage.py migrate timeside +./manage.py schemamigration timeside.server--auto +./manage.py migrate timeside.server diff --git a/timeside/server/models.py b/timeside/server/models.py index d8ced2c..2f577a2 100644 --- a/timeside/server/models.py +++ b/timeside/server/models.py @@ -106,7 +106,7 @@ class BaseResource(models.Model): date_added = models.DateTimeField(_('date added'), auto_now_add=True) date_modified = models.DateTimeField(_('date modified'), auto_now=True, null=True) - uuid = models.CharField(_('uuid'), unique=True, blank=True, max_length=512) + uuid = models.CharField(_('uuid'), unique=True, blank=True, max_length=255) class Meta(MetaCore): abstract = True