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 all commits
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
RUN pip install -r PyTexas/requirements.txt
COPY PyTexas /opt/PyTexas
WORKDIR /opt/PyTexas

RUN python manage.py migrate
6 changes: 3 additions & 3 deletions Dockerfile.static
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
From node:8.9.4 as static

COPY PyTexas2019 /opt/PyTexas2019
ENV PATH=$PATH:./node_modules/.bin
COPY PyTexas /opt/PyTexas

WORKDIR /opt/PyTexas2019
WORKDIR /opt/PyTexas

RUN set -x \
&& npm install -g npm@latest \
&& npm install -g gulp-cli parcel-bundler \
&& npm install
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
```
7 changes: 3 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ services:
context: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./PyTexasBackend:/opt/PyTexasBackend
- ./PyTexas2019:/opt/PyTexas2019
- ./PyTexas:/opt/PyTexas
ports:
- "8000:8000"

Expand All @@ -17,5 +16,5 @@ services:
dockerfile: Dockerfile.static
command: gulp watch
volumes:
- ./PyTexas2019:/opt/PyTexas2019
- /opt/PyTexas2019/node_modules
- ./PyTexas:/opt/PyTexas
- /opt/PyTexas/node_modules
15 changes: 0 additions & 15 deletions requirements.in

This file was deleted.

39 changes: 0 additions & 39 deletions requirements.txt

This file was deleted.