I am attempting to deploy to elastic beanstalk using a docker-compose.yml file but I keep getting the error No Docker image specified in either Dockerfile or Dockerrun.aws.json. Abort deployment.
I'm using the GUI, I select upload & deploy and upload this docker-compose.yml
version: "3.2" services: app: image: rmpub/dts:v1.1-rc2-4 ports: - "80:80" environment: - "DB_HOST=${DB_HOST}" - "DB_NAME=${DB_NAME}" - "DB_USER=${DB_USER}" - "DB_PASS=${DB_PASS}" - "DB_PORT=${DB_PORT}" - "APP_ENV=${APP_ENV}" depends_on: - migrate migrate: image: rmpub/dts:v1.1-rc2-4 environment: - "DB_HOST=${DB_HOST}" - "DB_NAME=${DB_NAME}" - "DB_USER=${DB_USER}" - "DB_PASS=${DB_PASS}" - "DB_PORT=${DB_PORT}" - "APP_ENV=${APP_ENV}" restart: "no" command: "./vendor/bin/phinx migrate"
The logs don't give me much more information
[2021-04-10T03:19:04.775Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12] : Starting activity... [2021-04-10T03:19:04.775Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AddonsBefore] : Starting activity... [2021-04-10T03:19:04.775Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AddonsBefore/ConfigCWLAgent] : Starting activity... [2021-04-10T03:19:04.775Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AddonsBefore/ConfigCWLAgent/10-config.sh] : Starting activity... [2021-04-10T03:19:04.906Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AddonsBefore/ConfigCWLAgent/10-config.sh] : Completed activity. Result: Log streaming option setting is not specified, ignore cloudwatch logs setup. Disabled log streaming. [2021-04-10T03:19:04.906Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AddonsBefore/ConfigCWLAgent] : Completed activity. Result: Successfully execute hooks in directory /opt/elasticbeanstalk/addons/logstreaming/hooks/config. [2021-04-10T03:19:04.906Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AddonsBefore] : Completed activity. [2021-04-10T03:19:05.307Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0] : Starting activity... [2021-04-10T03:19:05.308Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/DownloadSourceBundle] : Starting activity... [2021-04-10T03:19:05.631Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/DownloadSourceBundle] : Completed activity. Result: [2021-04-10T03:19:05.415Z] INFO [2641] : Application version will be saved to /opt/elasticbeanstalk/deploy/appsource. [2021-04-10T03:19:05.415Z] INFO [2641] : Using manifest cache with deployment ID 12 and serial 14. [2021-04-10T03:19:05.415Z] INFO [2641] : Attempting to download application source bundle to: '/opt/elasticbeanstalk/deploy/appsource/source_bundle'. [2021-04-10T03:19:05.415Z] INFO [2641] : Using computed s3 key. [2021-04-10T03:19:05.615Z] INFO [2641] : Downloaded size: 609. [2021-04-10T03:19:05.615Z] INFO [2641] : Successfully downloaded to '/opt/elasticbeanstalk/deploy/appsource/source_bundle'. [2021-04-10T03:19:05.631Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/EbExtensionPreBuild] : Starting activity... [2021-04-10T03:19:06.037Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild] : Starting activity... [2021-04-10T03:19:06.037Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild] : Completed activity. [2021-04-10T03:19:06.055Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/EbExtensionPreBuild] : Completed activity. [2021-04-10T03:19:06.055Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/AppDeployPreHook] : Starting activity... [2021-04-10T03:19:06.055Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/AppDeployPreHook/00clean_dir.sh] : Starting activity... [2021-04-10T03:19:06.607Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/AppDeployPreHook/00clean_dir.sh] : Completed activity. [2021-04-10T03:19:06.607Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/AppDeployPreHook/01unzip.sh] : Starting activity... [2021-04-10T03:19:06.900Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/AppDeployPreHook/01unzip.sh] : Completed activity. Result: parse error: Invalid numeric literal at line 1, column 8 [2021-04-10T03:19:06.900Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/AppDeployPreHook/02loopback-check.sh] : Starting activity... [2021-04-10T03:19:06.953Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/AppDeployPreHook/02loopback-check.sh] : Completed activity. Result: WARNING: the devicemapper storage-driver is deprecated, and will be removed in a future release. [2021-04-10T03:19:06.953Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/AppDeployPreHook/03build.sh] : Starting activity... [2021-04-10T03:19:07.377Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/AppDeployPreHook/03build.sh] : Activity execution failed, because: cat: Dockerrun.aws.json: No such file or directory cat: Dockerrun.aws.json: No such file or directory No Docker image specified in either Dockerfile or Dockerrun.aws.json. Abort deployment. (ElasticBeanstalk::ExternalInvocationError) caused by: cat: Dockerrun.aws.json: No such file or directory cat: Dockerrun.aws.json: No such file or directory No Docker image specified in either Dockerfile or Dockerrun.aws.json. Abort deployment. (Executor::NonZeroExitStatus) [2021-04-10T03:19:07.377Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/AppDeployPreHook/03build.sh] : Activity failed. [2021-04-10T03:19:07.378Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0/AppDeployPreHook] : Activity failed. [2021-04-10T03:19:07.378Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12/AppDeployStage0] : Activity failed. [2021-04-10T03:19:07.378Z] INFO [2596] - [Application update dts-remote-v1.1-rc2-7@12] : Completed activity. Result: Application update - Command CMD-AppDeploy failed
It looks to me like it's attempting to unzip a file. But as I understand it when using docker-compose.yml, no zip is needed.
Any ideas as to what I'm missing?
I should note, when I use Dockerrun.aws.json and zip it up, I can load up my image just fine, so I know the image runs.
https://stackoverflow.com/questions/67030526/aws-eb-deploy-error-no-docker-image-specified-but-im-using-docker-compose-ym April 10, 2021 at 11:27AM
没有评论:
发表评论