Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: python
python:
- "3.6"
- "3.7"

install:
- "pip install -r requirements.txt"
Expand Down
20 changes: 11 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
FROM python:3.6-stretch
FROM python:3.7-slim-buster
MAINTAINER Devin Matte <[email protected]>

RUN mkdir /opt/packet
RUN apt-get -yq update && \
apt-get -yq --no-install-recommends install gcc curl libsasl2-dev libldap2-dev libssl-dev && \
apt-get -yq clean all

ADD requirements.txt /opt/packet
RUN mkdir /opt/packet

WORKDIR /opt/packet

RUN apt-get -yq update && \
apt-get -yq --allow-unauthenticated install libsasl2-dev libldap2-dev libssl-dev && \
pip install -r requirements.txt && \
apt-get -yq clean all
COPY requirements.txt /opt/packet

RUN pip install -r requirements.txt

ADD . /opt/packet
COPY . /opt/packet

RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get -yq update && \
apt-get -yq install nodejs npm yarn && \
apt-get -yq --no-install-recommends install nodejs yarn && \
yarn install && \
npm install -g gulp && \
gulp production && \
rm -rf node_modules && \
apt-get -yq remove nodejs npm yarn && \
apt-get -yq autoremove && \
apt-get -yq clean all

RUN ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# CSH Web Packet

[![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/)
[![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370/)
[![Build Status](https://travis-ci.com/ComputerScienceHouse/packet.svg?branch=develop)](https://travis-ci.com/ComputerScienceHouse/packet)

Packet is used by CSH to facilitate the freshmen packet portion of our introductory member evaluation process. This is
the second major iteration of packet on the web. The first version was
[Tal packet](https://github.com/TalCohen/CSHWebPacket).

## Setup
**Requires Python 3.6 or newer.**
**Requires Python 3.7 or newer.**

To get the server working you'll just need the Python dependencies and some secrets. There will be some UI issues due
to missing assets though. To solve that you'll want to set up the front end dependencies or download a copy of the
Expand Down