Remove older Debian Dockerfiles

This commit is contained in:
Ben Sturmfels 2023-09-15 21:59:00 +10:00
parent bc4c5deec4
commit 6c0daf9410
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
4 changed files with 1 additions and 36 deletions

View file

@ -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"]

View file

@ -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"]

View file

@ -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"]

View file

@ -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'