Dockerrun.aws.json: нет такого файла или каталога - PullRequest
0 голосов
/ 05 апреля 2019

много разработчиков. Это мой первый вопрос, и я не могу его решить.

Я использую AWS For для развертывания веб-приложений и проектов.
и теперь я просто хочу развернуть такой крошечный проект.
(например, базовый проект Django )

Я уже тестировал это локально (с помощью "python manage.py runserver").
и соберите и запустите dockerfile.

Но с AWS развертывание не выполняется постоянно.
Я пишу Dockerfile и использую его.
Но AWS говорит мне
"cat: /var/app/current/Dockerrun.aws.json: нет такого файла или каталога"
и я не понимаю, что там написано.

Это мой код в DockerFile

FROM        {{mydockerId}}/myproject:base

COPY        . /srv/FestivalMusicList
# static directory setting

RUN         cp -f /srv/FestivalMusicList/.config/nginx.conf     /etc/nginx/nginx.conf &&\
            cp -f /srv/FestivalMusicList/.config/nginx-app.conf /etc/nginx/sites-available/ &&\
            rm -f /etc/nginx/site-enabled/* &&\
            ln -sf /etc/nginx/sites-available/nginx-app.conf     /etc/nginx/sites-enabled/

RUN         cp /srv/FestivalMusicList/.config/supervisord.conf  /etc/supervisor/conf.d/
RUN         mkdir /var/log/celery

EXPOSE      80

Это ошибка

[2019-04-05T15:05:33.308Z] INFO  [3747]  - [Application deployment app-cdf1-190406_000132@1/StartupStage0/EbExtensionPostBuild/Infra-EmbeddedPostBuild/postbuild_0_festival_music_list/Command 04_setdata_genre] : Starting activity...
[2019-04-05T15:05:33.310Z] INFO  [3747]  - [Application deployment app-cdf1-190406_000132@1/StartupStage0/EbExtensionPostBuild/Infra-EmbeddedPostBuild/postbuild_0_festival_music_list/Command 04_setdata_genre] : Completed activity.
[2019-04-05T15:05:33.310Z] INFO  [3747]  - [Application deployment app-cdf1-190406_000132@1/StartupStage0/EbExtensionPostBuild/Infra-EmbeddedPostBuild/postbuild_0_festival_music_list] : Completed activity.
[2019-04-05T15:05:33.310Z] INFO  [3747]  - [Application deployment app-cdf1-190406_000132@1/StartupStage0/EbExtensionPostBuild/Infra-EmbeddedPostBuild] : Completed activity.
[2019-04-05T15:05:33.328Z] INFO  [3747]  - [Application deployment app-cdf1-190406_000132@1/StartupStage0/EbExtensionPostBuild] : Completed activity.
[2019-04-05T15:05:33.328Z] INFO  [3747]  - [Application deployment app-cdf1-190406_000132@1/StartupStage0/InfraCleanEbExtension] : Starting activity...
[2019-04-05T15:05:33.329Z] INFO  [3747]  - [Application deployment app-cdf1-190406_000132@1/StartupStage0/InfraCleanEbExtension] : Completed activity. Result:
  Cleaned ebextensions subdirectories from /tmp.
[2019-04-05T15:05:33.329Z] INFO  [3747]  - [Application deployment app-cdf1-190406_000132@1/StartupStage0] : Completed activity. Result:
  Application deployment - Command CMD-Startup stage 0 completed
[2019-04-05T15:05:33.329Z] INFO  [3747]  - [Application deployment app-cdf1-190406_000132@1/StartupStage1] : Starting activity...
[2019-04-05T15:05:33.329Z] INFO  [3747]  - [Application deployment app-cdf1-190406_000132@1/StartupStage1/AppDeployEnactHook] : Starting activity...
[2019-04-05T15:05:33.331Z] INFO  [3747]  - [Application deployment app-cdf1-190406_000132@1/StartupStage1/AppDeployEnactHook/00run.sh] : Starting activity...
[2019-04-05T15:05:39.636Z] INFO  [3747]  - [Application deployment app-cdf1-190406_000132@1/StartupStage1/AppDeployEnactHook/00run.sh] : Activity execution failed, because: cat: /var/app/current/Dockerrun.aws.json: No such file or directory
  cat: /var/app/current/Dockerrun.aws.json: No such file or directory
  01a93e5ed8e11b0c76133e5e446764a8ec95ddd1db144be5d3fceca9fd6c0813
  Docker container quit unexpectedly after launch: Docker container quit unexpectedly on Fri Apr  5 15:05:39 UTC 2019:. Check snapshot logs for details. (ElasticBeanstalk::ExternalInvocationError)
caused by: cat: /var/app/current/Dockerrun.aws.json: No such file or directory
  cat: /var/app/current/Dockerrun.aws.json: No such file or directory
  01a93e5ed8e11b0c76133e5e446764a8ec95ddd1db144be5d3fceca9fd6c0813
  Docker container quit unexpectedly after launch: Docker container quit unexpectedly on Fri Apr  5 15:05:39 UTC 2019:. Check snapshot logs for details. (Executor::NonZeroExitStatus
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...