Browse Source

Create Dockerfile

Signed-off-by: Luciano Almeida <lucianoalmeida@interlegis.leg.br>
pull/6/head
Luciano Almeida 8 years ago
committed by Luciano Almeida
parent
commit
f308b99176
  1. 56
      Dockerfile
  2. 18
      docker-compose.yml

56
Dockerfile

@ -0,0 +1,56 @@
FROM ubuntu:15.04
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN mkdir /sigi
RUN apt-get update && \
apt-get install -y -f \
build-essential \
curl \
git \
graphviz-dev \
graphviz \
libz-dev \
libffi-dev \
libfreetype6-dev \
libjpeg62 \
libjpeg-dev \
libldap2-dev \
libpq-dev \
libsasl2-dev \
libssl-dev \
libxft-dev \
libxml2-dev \
libxslt1-dev \
nginx \
pkg-config \
python-dev \
python-setuptools \
software-properties-common \
npm \
nodejs
# install nodejs
RUN DEBIAN_FRONTEND=noninteractive curl -sL https://deb.nodesource.com/setup_5.x | bash -
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs
# install bower
RUN npm install -g bower
# Bower aceitar root
RUN touch /root/.bowerrc
RUN chmod 751 /root/.bowerrc
RUN echo "{ \"allow_root\": true }" >> /root/.bowerrc
ADD . /sigi
WORKDIR /sigi
RUN easy_install pip
RUN pip2 install -r requirements/dev-requirements.txt
RUN pip2 install --upgrade setuptools

18
docker-compose.yml

@ -1,3 +1,21 @@
localhost:
image: postgres
environment:
POSTGRES_PASSWORD: sigi
POSTGRES_USER: sigi
POSTGRES_DB: sigi
ports:
- "5532:5432"
web:
build: .
command: bash -c "python manage.py bower install && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
volumes:
- .:/sigi
ports:
- "8000:8000"
links:
- localhost
osticket: osticket:
image: campbellsoftwaresolutions/osticket image: campbellsoftwaresolutions/osticket
ports: ports:

Loading…
Cancel
Save