在openshift中编写构建配置时,我可以像这样将多个目录从一个容器复制到另一个容器
source:
images:
- from:
kind: ImageStreamTag
name: 'builder:latest'
paths:
- destinationDir: .
sourcePath: /opt/app-root/src/dist/.
- destinationDir: .
sourcePath: /opt/app-root/src/openshift/conf/.
我如何使用oc new-build做同样的事情?
我尝试了
oc new-build --source-image=builder --source-image-path=/opt/app-root/src/dist/.:. --source-image-path=/opt/app-root/src/openshift/conf/.:. --image-stream=openshift/nginx
oc new-build --source-image=builder --source-image-path /opt/app-root/src/dist/.:. /opt/app-root/src/openshift/conf/.:. --image-stream=openshift/nginx
oc new-build --source-image=builder --source-image-path=[/opt/app-root/src/dist/.:.,/opt/app-root/src/openshift/conf/.:.] --image-stream=openshift/nginx
用拳头只复制一个目录!其余的都抛出错误。