Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile.prod.celery
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:2.7

RUN mkdir -p /app/
WORKDIR /app
RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf
# RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf

COPY ./kuiper/requirements_3.txt ./requirements_3.txt
COPY ./kuiper/requirements_2.7.txt ./requirements_2.7.txt
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.prod.flask
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:2.7

RUN mkdir -p /app/
WORKDIR /app
RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf
# RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf

COPY ./kuiper/requirements_3.txt ./requirements_3.txt
COPY ./kuiper/requirements_2.7.txt ./requirements_2.7.txt
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile.prod.redis
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
FROM redis:latest

RUN apt update
RUN apt install -y python3 python3-pip cron
RUN pip install --upgrade pip
RUN apt install -y python3 python3-pip cron python3-venv
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"

RUN pip install --upgrade pip
RUN pip install redis
RUN pip install requests
RUN pip install psutil

COPY ./system_health/ /system_health/


COPY ./system_health/crontabs/crontab.redis /etc/cron.d/crontab
RUN chmod 0644 /etc/cron.d/crontab
RUN crontab /etc/cron.d/crontab
RUN touch /var/log/cron_redis.log


CMD cron && docker-entrypoint.sh redis-server