Navigation Menu

Skip to content

Commit

Permalink
Replace Vagrant with Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Fedoseev committed Feb 4, 2017
1 parent e9d193a commit 92f68bb
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 84 deletions.
22 changes: 22 additions & 0 deletions .dockerignore
@@ -0,0 +1,22 @@
build
dist
*.pyc
*.egg-info
*.egg
.idea
.idea.mac
.idea.win
virtualenv
virtualenv-win
.coverage
test_project/db.sqlite3
/.vagrant/
/.vagrant.bak/
.sass-cache/
/htmlcov/
/.tox/
/.cache/
/docs/_build/
/docs/_static/
/docs/_templates/
coverage.xml
17 changes: 17 additions & 0 deletions Dockerfile
@@ -0,0 +1,17 @@
FROM ubuntu:16.04
MAINTAINER Andrey Fedoseev <andrey.fedoseev@gmail.com>
RUN apt-get update && apt-get install -y python2.7-dev python3.5-dev python-pip sqlite3 ruby-dev npm
RUN ln -s /usr/bin/nodejs /usr/local/bin/node
RUN npm install -g coffee-script@1.7.1
RUN npm install -g livescript@1.4.0
RUN npm install -g less@1.7.4
RUN npm install -g babel-cli@6.2.0
RUN npm install -g stylus@0.50.0
RUN npm install -g handlebars@4.0.2
RUN gem install sass -v 3.4.22
RUN gem install compass -v 1.0.1
RUN pip install pytest pretend pytest-django pytest-cov flake8 tox django
RUN mkdir /app
WORKDIR /app
ADD . /app/
RUN pip install -e .[libsass]
29 changes: 0 additions & 29 deletions Vagrantfile

This file was deleted.

20 changes: 20 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,20 @@
version: '2'
services:
python:
build: .
entrypoint: []
command: python
volumes:
- .:/app
test:
build: .
entrypoint: []
command: py.test
volumes:
- .:/app
tox:
build: .
entrypoint: []
command: tox
volumes:
- .:/app
55 changes: 0 additions & 55 deletions provision.sh

This file was deleted.

0 comments on commit 92f68bb

Please sign in to comment.