Skip to content

Commit 29b467a

Browse files
Merge pull request #107 from FSU-ACM/release
deployment + ui/ux updates
2 parents 035580c + f03ad97 commit 29b467a

File tree

38 files changed

+460
-368
lines changed

38 files changed

+460
-368
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ WORKDIR /app
3636
USER app_user:app_user
3737

3838
COPY --chown=app_user:app_user src .
39-
COPY --chown=app_user:app_user deploy/prod/contestsuite/scripts/*.sh docker/
39+
COPY --chown=app_user:app_user scripts/docker/ docker/
4040

4141
RUN chmod +x docker/*.sh
4242

Pipfile.lock

Lines changed: 114 additions & 114 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/dev/scripts/celery/worker/runworker.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

deploy/dev/scripts/django/runserver.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

deploy/prod/contestsuite/docker-swarm.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ services:
4141
- contestsuite_email_user
4242
- contestsuite_email_password
4343
- contestsuite_discord_guild_id
44+
- contestsuite_gtag
4445
environment:
4546
# Django
4647
SECRET_KEY: /run/secrets/contestsuite_django_key # Project secret key
@@ -62,6 +63,9 @@ services:
6263

6364
# Hashid Module
6465
HASHID_FIELD_SALT: /run/secrets/contestsuite_hashid_key # Global Salt
66+
67+
# Analytics
68+
GTAG: /run/secrets/contestsuite_gtag # Google site tag
6569
volumes:
6670
- django_app:/app/media
6771
- django_static:/app/static
@@ -331,6 +335,9 @@ secrets:
331335
external: true
332336
contestsuite_flower_cookie_key:
333337
external: true
338+
# Analytics
339+
contestsuite_gtag:
340+
external: true
334341
volumes:
335342
django_app:
336343
django_db:

requirements-dev.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
-i https://pypi.python.org/simple
2-
astroid==2.14.1 ; python_full_version >= '3.7.2'
2+
astroid==2.14.2 ; python_full_version >= '3.7.2'
33
autopep8==2.0.1
44
dill==0.3.6 ; python_version < '3.11'
55
isort==5.12.0 ; python_full_version >= '3.8.0'
66
lazy-object-proxy==1.9.0 ; python_version >= '3.7'
77
mccabe==0.7.0 ; python_version >= '3.6'
8-
platformdirs==2.6.2 ; python_version >= '3.7'
8+
platformdirs==3.0.0 ; python_version >= '3.7'
99
pycodestyle==2.10.0 ; python_version >= '3.6'
10-
pylint==2.16.1
10+
pylint==2.16.2
1111
tomli==2.0.1 ; python_version < '3.11'
1212
tomlkit==0.11.6 ; python_version >= '3.6'
13-
typing-extensions==4.4.0 ; python_version >= '3.7'
13+
typing-extensions==4.5.0 ; python_version >= '3.7'
1414
wrapt==1.14.1 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
1515
aiohttp==3.7.4.post0 ; python_version >= '3.6'
1616
amqp==5.1.1 ; python_version >= '3.6'
@@ -31,7 +31,7 @@ defusedxml==0.7.1 ; python_version >= '2.7' and python_version not in '3.0, 3.1,
3131
deprecated==1.2.13 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
3232
diff-match-patch==20200713 ; python_version >= '2.7'
3333
discord.py==1.7.3
34-
django==4.1.6
34+
django==4.1.7
3535
django-celery-beat==2.4.0
3636
django-hashid-field==3.3.7
3737
django-import-export==3.0.2
@@ -40,15 +40,15 @@ et-xmlfile==1.1.0 ; python_version >= '3.6'
4040
flower==1.2.0
4141
gunicorn==20.1.0
4242
hashids==1.3.1 ; python_version >= '2.7'
43-
hiredis==2.2.1
43+
hiredis==2.2.2
4444
humanize==4.6.0 ; python_version >= '3.7'
4545
idna==3.4 ; python_version >= '3.5'
4646
kombu==5.2.4 ; python_version >= '3.7'
4747
markuppy==1.14
4848
multidict==6.0.4 ; python_version >= '3.7'
4949
mysqlclient==2.1.1
5050
odfpy==1.4.1
51-
openpyxl==3.1.0
51+
openpyxl==3.1.1
5252
packaging==23.0 ; python_version >= '3.7'
5353
prometheus-client==0.16.0 ; python_version >= '3.6'
5454
prompt-toolkit==3.0.36 ; python_full_version >= '3.6.2'
@@ -58,7 +58,7 @@ pytz==2022.7.1
5858
pyyaml==6.0
5959
redis==4.1.4
6060
requests==2.28.2
61-
setuptools==67.1.0 ; python_version >= '3.7'
61+
setuptools==67.3.2 ; python_version >= '3.7'
6262
six==1.16.0
6363
sqlparse==0.4.3 ; python_version >= '3.5'
6464
tablib[html,ods,xls,xlsx,yaml]==3.3.0 ; python_version >= '3.7'

requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ defusedxml==0.7.1 ; python_version >= '2.7' and python_version not in '3.0, 3.1,
1818
deprecated==1.2.13 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
1919
diff-match-patch==20200713 ; python_version >= '2.7'
2020
discord.py==1.7.3
21-
django==4.1.6
21+
django==4.1.7
2222
django-celery-beat==2.4.0
2323
django-hashid-field==3.3.7
2424
django-import-export==3.0.2
@@ -27,15 +27,15 @@ et-xmlfile==1.1.0 ; python_version >= '3.6'
2727
flower==1.2.0
2828
gunicorn==20.1.0
2929
hashids==1.3.1 ; python_version >= '2.7'
30-
hiredis==2.2.1
30+
hiredis==2.2.2
3131
humanize==4.6.0 ; python_version >= '3.7'
3232
idna==3.4 ; python_version >= '3.5'
3333
kombu==5.2.4 ; python_version >= '3.7'
3434
markuppy==1.14
3535
multidict==6.0.4 ; python_version >= '3.7'
3636
mysqlclient==2.1.1
3737
odfpy==1.4.1
38-
openpyxl==3.1.0
38+
openpyxl==3.1.1
3939
packaging==23.0 ; python_version >= '3.7'
4040
prometheus-client==0.16.0 ; python_version >= '3.6'
4141
prompt-toolkit==3.0.36 ; python_full_version >= '3.6.2'
@@ -45,12 +45,12 @@ pytz==2022.7.1
4545
pyyaml==6.0
4646
redis==4.1.4
4747
requests==2.28.2
48-
setuptools==67.1.0 ; python_version >= '3.7'
48+
setuptools==67.3.2 ; python_version >= '3.7'
4949
six==1.16.0
5050
sqlparse==0.4.3 ; python_version >= '3.5'
5151
tablib[html,ods,xls,xlsx,yaml]==3.3.0 ; python_version >= '3.7'
5252
tornado==6.2 ; python_version >= '3.7'
53-
typing-extensions==4.4.0 ; python_version >= '3.7'
53+
typing-extensions==4.5.0 ; python_version >= '3.7'
5454
tzdata==2022.7 ; python_version >= '2'
5555
urllib3==1.26.14 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
5656
vine==5.0.0 ; python_version >= '3.6'

scripts/celery/worker/runworker.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
export DEBUG=True
4+
exec celery -A ../../src/contestsuite worker -l INFO

scripts/django/runserver.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
export DEBUG=True
4+
exec python3 ../../src/manage.py runserver localhost:8000

0 commit comments

Comments
 (0)