-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kyle Maxwell
committed
Mar 26, 2015
1 parent
6df70b7
commit e29becb
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,3 +68,7 @@ target/ | |
# virtualenv | ||
/include | ||
/bin | ||
venv/ | ||
|
||
# vim swap files | ||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Dockerfile for FIR development instance | ||
# written by Kyle Maxwell | ||
# build with the command: | ||
# | ||
# sudo docker build -t fir . | ||
# sudo docker run -it -p 8000:8000 fir | ||
# | ||
# then access http://localhost:8000 in your browser | ||
|
||
#MAINTAINER Kyle Maxwell, krmaxwell@gmail.com | ||
FROM ubuntu:14.04 | ||
RUN apt-get update && \ | ||
apt-get dist-upgrade -y | ||
RUN apt-get install -y --no-install-recommends \ | ||
python-pip \ | ||
python-dev \ | ||
python-lxml \ | ||
python-virtualenv \ | ||
libxml2-dev \ | ||
libxslt1-dev \ | ||
libz-dev \ | ||
build-essential \ | ||
git && \ | ||
|
||
groupadd -r fir && \ | ||
useradd -r -g fir -d /home/fir -s /sbin/nologin -c "FIR user" fir | ||
|
||
WORKDIR /home | ||
RUN git clone https://github.com/certsocietegenerale/FIR.git && \ | ||
mv /home/FIR /home/fir && \ | ||
chown -R fir:fir /home/fir && \ | ||
cd fir && \ | ||
pip install -r requirements.txt | ||
|
||
USER fir | ||
ENV HOME /home/fir | ||
ENV USER fir | ||
WORKDIR /home/fir | ||
RUN ./manage.py syncdb --noinput && \ | ||
./manage.py migrate && \ | ||
./manage.py loaddata incidents/fixtures/seed_data.json && \ | ||
./manage.py loaddata incidents/fixtures/dev_users.json && \ | ||
cp fir/urls.py.sample fir/urls.py | ||
EXPOSE 8000 | ||
ENTRYPOINT ["/home/fir/manage.py"] | ||
CMD ["runserver", "0.0.0.0:8000"] |