tester in docker works

This commit is contained in:
Egor Matveev
2021-11-02 23:33:38 +03:00
parent a45d3e104b
commit 928cc4489d
35 changed files with 321 additions and 184 deletions

View File

@@ -0,0 +1,2 @@
FROM postgres
COPY ../../pg_hba.conf /var/lib/postgresql/data/pg_hba.conf

View File

@@ -0,0 +1,2 @@
FROM rabbitmq:3.7.9-management
RUN rabbitmq-plugins enable rabbitmq_consistent_hash_exchange

View File

@@ -0,0 +1,17 @@
FROM docker:dind
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
RUN python3 -m ensurepip
RUN apk update && apk add postgresql-dev gcc python3-dev musl-dev jpeg-dev zlib-dev libjpeg
RUN pip3 install --no-cache --upgrade pip setuptools
ENV PYTHONUNBUFFERED 1
ENV DJANGO_SETTINGS_MODULE Sprint.settings
RUN mkdir -p /usr/src/app/
WORKDIR /usr/src/app/
COPY ../.. /usr/src/app/
RUN pip3 install -r requirements.txt
EXPOSE 8000

View File

@@ -0,0 +1,3 @@
FROM docker:dind
WORKDIR /usr/src/app/