Add support for Debian Bookworm
This commit is contained in:
parent
05323a307d
commit
cf3d7c6100
8 changed files with 25 additions and 16 deletions
12
Dockerfile-debian-bookworm
Normal file
12
Dockerfile-debian-bookworm
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# docker build --tag sfconservancy.org-bookworm - < Dockerfile-debian-bookworm
|
||||||
|
# docker run --tty --interactive --rm=true --publish=8000:8000 --mount type=bind,source=$(pwd),target=/var/www/website --mount type=bind,source=$(pwd)/conservancy-website.sqlite3,target=/var/lib/www/database/conservancy-website.sqlite3 sfconservancy.org-bookworm:latest
|
||||||
|
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
FROM debian:bookworm
|
||||||
|
RUN apt-get update && apt-get upgrade -y
|
||||||
|
RUN apt-get install -y python3 python3-pip python3-wheel sqlite3
|
||||||
|
RUN apt-get install -y python3-django python3-bs4 python3-html5lib python3-django-countries
|
||||||
|
RUN python3 -m pip freeze
|
||||||
|
WORKDIR /var/www/website/www
|
||||||
|
ENTRYPOINT ["python3", "/var/www/website/www/manage.py", "runserver", "0.0.0.0:8000"]
|
|
@ -9,4 +9,6 @@ RUN echo "deb http://archive.debian.org/debian/ stretch main" > /etc/apt/sources
|
||||||
RUN apt-get update && apt-get upgrade -y
|
RUN apt-get update && apt-get upgrade -y
|
||||||
RUN apt-get install -y python3 python3-pip python3-wheel sqlite3
|
RUN apt-get install -y python3 python3-pip python3-wheel sqlite3
|
||||||
RUN apt-get install -y python3-django python3-bs4 python3-django-countries
|
RUN apt-get install -y python3-django python3-bs4 python3-django-countries
|
||||||
|
RUN python3 -m pip freeze
|
||||||
|
WORKDIR /var/www/website/www
|
||||||
ENTRYPOINT ["python3", "/var/www/website/www/manage.py", "runserver", "0.0.0.0:8000"]
|
ENTRYPOINT ["python3", "/var/www/website/www/manage.py", "runserver", "0.0.0.0:8000"]
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
beautifulsoup4==4.9.3
|
Django==3.2.19
|
||||||
Django==1.11.29
|
beautifulsoup4==4.11.2
|
||||||
soupsieve==1.9.6
|
html5lib==1.1
|
||||||
html5lib==0.999999999
|
django_countries==7.3.2
|
||||||
|
|
||||||
django_countries==5.5 # Supports both Python 2 and 3.
|
|
||||||
|
|
|
@ -2,4 +2,4 @@ from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
class AssignmentConfig(AppConfig):
|
class AssignmentConfig(AppConfig):
|
||||||
name = 'assignment'
|
name = 'conservancy.apps.assignment'
|
||||||
|
|
|
@ -2,4 +2,4 @@ from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
class FOSSYConfig(AppConfig):
|
class FOSSYConfig(AppConfig):
|
||||||
name = 'fossy'
|
name = 'conservancy.apps.fossy'
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
from conservancy.apps.fundgoal.models import FundraisingGoal
|
from conservancy.apps.fundgoal.models import FundraisingGoal
|
||||||
from django.shortcuts import get_object_or_404, render_to_response
|
|
||||||
from django.template import RequestContext
|
|
||||||
from django.http import JsonResponse
|
from django.http import JsonResponse
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,7 +9,8 @@ def view(request):
|
||||||
'fundraiser_donation_count_disclose_threshold' ]
|
'fundraiser_donation_count_disclose_threshold' ]
|
||||||
GET = request.GET
|
GET = request.GET
|
||||||
codeNames = []
|
codeNames = []
|
||||||
if 'code_name' in GET: codeNames += GET.getlist('code_name')
|
if 'code_name' in GET:
|
||||||
|
codeNames += GET.getlist('code_name')
|
||||||
|
|
||||||
returnDict = {}
|
returnDict = {}
|
||||||
for fundGoal in FundraisingGoal.objects.filter(fundraiser_code_name__in=codeNames):
|
for fundGoal in FundraisingGoal.objects.filter(fundraiser_code_name__in=codeNames):
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
from conservancy.apps.supporters.models import Supporter
|
|
||||||
from django.shortcuts import get_object_or_404, render_to_response
|
|
||||||
from django.template import RequestContext
|
|
||||||
|
|
|
@ -100,3 +100,5 @@ INSTALLED_APPS = [
|
||||||
'conservancy.apps.assignment',
|
'conservancy.apps.assignment',
|
||||||
'conservancy.apps.fossy',
|
'conservancy.apps.fossy',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
|
||||||
|
|
Loading…
Reference in a new issue