Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
add docker compose config for easier local dev setup
Browse files Browse the repository at this point in the history
 - easier local development setup using docker

 Instructions:
 - create a .env file
 - run `docker-compose` up to get started
 - then `docker-compose run web ./manage.py migrate`
 - frontend assets will be watched and compiled on changed
 - django development server will be running on 127.0.0.1:4000
  • Loading branch information
monty5811 committed Feb 8, 2016
1 parent 40a38b8 commit 2948f6a
Show file tree
Hide file tree
Showing 21 changed files with 158 additions and 484 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.cache
.coverage
db.sqlite3
.git
.gitignore
.testmondata
.tmontmp
.tox
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM python:3.4
ENV PYTHONUNBUFFERED 1
RUN pip install -U pip
RUN mkdir /code
WORKDIR /code
ADD requirements.txt /code/
RUN pip install -r requirements.txt --upgrade
ADD . /code/
6 changes: 6 additions & 0 deletions apostello/assets/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:5
RUN mkdir /code
WORKDIR /code
ADD . /code/
WORKDIR /code/apostello/assets
RUN npm install --quiet
46 changes: 26 additions & 20 deletions apostello/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,36 @@
"version": "1.0.0",
"description": "",
"main": "gulpfile.js",
"dependencies": {},
"dependencies": {
"sizzle": "^2.3.0"
},
"devDependencies": {
"babel": "*",
"babel-loader": "*",
"babel-preset-es2015": "*",
"babel-preset-react": "*",
"babelify": "*",
"gulp": "*",
"gulp-babel": "*",
"gulp-browserify": "*",
"gulp-concat": "*",
"gulp-minify-css": "*",
"gulp-plumber": "*",
"gulp-rename": "*",
"gulp-sass": "*",
"jquery": "*",
"moment": "*",
"react": "*",
"react-dom": "*",
"webpack": "*",
"webpack-bundle-tracker": "*"
"babel": "6.3.26",
"babel-loader": "6.2.2",
"babel-preset-es2015": "6.3.13",
"babel-preset-react": "6.3.13",
"babelify": "7.2.0",
"gulp": "3.9.0",
"gulp-babel": "6.1.2",
"gulp-browserify": "0.5.1",
"gulp-concat": "2.6.0",
"gulp-minify-css": "1.2.3",
"gulp-plumber": "1.0.1",
"gulp-rename": "1.2.2",
"gulp-sass": "2.2.0",
"jquery": "2.2.0",
"moment": "2.11.2",
"react": "0.14.7",
"react-dom": "0.14.7",
"semantic-ui": "2.1.7",
"sizzle": "2.3.0",
"webpack": "1.12.13",
"webpack-bundle-tracker": "0.0.93"
},
"scripts": {
"prebuild": "gulp css uiBuildJs",
"build": "webpack --config webpack.config.js --progress --colors",
"prewatch": "npm run prebuild",
"watch": "webpack --config webpack.config.js --progress --colors --watch"
},
"author": "",
Expand Down
Empty file modified apostello/assets/semantic.json
100644 → 100755
Empty file.
11 changes: 7 additions & 4 deletions apostello/assets/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var path = require("path")
var webpack = require('webpack')
var BundleTracker = require('webpack-bundle-tracker')
var path = require("path");
var webpack = require('webpack');
var BundleTracker = require('webpack-bundle-tracker');

module.exports = {
context: __dirname,
Expand Down Expand Up @@ -80,4 +80,7 @@ module.exports = {
modulesDirectories: ['node_modules'],
extensions: ['', '.js', '.jsx']
},
}
watchOptions: {
poll: 500
}
}
14 changes: 7 additions & 7 deletions apostello/static/css/apostello.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions apostello/static/js/daterangepicker.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apostello/static/js/elvanto.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apostello/static/js/groups_table.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apostello/static/js/item_remove_button.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2948f6a

Please sign in to comment.