Commit 519e86b7 authored by Michael T Bailey's avatar Michael T Bailey
Browse files

DELete aLL the tHINgs

parent f07d9c50
############################################################
# Dockerfile to build SRCTweb flask application
# Based on Ubuntu
############################################################
# Instructions:
#
# Build: sudo docker build -t srctweb .
# Run: sudo docker run -p 8000:80 -i -t -d srctweb
#
# You'll need to reverse proxy port 8000 via nginx
# Set the base image to Ubuntu
FROM ubuntu
# File Author / Maintainer
MAINTAINER Student-Run Computing and Technology - GMU
# Update the sources list
RUN apt-get update
# Install basic applications
RUN apt-get install -y tar git curl nano wget dialog net-tools build-essential
# Install Python and Basic Python Tools
RUN apt-get install -y python python-dev python-distribute python-pip
# Clone down SRCT-Web
RUN git clone https://github.com/srct/srctweb.git srctweb
# Get pip to download and install requirements:
RUN pip install -r /srctweb/requirements.txt
# Expose ports
EXPOSE 80
# Set the default directory where CMD will execute
WORKDIR /srctweb/srctweb
# Use Gunicorn to serve the application
CMD gunicorn srctweb:website -b 0.0.0.0:80
SRCTweb -- the homepage of Mason SRCT
Copyright (C) 2014 Mason SRCT
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
srct-general@lists.srct.gmu.edu
Mason SRCT
George Mason University
4400 University Drive MSN 2D6
Fairfax, VA 22030
You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:
This is to be determined for the time being--
http://techtransfer.gmu.edu/
Yoyodyne, Inc., hereby disclaims all copyright
interest in the program `Gnomovision'
(which makes passes at compilers) written
by James Hacker.
signature of Ty Coon, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into proprietary programs.
SRCTweb
===
Our own little site on the world wide web!
On Contributing
---
SRCTweb welcomes all the help it can get. Even if you don't feel like you can be helpful with the more technical aspects, we definitely need designers, technical writers, and testers.
There are many things that can be done with this project (see the "To Do" section), but sometimes it's the small things that count, so don't be afraid of contributing something as small as a spelling mistake.
If you need help, please contact a SRCT member. We want people to contribute, so if you are struggling, or just want to learn, we are more than willing to help.
The project lead for this project is **Daniel Bond**. *dbond2@gmu.edu*
Please visit the [SRCT Wiki](http://wiki.srct.gmu.edu/) for more information on this and other SRCT projects, along with other helpful links and tutorials.
Setup
---
To get started, you'll need the following installed:
* [Git](http://git-scm.com/book/en/Getting-Started-Installing-Git)
* [Python 2.7.3](http://www.python.org/download/)
* [Pip](http://www.pip-installer.org/en/latest/install.html)
* [virtualenv](http://www.virtualenv.org/en/latest/index.html#installation)
Open a terminal window and type in the following commands. (If you're on Windows, use [Cygwin](http://www.cygwin.com/). This will create a local, workable copy of the project.)
(set up pip and virtualenv)
```bash
bash
git clone git@git.gmu.edu:srct/srctweb.git
cd srctweb/
pip install -r requirements.txt
cd srctweb/
python srctweb.py
```
To-do
---
Note-- this should also be on the [wiki](http://wiki.srct.gmu.edu/)
**1.1 Release**
* Set up database for people, meeting date on index page, projects
* Figure out where to put a link to meeting notes
* Jeykll for meeting notes, finish hackmason (both not in this repository)
* Figure out parallaxjs for front page
* Figure out intellectual property with GMU
* Finish writing privacy policy
* Affix js for documents navigation-- example http://www.bootstrapzero.com/bootstrap-template/affix-sidebar
---
**S**tudent - **R**un **C**omputing and **T**echnology (*SRCT*, pronounced "circuit") is a student organization at George Mason University which enhances student computing at Mason. SRCT establishes and maintains systems which provide specific services for Mason's community.
#!flask/bin/python
import sys
from website import website
from website import freezer
if __name__ == '__main__': ## This is for debugging use only.
if len(sys.argv) > 1 and sys.argv[1] == "build":
freezer.freeze()
sys.exit();
website.run(debug=True)
## This is for execution via gunicorn.
# gunicorn command
# gunicorn srctweb:website -b 127.0.0.1:8001
from flask import Flask
from flask.ext.gravatar import Gravatar
from flask_frozen import Freezer
website = Flask(__name__)
freezer = Freezer(website)
from website import views
# initialize gravatar defaults
gravatar = Gravatar(website,
size = 80,
rating='g',
default='mm',
force_default=False,
use_ssl=True,
base_url=None)
body{padding-top:45px}
#banner{border-bottom:none}
.page-header h1{font-size:4em}
.bs-docs-section{margin-top:8em}
footer{margin:5em 0}footer li{float:left;margin-right:1.5em;margin-bottom:1.5em}
footer p{clear:left;margin-bottom:0}
.splash{background-color:#1c2533;background:-webkit-linear-gradient(70deg, #080f1f 30%, #2b4b5a 87%, #435e67 100%);background:-o-linear-gradient(70deg, #080f1f 30%, #2b4b5a 87%, #435e67 100%);background:-ms-linear-gradient(70deg, #080f1f 30%, #2b4b5a 87%, #435e67 100%);background:-moz-linear-gradient(70deg, #080f1f 30%, #2b4b5a 87%, #435e67 100%);background:linear-gradient(20deg, #080f1f 30%, #2b4b5a 87%, #435e67 100%);background-attachment:fixed;padding:6em 0 2em;color:#fff;text-align:center}.splash .alert{margin:4em 0 2em}
.splash h1{font-size:4em}
.splash #social{margin-top:6em}
.section-tout{padding:4em 0 3em;border-top:1px solid rgba(255,255,255,0.1);border-bottom:1px solid rgba(0,0,0,0.1);background-color:#eaf1f1}.section-tout .fa{margin-right:.5em}
.section-tout p{margin-bottom:3em}
.section-preview{padding:4em 0 4em}.section-preview .preview{margin-bottom:4em;background-color:#eaf1f1;border:1px solid rgba(0,0,0,0.1);border-radius:6px}.section-preview .preview .image{padding:5px}.section-preview .preview .image img{border:1px solid rgba(0,0,0,0.1)}
.section-preview .preview .options{text-align:center;padding:0 2em 2em}.section-preview .preview .options p{margin-bottom:2em}
.section-preview .dropdown-menu{text-align:left}
.section-preview .lead{margin-bottom:2em}
@media (max-width:767px){.section-preview .image img{width:100%}}
.bsa .one .bsa_it_ad{border:none !important;background-color:transparent !important}.bsa .one .bsa_it_ad .bsa_it_t,.bsa .one .bsa_it_ad .bsa_it_d{color:inherit !important}
.bsa .one .bsa_it_p{display:none}
This diff is collapsed.
This diff is collapsed.
/* Sticky footer styles */
/* The html and body elements cannot have any padding or margin. */
html,
body {
height:100%;
}
a[name] {
padding-top: 50px;
}
/* Wrapper for page content to push down footer */
#wrap {
min-height: 100%;
height: auto;
/* Negative indent footer by its height */
margin: 0 auto -100px;
/* Pad bottom by footer height */
padding: 0 0 130px;
}
/* Set the fixed height of the footer here */
#footer {
height: 100px;
background-color: #e4e6d7;
}
@font-face {
font-family: 'Xolonium';
src: url('../fonts/Xolonium-Regular.otf') format("opentype");
}
.xolonium {
font-family: Xolonium;
}
.srct-title {
color: white;
font-size: 1.72em;
text-shadow: 1px 1px 6px #333;
}
.jumbostyle {
background: url(/static/img/meeting.jpg) no-repeat;
background-size: cover;
background-position: 20%;
box-shadow: inset 0px 0px 20px #333;
padding-top: 100px;
padding-bottom: 100px;
}
.srctlogo {
width: 10px;
}
.smidge {
padding-bottom: 10px;
}
.smidgen {
padding-bottom: 5px;
}
/** People Page **/
.people-left {
padding-left:0;
padding-right:0;
}
.people-right {
padding-right:0;
padding-left:0;
}
.gravatar {
width:80px;
height:80px;
}
.devs tr > td:first-of-type, .devs2 tr > td:first-of-type {
width:50%;
}
#executive td {
vertical-align: middle;
}
@media(max-width:992px) {
#executive td:first-of-type, #executive th:first-of-type {
display:none;
}
.devs2 thead {
display: none;
}
.devs {
margin-bottom:0;
}
}
@media(min-width:992px){
.people-left {
padding-right:15px;
}
.people-right {
padding-left:15px;
}
}
/** Calendar Page **/
/**
* A cool little hack I found to try to allow a responsive Google Cal:
* http://themeloom.com/2013/02/tips-embed-google-maps-and-calendars-in-a-responsive-wordpress-theme/
**/
.googlecal-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
}
.googlecal-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/** Projects Page **/
.project-entry {
margin-bottom:10px;
}
.project-icon {
text-align:center;
display: block;
font-size:100px;
margin:0 auto;
padding-bottom: 10px;
}
/* can't you extend CSS classes? */
.project-link {
/* Padding and margin business because of the static header */
padding-top:50px !important;
margin-top:-50px;
display:block;
color:#000;
}
.project-link:hover, .project-link:active, .project-link:focus {
text-decoration: none;
outline:0;
}
.project-icon-stacked {
font-size:55px;
}
.project-role {
width: 150px;
display: inline-block;
color: #3c4042;
font-weight: bold;
display: inline-block;
text-align: left;
background: transparent;
font-size: 0.9em;
}
.project-text {
margin-top:10px;
padding-bottom:15px;
}
#banner {
/*background:#FBFCCA;*/
background: #e4e6d7;
/*background: #ffcc33;*/
/*background: #27AE60;*/
width: 100%;
margin-bottom: 15px;
}
.page-header {
margin-top:0;
border-bottom:none;
}
::,,
::::::,, ,,::,,
,,;;;;,, ::;;;;;;
,,,,;;;;:: ::::::'',,
,,,,;;;;::,, ,,::::::;;;;;
,,::;;;;:::: ,,;;::::;;;;;;'
,,,,::::;;;;;;::,, ,,::;;::;;;;;;;;;;'
::::;;::,,::::::::::::::::::::,,,,,,,,::::;;;;;;;;'';;;;
::::::::,,,,,,,,::::::::::::,,::::::::;;::::'';;;;''++'';;;;
::::::::::,,,,,,,,,,::::::::::::::,,,,,,::::;;;;''::;;''++++;;;;;;
::::::::,,,,,,,,,,,,,,,,::;;::::::::::::::::::::'';;;;;;''++'';;;;;;
::::,,,,,,,,,,,,....,,,,::::;;::::::::::::::::::::::;;'';;;;##++''::;;;;
::,,..,,,,,,,,,,......,,::;;::::::::::::::::::::::::,,;;;;##++++;;::;;,,
,,..,,....,,,,,,,,..,,::::::::::,,,,,,,,::::::::::::::::;;''++;;;;::'',,
,,....,,..,,,,..,,,,,,,,::::::::,,,,,,,,,,::;;::::::::::::::;;;;;;::''::::
,,,........,,####'',,,,::::::::,,,,,,,,,,,,::::::::::::::,,,,,,::;;;;;;;;::
........``..;;++++;;::,,,,,,::::,,,,,,,,,,,,,,::::::::::,,::,,,,,,::;;;;''::,
........``````;;++##++,,,,,,,,,,,,,,,,,,::++''::::::::::::::,,::,,,,,,::'';;,,
.......````....;;++++::,,,,,,,,,,::::::;;''``##@@;;;;::::::,,::::,,,,,,::;;'';;::
........````..,,,,::,,,,,,,,,,..,,::;;++##,,########;;::::,,,,::::,,,,,,::::;;;;::
......``````..,,,,..,,,,,,..,,,,,,,,::''++;;++##++;;,,,,,,,,,,,,,,,,,,::::::::::::
......``````........,,,,,,..,,,,,,::::::;;''::,,,,,,....,,,,,,,,,,,,,,,,,,::::::::
....``..``````..,,,,,,,,,,....,,,,,,::::::,,::,,,,,,,,........,,,,,,,,,,,,,,::::::
,,..``....``;;;;;;;;''::,,,,..,,,,,,,,,,,,::,,::,,,,,,......,,,,,,,,,,,,,,,,::::::
,,........::##########++''......,,,,,,,,,,..,,,,,,,,,,................,,,,,,,,::,,
,,......``,,@@++##@@####++........,,,,,,,,......,,,,................,,,,,,,,,,::::
,,....``..;;++######@@##'',,,,....,,,,,,................,,....,,,,,,,,,,,,,,::::::
,,........::++++######++;;,,::,,,,,,,,,,,,,,................,,,,,,,,,,,,,,::::::::
,,......,,;;''++####'';;::,,,,,,,,,,,,,,....,,,,,,....,,,,,,,,,,,,,,,,,,,,::::::::
,,......,,;;''++++++'';;::::::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::
,,......,,;;''++++'';;::::::::,,::::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::
,,........,,++++######++;;::::::::::::::::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::
,,........,,''++++++++####++::''++##++;;::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::
``........,,,,;;''++++++++++++'';;::::,,,,::,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::
``.......,,,,::;;;;;;::;;;;::;;;;::::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::
``........,,,,,,::::::::::::::::,,,,,,,,,,,,,,,,,,,,,,..,,,,,,,,::::::::
``......,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::,,,,,,,,,,,,,,,,,,,,,,:::::::::
`......,,,,,,,,,,,,,,::,,,,::::::::::,,,,,,,,,,,,,,,,,,,,,,,,::::::
,,,,,,,,,,,,,,,,,,,,,,,,::,,::::::::,,,,,,..,,,,,,,,,,,,,,::::
,,,,,,,,,,,,,,,,::,,,,::,,,,::,,,,,,..,,,,,,,,,,,,::,,::
,,,,,,,,,,,,,,,,,,::,,::::::,,,,,,,,,,,,,,,,,,
This diff is collapsed.
SRCT is the product of the many GMU students who make it happen, through
contributions large and small, constantly updating our code repositories. If
you'd like to help out too, check out srct.gmu.edu/contact.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment