From 9457ebea575f0fb6dbd571d4eb2766d21289cea7 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 1 May 2020 14:11:05 +0200 Subject: Removed Dockerfile and docker-compose.yml. --- Dockerfile | 36 ------------------------------------ README.md | 10 ---------- docker-compose.yml | 32 -------------------------------- 3 files changed, 78 deletions(-) delete mode 100644 Dockerfile delete mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 29088229..00000000 --- a/Dockerfile +++ /dev/null @@ -1,36 +0,0 @@ -FROM python:3.8-alpine - -RUN apk update && \ - apk add \ - build-base \ - curl \ - git \ - libffi-dev \ - openssl-dev \ - libxml2-dev \ - libxslt-dev \ - libpq \ - postgresql-client \ - postgresql-dev \ - npm - -WORKDIR newspipe - -COPY newspipe newspipe/ -COPY instance instance/ -COPY runserver.py . -COPY package.json . -COPY package-lock.json . -COPY pyproject.toml . -COPY poetry.lock . -COPY wait-for-postgres.sh . - -RUN chmod +x ./wait-for-postgres.sh - -RUN mkdir node_modules -RUN npm install -RUN mkdir -p newspipe/static/npm_components -RUN cp -R node_modules/* newspipe/static/npm_components/ - -RUN pip install poetry -RUN poetry install diff --git a/README.md b/README.md index ee043633..3f416751 100644 --- a/README.md +++ b/README.md @@ -80,16 +80,6 @@ $ export NEWSPIPE_CONFIG=postgresql.py For production you can use [Gunicorn](https://gunicorn.org) or ``mod_wsgi``. -### Deployment with Docker - -```bash -$ git clone https://git.sr.ht/~cedric/newspipe -$ cd newspipe/ -$ docker-compose up -``` - -The login will be *admin* and the password *password*. - ## License diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index efc52627..00000000 --- a/docker-compose.yml +++ /dev/null @@ -1,32 +0,0 @@ -version: '3' -services: - - db: - image: postgres:latest - hostname: db - restart: always - environment: - - POSTGRES_USER=postgres - - POSTGRES_PASSWORD=password - - POSTGRES_DB=postgres - ports: - - '5532:5432' - expose: - - '5532' - volumes: - - ./docker/postgres/data:/var/lib/postgresql/data - - newspipe: - build: - context: . - dockerfile: ./Dockerfile - tty: true - environment: - - NEWSPIPE_CONFIG=/newspipe/instance/config.py - ports: - - "5000:5000" - expose: - - '5000' - depends_on: - - db - command: "./wait-for-postgres.sh db" -- cgit