-
Notifications
You must be signed in to change notification settings - Fork 6
Update repo + Docker #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
825467c
Update requirements
goosenotduck f1063b9
Make app run with updated dependencies
goosenotduck 6c5725c
update readme
goosenotduck 0ef5c47
Add env variables
goosenotduck 04fb015
docker
goosenotduck ab87ddd
correct filename
goosenotduck e4fc366
update dateutil
goosenotduck 5c352df
add docker docs
goosenotduck dca2274
Only copy needed files, remove dockerignore
goosenotduck 440fdad
Clarify install instructions
goosenotduck b870563
Make dockerfile production ready
goosenotduck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,43 @@ | ||
| # Jumpstart | ||
| ## Author: Beckett Jenen | ||
|
|
||
| [](https://github.com/RichardLitt/standard-readme) | ||
| A graphical interface that displays important information at the entrance of CSH. | ||
|
|
||
| A graphical interface that runs on a RPI in the lobby of my dorm. | ||
| See it live [here](https://jumpstart.csh.rit.edu)! | ||
|
|
||
| ## Install | ||
|
|
||
| This project uses [Python](http://nodejs.org), [Flask](https://npmjs.com), SQL, HTML/CSS, and Javascript. | ||
|
|
||
| 1. Download the zip file and open the code. | ||
| 2. Navigate into the folder. | ||
| 3. Run `pip install -r requirements.txt` | ||
| 4. Run `flask run` | ||
| 5. DM @drno in CSH slack, or email for secrets package | ||
| 1. Clone and cd into the repo: `git clone https://github.com/ComputerScienceHouse/Jumpstart` | ||
| 2. Run `pip install -r requirements.txt` | ||
| 3. Ask opcomm for secrets | ||
| - The secrets package follows the directory structure: | ||
| src/ | ||
| secrets/ | ||
| client_secrets.json | ||
| 6. Results | ||
| 4. Run `flask --app jumpstart run` | ||
| 5. Results | ||
|
|
||
| ## Usage | ||
| Jumpstart expects the following environment variables to be defined: | ||
| ``` | ||
| FLASK_APP=jumpstart:App | ||
| JUMPSTART_API_KEYS=KEYS | ||
| TZ=TIMEZONE | ||
| SENTRY_DSN=LINK | ||
| ``` | ||
| ## Docker | ||
|
|
||
| Go [here](https://jumpstart.csh.rit.edu) | ||
| 1. Ensure you are in the project root, then build the image locally with `docker built -t jumpstart .` | ||
| 2. Run with the following: (Be sure to update env variables) | ||
| ``` | ||
| docker run \ | ||
| -e FLASK_RUN_HOST=0.0.0.0 \ | ||
| -e FLASK_APP=jumpstart:App \ | ||
| -e JUMPSTART_API_KEYS=KEYS \ | ||
| -e TZ=America/New_York \ | ||
| -e SENTRY_DSN=LINK \ | ||
| -e GUNICORN_CMD_ARGS="-b=0.0.0.0:5000" \ | ||
| -v ./secrets:/usr/local/jumpstart/secrets \ | ||
| -p 5000:5000 \ | ||
| jumpstart | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| FROM python:3.13 | ||
| WORKDIR /usr/local/jumpstart | ||
|
|
||
| COPY requirements.txt . | ||
| RUN pip install --no-cache-dir -r requirements.txt | ||
|
|
||
| COPY jumpstart jumpstart | ||
|
|
||
| EXPOSE 5000 | ||
|
|
||
| RUN useradd jumpstart | ||
| RUN chown jumpstart /usr/local/jumpstart | ||
| RUN mkdir -p /usr/local/var | ||
| RUN chown jumpstart:jumpstart /usr/local/var | ||
| USER jumpstart | ||
|
|
||
| CMD ["gunicorn", "jumpstart:app"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,15 @@ | ||
| Babel~=2.6.0 | ||
| Flask~=1.1.1 | ||
| flask_httpauth~=3.3.0 | ||
| Flask_limiter~=1.1.0 | ||
| Flask-SQLAlchemy~=2.3.2 | ||
| google-api-python-client>=1.7.11 | ||
| google-auth-httplib2~=0.0.3 | ||
| google-auth-oauthlib~=0.4.1 | ||
| gunicorn~=19.9.0 | ||
| Babel~=2.17.0 | ||
| Flask~=3.1.2 | ||
| flask_httpauth~=4.8.0 | ||
| Flask_limiter~=3.13 | ||
| Flask-SQLAlchemy~=3.1.1 | ||
| google-api-python-client>=2.181 | ||
| google-auth-httplib2~=0.2.0 | ||
| google-auth-oauthlib~=1.2.2 | ||
| gunicorn~=23.0.0 | ||
| oauth2client~=4.1.3 | ||
| profanityfilter~=2.0.4 | ||
| python-dateutil~=2.6.1 | ||
| sentry-sdk[flask]~=0.13.2 | ||
| SQLAlchemy~=1.3.7 | ||
| profanityfilter~=2.1.0 | ||
| python-dateutil~=2.9.0.post0 | ||
| sentry-sdk[flask]~=2.38.0 | ||
| SQLAlchemy~=2.0.43 | ||
| pytz~=2025.2 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.