diff --git a/README.md b/README.md index 33508d4..be18048 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ A collection of delicious docker recipes. - [x] dante - [x] delegated - [x] discuz :cn: +- [x] django-cms - [x] dnscrypt - [x] dnscrypt-proxy - [x] dnscrypt-wrapper diff --git a/django-cms/Dockerfile b/django-cms/Dockerfile new file mode 100644 index 0000000..f4e3e1f --- /dev/null +++ b/django-cms/Dockerfile @@ -0,0 +1,17 @@ +# +# Dockerfile for django-cms +# + +FROM vimagick/python:2 +MAINTAINER kev + +WORKDIR /app + +RUN set -xe \ + && apk add -U py-pillow tzdata \ + && pip install djangocms-installer \ + && djangocms -q -l en --utc -f -p . mysite + +EXPOSE 80 + +CMD ["python", "manage.py", "runserver", "0.0.0.0:80"] diff --git a/django-cms/README.md b/django-cms/README.md new file mode 100644 index 0000000..b5442b4 --- /dev/null +++ b/django-cms/README.md @@ -0,0 +1,34 @@ +django-cms +========== + +[django CMS][1] is a modern web publishing platform built with Django, the web +application framework “for perfectionists with deadlines”. + +### docker-compose.yml + +```yaml +django-cms: + image: vimagick/django-cms + ports: + - "8000:80" + restart: always +``` + +### up and running + +```bash +$ docker-compose up -d + +$ docker-compose exec django-cms sh +/app # ./manage.py createsuperuser +Username (leave blank to use 'root'): admin +Email address: admin@easypi.info +Password: ****** +Password (again): ****** +Superuser created successfully. +/app # exit + +$ firefox http://easypi.info:8000 +``` + +[1]: https://www.django-cms.org/en/ diff --git a/django-cms/docker-compose.yml b/django-cms/docker-compose.yml new file mode 100644 index 0000000..9e755a1 --- /dev/null +++ b/django-cms/docker-compose.yml @@ -0,0 +1,5 @@ +django-cms: + image: vimagick/django-cms + ports: + - "8000:80" + restart: always