Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@ FROM python:3.6.8

ENV PYTHONUNBUFFERED 1
ENV SECRET_KEY="an insecure development secret"
ENV FRONTEND_DIR="/opt/PyTexas2019/"

COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

COPY Django-Conference /opt/DjangoConference
RUN pip install -e /opt/DjangoConference

COPY PyTexasBackend /opt/PyTexasBackend
WORKDIR /opt/PyTexasBackend
COPY PyTexas /opt/PyTexas
WORKDIR /opt/PyTexas

RUN pip install -r requirements.txt
Comment thread
pizzapanther marked this conversation as resolved.
Outdated
RUN python manage.py migrate
18 changes: 1 addition & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@ The pytexas.org website, dockerized.

0. Install [Docker](https://docs.docker.com/install/)
0. Install [docker-compose](https://docs.docker.com/compose/install/)
0. Clone the necessary repos:
* `git clone git@github.com:pytexas/PyTexasBackend.git`
* `git clone git@github.com:pytexas/PyTexas2019.git`
* `git clone git@github.com:pizzapanther/Django-Conference.git`
0. Clone the repos `git clone git@github.com:pytexas/PyTexas.git`
0. `docker-compose up`
0. Visit <http://localhost:8000>

## Weirdness

The dependencies for the backend are included in this repo as `requirements.in`
and `requirements.txt` because pipenv is overkill for dependencies inside
Docker containers.

To rebuild the `requirements.txt` file after modifying `requirements.in`:

```
$ pip install pip-tools
$ pip-compile requirements.in
```
39 changes: 0 additions & 39 deletions requirements.txt

This file was deleted.