Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
Django Rest
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnny Mejias authored and Johnny Mejias committed Aug 31, 2015
1 parent fa46165 commit 7f7c016
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 3 deletions.
9 changes: 9 additions & 0 deletions DjangoRest/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM python:3.4-onbuild

ENV PYTHONUNBUFFERED 1

RUN mkdir /code
WORKDIR /code
ADD requirements.txt /code/
RUN pip3 install -r requirements.txt
ADD . /code/
12 changes: 12 additions & 0 deletions DjangoRest/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
links:
- db

db:
image: postgres
6 changes: 6 additions & 0 deletions DjangoRest/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Django==1.8.4
djangorestframework==3.2.3
djangorestframework-jsonapi==2.0.0a2
inflection==0.3.1
wheel==0.24.0
psycopg2==2.6.1
3 changes: 2 additions & 1 deletion Elixir/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN wget http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
RUN apt-key add erlang_solutions.asc
RUN apt-get update && \
apt-get -y install erlang && \
apt-get -y install erlang-base-hipe && \
apt-get -y install elixir && \
mkdir /app

Expand All @@ -28,4 +29,4 @@ WORKDIR /app
RUN mix local.hex --force && \
mix local.rebar --force

RUN mix do deps.get, compile
RUN mix do deps.get, compile
5 changes: 4 additions & 1 deletion Phoenix/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ WORKDIR /Downloads

RUN wget http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
RUN apt-key add erlang_solutions.asc
RUN apt-get update && apt-get -y install elixir && apt-get install erlang-base-hipe && mkdir /app
RUN apt-get update && \
apt-get -y install elixir && \
apt-get install erlang-base-hipe && \
mkdir /app

COPY mix.exs /app/mix.exs

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### Dockerfiles

* Elixir
* Phoenix
* Phoenix
* Django Rest Framework

0 comments on commit 7f7c016

Please sign in to comment.