Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services aws代码生成失败,生成步骤映像丢失_Amazon Web Services_Docker_Amazon Ec2 - Fatal编程技术网

Amazon web services aws代码生成失败,生成步骤映像丢失

Amazon web services aws代码生成失败,生成步骤映像丢失,amazon-web-services,docker,amazon-ec2,Amazon Web Services,Docker,Amazon Ec2,嗨,我从几个月前开始运行aws代码管道 现在我犯了一个错误: ./buildspec_build.sh: line 5: cd: target/docker/stage: No such file or directory Sending build context to Docker daemon 194.6 kB Step 1 : EXPOSE 9000 Please provide a source image with `from` prior to commit [Containe

嗨,我从几个月前开始运行aws代码管道

现在我犯了一个错误:

./buildspec_build.sh: line 5: cd: target/docker/stage: No such file or directory
Sending build context to Docker daemon 194.6 kB

Step 1 : EXPOSE 9000
Please provide a source image with `from` prior to commit

[Container] 2017/11/16 15:23:13 Command did not exit successfully chmod +x buildspec_build.sh && ./buildspec_build.sh exit status 1
[Container] 2017/11/16 15:23:13 Phase complete: BUILD Success: false
[Container] 2017/11/16 15:23:13 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: chmod +x buildspec_build.sh && ./buildspec_build.sh. Reason: exit status 1
[Container] 2017/11/16 15:23:13 Entering phase POST_BUILD
[Container] 2017/11/16 15:23:13 Running command echo "*** POST-BUILD:"
*** POST-BUILD:

[Container] 2017/11/16 15:23:13 Running command chmod +x buildspec_postbuild.sh && ./buildspec_postbuild.sh
The push refers to a repository [.dkr.ecr.eu-central-1.amazonaws.com/......]
An image does not exist locally with the tag:
我的生成文件如下所示:

#!/bin/bash

# make code ready for docker
sbt docker:stage
cd target/docker/stage

# add port for aws to dockerfile
echo "EXPOSE 9000" >> Dockerfile

# generate docker image tag
docker build -t "$(cat /tmp/build_tag.out)" .
我的失败是什么?aws改变了什么吗


提前感谢

第一个错误似乎是缺少所需的文件夹

./buildspec_build.sh: line 5: cd: target/docker/stage: No such file or directory
这应该是手动创建的还是通过上一个命令创建的

sbt docker:stage

问题是sbt版本错误。aws改变了它

是的,但文件夹从来就不存在我以为它是在需要的时候创建的。。。代码运行得很好。也许应该是前一个命令