docker-django-celery-tutorial icon indicating copy to clipboard operation
docker-django-celery-tutorial copied to clipboard

celery-demo中DockerFiles

Open aron3312 opened this issue 7 years ago • 3 comments

感謝分享 分享一下今天試跑遇到的狀況,也許有人會有同樣問題 跑過後發現DockerFiles 中mkdir應該與準備COPY過去的app folder命名不同,不然在run command會有錯誤 另外若跑的時候有Celery AttributeError: async error的朋友 可以試試看 update celery到4.1.1版

aron3312 avatar May 31 '18 17:05 aron3312

@aron3312 不太懂,你是指 Dockerfile 中的

RUN mkdir /django_crawler_celery
COPY . /django_crawler_celery/

這兩個要不一樣?

twtrubiks avatar Jun 02 '18 02:06 twtrubiks

哈囉,後來我發現是因為我是win7,用的是docker toolbox。然後我原先fork的資料夾不是放在USER裡面,volumes一直抓不到所以沒有copy過去。所以當時我的作法等於是新建一個不是volume的資料夾COPY DATA過去RUN 後來改放到USER資料夾內就可以同步到了! 但版本部分的確我要使用4.1.1才會work。 謝謝你還特別回覆,非常感謝你寫了許多很詳細的教學,我也跟著學了許多新東西!

aron3312


寄件者: twtrubiks [email protected] 寄件日期: 2018年6月2日 上午 10:32:08 收件者: twtrubiks/docker-django-celery-tutorial 副本: 藍景彥; Mention 主旨: Re: [twtrubiks/docker-django-celery-tutorial] celery-demo中DockerFiles (#1)

@aron3312https://github.com/aron3312 不太懂,你是指 Dockerfilehttps://github.com/twtrubiks/docker-django-celery-tutorial/blob/master/django_crawler_celery/Dockerfile 中的

RUN mkdir /django_crawler_celery COPY . /django_crawler_celery/

這兩個要不一樣?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/twtrubiks/docker-django-celery-tutorial/issues/1#issuecomment-394050780, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXd7JyPZmDyNKKQ3VHkA6zl34TqB1ncXks5t4fkogaJpZM4UVc7A.

aron3312 avatar Jun 02 '18 07:06 aron3312

了解,4.1.1這部分,如果我有機會我再來研究看看~ 謝謝

twtrubiks avatar Jun 04 '18 01:06 twtrubiks