Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 57b67de

Browse files
author
Greg Turner
committed
Merge branch 'develop' of github.com:ic-labs/django-icekit into develop
2 parents 6952d1f + 62166b3 commit 57b67de

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+983
-522
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
**/requirements-local.txt
1010
*.egg-info/
1111
.eggs/
12-
.git/
1312
.idea/
1413
.tox/
1514
dist/

.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ end_of_line = crlf
1515
indent_size = 2
1616
indent_style = tab
1717

18-
[*.{py,sh}]
18+
[*.py]
1919
indent_style = space
2020

21+
[*.sh]
22+
indent_style = tab
23+
2124
[*.yml]
2225
indent_size = 2
2326
indent_style = space

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
**/requirements-local.txt
1010
/*.egg-info/
1111
/.eggs/
12-
/.git/
1312
/.idea/
1413
/.tox/
1514
/dist/

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
FROM buildpack-deps:jessie
22

33
RUN apt-get update \
4+
&& apt-get upgrade -y \
45
&& apt-get install -y --no-install-recommends \
6+
apt-transport-https \
57
gettext \
8+
gnupg2 \
69
jq \
710
nano \
811
nginx \
@@ -12,6 +15,13 @@ RUN apt-get update \
1215
pv \
1316
&& rm -rf /var/lib/apt/lists/*
1417

18+
RUN echo 'deb https://dl.bintray.com/sobolevn/deb git-secret main' | tee -a /etc/apt/sources.list
19+
RUN wget -nv -O - https://api.bintray.com/users/sobolevn/keys/gpg/public.key | apt-key add -
20+
RUN apt-get update \
21+
&& apt-get install -y --no-install-recommends \
22+
git-secret \
23+
&& rm -rf /var/lib/apt/lists/*
24+
1525
ENV NODE_VERSION=4.4.2
1626
RUN wget -nv -O - "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz" | tar -Jx -C /opt/ -f -
1727
RUN ln -s "/opt/node-v${NODE_VERSION}-linux-x64/bin/node" /usr/local/bin/
@@ -60,6 +70,10 @@ ENV ICEKIT_PROJECT_DIR=/opt/django-icekit/project_template
6070
ENV PATH=/opt/django-icekit/icekit/bin:$PATH
6171
ENV PGHOST=postgres
6272
ENV PGUSER=postgres
73+
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
74+
ENV PYTHONDONTWRITEBYTECODE=1
75+
ENV PYTHONHASHSEED=random
76+
ENV PYTHONWARNINGS=ignore
6377
ENV REDIS_ADDRESS=redis:6379
6478
ENV SUPERVISORD_CONFIG_INCLUDE=supervisord-django.conf
6579
ENV WAITLOCK_ENABLE=1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Requirements Status](https://img.shields.io/requires/github/ic-labs/django-icekit.svg)](https://requires.io/github/ic-labs/django-icekit/requirements/)
55
[![Version](https://img.shields.io/pypi/v/django-icekit.svg)](https://pypi.python.org/pypi/django-icekit)
66

7-
[![Deploy to Docker Cloud](https://files.cloud.docker.com/images/deploy-to-dockercloud.svg)](https://cloud.docker.com/stack/deploy/)
7+
[![Deploy to Docker Cloud](https://files.cloud.docker.com/images/deploy-to-dockercloud.svg)](https://cloud.docker.com/stack/deploy/?repo=https://github.com/ic-labs/django-icekit/)
88

99
ICEkit is a next-generation CMS by [the Interaction Consortium], built on top
1010
of [django-fluent-pages] and [django-fluent-contents]. See

docker-cloud.yml

Lines changed: 62 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
common:
1+
celery:
2+
command: setup-django.sh celery.sh
23
deployment_strategy: high_availability
34
environment:
45
BASE_SETTINGS_MODULE: production
56
# EMAIL_HOST:
67
# EMAIL_HOST_PASSWORD:
78
# EMAIL_HOST_USER:
8-
ICEKIT_PROJECT_DIR: /opt/icekit-project
99
# MEDIA_AWS_ACCESS_KEY_ID:
1010
# MEDIA_AWS_SECRET_ACCESS_KEY:
1111
# MEDIA_AWS_STORAGE_BUCKET_NAME:
@@ -18,46 +18,87 @@ common:
1818
# SITE_DOMAIN:
1919
# SITE_NAME:
2020
image: interaction/icekit:master
21-
volumes:
22-
- /opt/icekit-project
23-
celery:
24-
command: setup-django.sh celery.sh
25-
extends: common
2621
links:
2722
- elasticsearch
28-
- postgres
23+
# - postgres
2924
- redis
30-
volumes_from:
31-
- django
3225
celerybeat:
3326
command: setup-django.sh celerybeat.sh
34-
extends: common
27+
deployment_strategy: high_availability
28+
environment:
29+
BASE_SETTINGS_MODULE: production
30+
# EMAIL_HOST:
31+
# EMAIL_HOST_PASSWORD:
32+
# EMAIL_HOST_USER:
33+
# MEDIA_AWS_ACCESS_KEY_ID:
34+
# MEDIA_AWS_SECRET_ACCESS_KEY:
35+
# MEDIA_AWS_STORAGE_BUCKET_NAME:
36+
# PGDATABASE:
37+
# PGHOST:
38+
# PGPASSWORD:
39+
# PGPORT:
40+
# PGUSER:
41+
# SENTRY_DSN:
42+
# SITE_DOMAIN:
43+
# SITE_NAME:
44+
image: interaction/icekit:master
3545
links:
3646
- redis
37-
volumes_from:
38-
- django
3947
celeryflower:
4048
command: setup-django.sh celeryflower.sh
49+
deployment_strategy: high_availability
4150
environment:
4251
VIRTUAL_HOST: flower.*
4352
VIRTUAL_HOST_WEIGHT: 1
44-
extends: common
53+
environment:
54+
BASE_SETTINGS_MODULE: production
55+
# EMAIL_HOST:
56+
# EMAIL_HOST_PASSWORD:
57+
# EMAIL_HOST_USER:
58+
# MEDIA_AWS_ACCESS_KEY_ID:
59+
# MEDIA_AWS_SECRET_ACCESS_KEY:
60+
# MEDIA_AWS_STORAGE_BUCKET_NAME:
61+
# PGDATABASE:
62+
# PGHOST:
63+
# PGPASSWORD:
64+
# PGPORT:
65+
# PGUSER:
66+
# SENTRY_DSN:
67+
# SITE_DOMAIN:
68+
# SITE_NAME:
4569
expose:
46-
- 5555
70+
- "5555"
71+
image: interaction/icekit:master
4772
links:
4873
- redis
49-
volumes_from:
50-
- django
5174
django:
5275
command: setup-django.sh supervisord.sh
76+
deployment_strategy: high_availability
5377
environment:
5478
VIRTUAL_HOST: "*"
55-
extends: common
79+
environment:
80+
BASE_SETTINGS_MODULE: production
81+
# EMAIL_HOST:
82+
# EMAIL_HOST_PASSWORD:
83+
# EMAIL_HOST_USER:
84+
# MEDIA_AWS_ACCESS_KEY_ID:
85+
# MEDIA_AWS_SECRET_ACCESS_KEY:
86+
# MEDIA_AWS_STORAGE_BUCKET_NAME:
87+
# PGDATABASE:
88+
# PGHOST:
89+
# PGPASSWORD:
90+
# PGPORT:
91+
# PGUSER:
92+
# SENTRY_DSN:
93+
# SITE_DOMAIN:
94+
# SITE_NAME:
5695
expose:
57-
- 8000
96+
- "8000"
97+
image: interaction/icekit:master
5898
links:
5999
- elasticsearch
60100
- celery
101+
# - postgres
61102
- redis
62103
elasticsearch:
63104
image: interaction/elasticsearch-icu:1
@@ -71,8 +112,8 @@ haproxy:
71112
- "443:443"
72113
roles:
73114
- global
74-
postgres:
75-
image: onjin/alpine-postgres:9.4
115+
# postgres:
116+
# image: onjin/alpine-postgres:9.4
76117
redis:
77118
command: redis-server --appendonly yes
78119
image: redis:3-alpine

docker-compose.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
django:
22
command: runtests.sh
33
environment:
4+
QUICK: 1
45
TRAVIS:
56
TRAVIS_BRANCH:
67
TRAVIS_JOB_ID:

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ services:
1313
command: setup-django.sh bash.sh
1414
environment:
1515
BASE_SETTINGS_MODULE: develop
16+
GPG_PASSPHRASE: # Get from environment
1617
MASTER_PASSWORD: # Get from environment
1718
TERM: # Get from environment
18-
image: interaction/icekit:latest
19+
image: interaction/icekit:local
1920
tmpfs:
2021
- /tmp
2122
volumes:

docs/changelog.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
## In development
44

5+
* Preview pages are now visually highlighted, and have a different HTML title.
6+
7+
* "Slideshow" is now renamed "Image Gallery" and there is a new Image Gallery
8+
content plugin available (which renders a grid of thumbnails into a
9+
lightbox).
10+
11+
## 0.15 (27 September 2016)
12+
13+
* Improvements to publishing to make it accomodate more types of content.
14+
515
* Fix bug where the content items and placeholders associated with a
616
fluent content model (other than a page) were not included in the
717
published copy.
@@ -11,6 +21,10 @@
1121
classes for fluent content models and admins, to help keep things
1222
DRY.
1323

24+
* Minor docs on testing.
25+
26+
* Greater test coverage.
27+
1428
### Breaking changes
1529

1630
* Import model mixins `FluentFieldsMixin`, `LayoutFieldMixin`, and

docs/howto/deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Deploy to Docker Cloud](https://files.cloud.docker.com/images/deploy-to-dockercloud.svg)](https://cloud.docker.com/stack/deploy/)
1+
[![Deploy to Docker Cloud](https://files.cloud.docker.com/images/deploy-to-dockercloud.svg)](https://cloud.docker.com/stack/deploy/?repo=https://github.com/ic-labs/django-icekit/)
22

33
# Deployment
44

0 commit comments

Comments
 (0)