Skip to content

Commit d10ed44

Browse files
committed
update travis
1 parent ceb43a5 commit d10ed44

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ services:
44
- docker
55

66
script:
7-
- docker-compose up -d
7+
- docker-compose up -d --build
8+
- docker-compose stop
9+
- docker-compose -f docker-compose.yml -f docker-compose.development.yml up --build
810
- docker-compose stop
911

celery-queue/Dockerfile

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +0,0 @@
1-
FROM python:3.6-alpine
2-
3-
ENV CELERY_BROKER_URL redis://redis:6379/0
4-
ENV CELERY_RESULT_BACKEND redis://redis:6379/0
5-
ENV C_FORCE_ROOT true
6-
7-
COPY . /queue
8-
WORKDIR /queue
9-
10-
RUN pip install -r requirements.txt
11-
12-
# production
13-
#ENTRYPOINT celery -A tasks worker --loglevel=info
14-
15-
# hot code reloading
16-
ENTRYPOINT watchmedo auto-restart --directory=./ --pattern=*.py --recursive -- celery -A tasks worker --concurrency=1 --loglevel=INFO

celery-queue/Dockerfile.dev

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM python:3.6-alpine
2+
3+
ENV CELERY_BROKER_URL redis://redis:6379/0
4+
ENV CELERY_RESULT_BACKEND redis://redis:6379/0
5+
ENV C_FORCE_ROOT true
6+
7+
COPY . /queue
8+
WORKDIR /queue
9+
10+
RUN pip install -r requirements.txt
11+
12+
# production
13+
#ENTRYPOINT celery -A tasks worker --loglevel=info
14+
15+
# hot code reloading
16+
ENTRYPOINT watchmedo auto-restart --directory=./ --pattern=*.py --recursive -- celery -A tasks worker --concurrency=1 --loglevel=INFO

0 commit comments

Comments
 (0)