File tree 3 files changed +41
-0
lines changed
3 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ * .pyc
2
+ .coverage
3
+
4
+ .env
5
+ .tox /
6
+ * .db
7
+
8
+
9
+ build /
10
+ dist /
11
+ * .egg-info
Original file line number Diff line number Diff line change
1
+ FROM python:2-onbuild
2
+
3
+ ARG DJANGO_VERSION
4
+
5
+ RUN pip install django==$DJANGO_VERSION
6
+
7
+ ENV PORT 8000
8
+ EXPOSE 8000
9
+
10
+ ENV PYTHONPATH /usr/src/app
11
+
12
+ CMD python example_project/manage.py runserver 0.0.0.0:$PORT
Original file line number Diff line number Diff line change @@ -35,6 +35,24 @@ resetdb: ## Delete and then recreate the dev sqlite database
35
35
python $(MANAGE ) migrate --noinput
36
36
python $(MANAGE ) loaddata sample_data
37
37
38
+ IMAGE = crccheck/django-object-actions
39
+
40
+ .PHONY : build
41
+ build : # # Build a full set of Docker images
42
+ build : build/1.9 build/1.8.7 build/1.7.11 build/1.6.11 build/1.5.12
43
+
44
+ build/% :
45
+ docker build --build-arg DJANGO_VERSION=$* \
46
+ -t $(IMAGE ) :$$(echo "$* " | cut -f 1-2 -d. ) .
47
+
48
+ run : run/1.9
49
+
50
+ run/% :
51
+ docker run --rm -p 8000:8000 --sig-proxy=false $(IMAGE ) :$*
52
+
53
+ bash :
54
+ docker run --rm -it $(IMAGE ) :1.9 /bin/bash
55
+
38
56
version :
39
57
@sed -i -r /version/s/[0-9.]+/$(VERSION ) / setup.py
40
58
@sed -i -r /version/s/[0-9.]+/$(VERSION ) / django_object_actions/__init__.py
You can’t perform that action at this time.
0 commit comments