Skip to content

Commit d2d64c7

Browse files
author
Andrey Fedoseev
committed
Use pre-built docker image for development and CI
1 parent 92c7b21 commit d2d64c7

File tree

4 files changed

+19
-24
lines changed

4 files changed

+19
-24
lines changed

.circleci/config.yml

+4-13
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,12 @@ jobs:
33
build:
44
working_directory: ~/django-static-precompiler
55
docker:
6-
- image: ubuntu:16.04
6+
- image: andreyfedoseev/django-static-precompiler
77
steps:
8-
- run: apt-get update && apt-get install -y python2.7-dev python3.5-dev python3-pip sqlite3 ruby-dev npm
9-
- run: ln -s /usr/bin/nodejs /usr/local/bin/node
10-
- run: npm install -g [email protected]
11-
- run: npm install -g [email protected]
12-
- run: npm install -g [email protected]
13-
- run: npm install -g [email protected]
14-
- run: npm install -g [email protected]
15-
- run: npm install -g [email protected]
16-
- run: gem install sass -v 3.4.22
17-
- run: gem install compass -v 1.0.1
8+
- run: apt-get update && apt-get install -y python2.7-dev python3.5-dev python-pip sqlite3
189
- checkout
19-
- run: pip3 install -r requirements-ci.txt
20-
- run: pip3 install -e .[libsass]
10+
- run: pip install -r requirements-ci.txt
11+
- run: pip install -e .[libsass]
2112
- run: flake8
2213
- run: rm -f coverage.xml
2314
- run: tox

Dockerfile

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
1-
FROM ubuntu:16.04
1+
FROM andreyfedoseev/django-static-precompiler
22
MAINTAINER Andrey Fedoseev <[email protected]>
3-
RUN apt-get update && apt-get install -y python2.7-dev python3.5-dev python-pip sqlite3 ruby-dev npm
4-
RUN ln -s /usr/bin/nodejs /usr/local/bin/node
5-
RUN npm install -g [email protected]
6-
RUN npm install -g [email protected]
7-
RUN npm install -g [email protected]
8-
RUN npm install -g [email protected]
9-
RUN npm install -g [email protected]
10-
RUN npm install -g [email protected]
11-
RUN gem install sass -v 3.4.22
12-
RUN gem install compass -v 1.0.1
3+
RUN apt-get update && apt-get install -y python2.7-dev python3.5-dev python-pip sqlite3
134
RUN mkdir /app
145
WORKDIR /app
156
ADD requirements-*.txt /app/

Dockerfile-base

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM ubuntu:16.04
2+
MAINTAINER Andrey Fedoseev <[email protected]>
3+
RUN apt-get update && apt-get install -y autoconf libtool ruby-dev npm
4+
RUN ln -s /usr/bin/nodejs /usr/local/bin/node
5+
RUN npm install -g [email protected]
6+
RUN npm install -g [email protected]
7+
RUN npm install -g [email protected]
8+
RUN npm install -g [email protected]
9+
RUN npm install -g [email protected]
10+
RUN npm install -g [email protected]
11+
RUN gem install sass -v 3.4.22
12+
RUN gem install compass -v 1.0.1

requirements-test.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Django<2.0
12
pytest
23
pytest-django==3.1.2
34
pretend

0 commit comments

Comments
 (0)