diff --git a/Dockerfile-debian-bullseye b/Dockerfile-debian-bullseye deleted file mode 100644 index 6651ce7a187751d96d6082d386546855b84384c9..0000000000000000000000000000000000000000 --- a/Dockerfile-debian-bullseye +++ /dev/null @@ -1,12 +0,0 @@ -# docker build --tag sfconservancy.org-bullseye - < Dockerfile-debian-bullseye -# 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-bullseye:latest - -ARG DEBIAN_FRONTEND=noninteractive - -FROM debian:bullseye -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-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"] diff --git a/Dockerfile-debian-buster b/Dockerfile-debian-buster deleted file mode 100644 index 050bc2c00e4c3ee45090db63174e26facda4f1b3..0000000000000000000000000000000000000000 --- a/Dockerfile-debian-buster +++ /dev/null @@ -1,10 +0,0 @@ -# docker build --tag sfconservancy.org-buster - < Dockerfile-debian-buster -# 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-buster:latest - -ARG DEBIAN_FRONTEND=noninteractive - -FROM debian:buster -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-django-countries -ENTRYPOINT ["python3", "/var/www/website/www/manage.py", "runserver", "0.0.0.0:8000"] diff --git a/Dockerfile-debian-stretch b/Dockerfile-debian-stretch deleted file mode 100644 index 433bf7017811b1147cb9b1db72c867e1432ddd3b..0000000000000000000000000000000000000000 --- a/Dockerfile-debian-stretch +++ /dev/null @@ -1,14 +0,0 @@ -# docker build --tag sfconservancy.org-stretch - < Dockerfile-debian-stretch -# 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-stretch:latest - -ARG DEBIAN_FRONTEND=noninteractive - -FROM debian:stretch -# Default Stretch repositories are no longer available, so replacing with archive. -RUN echo "deb http://archive.debian.org/debian/ stretch main" > /etc/apt/sources.list -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-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"] diff --git a/deploy/install.yml b/deploy/install.yml index 5f97bb3945ac1b4d79e1e5a4faa1c22e0676825f..9b2837bb6407b6e4023ef6342dcd1bba0f3703e5 100644 --- a/deploy/install.yml +++ b/deploy/install.yml @@ -133,6 +133,7 @@ group: www-data mode: '0755' + # TODO: Needs to force owner to www-data:www-data - name: Git checkout ansible.builtin.git: repo: 'https://k.sfconservancy.org/website'