[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

copy mutiple directories using oc new-build with source-image-path flag



Hi Everyone,

when writing a build config in openshift, i can copy multiple
directories from one container to another like this
```yaml
source:
    images:
      - from:
          kind: ImageStreamTag
          name: 'buildervscv:latest'
        paths:
          - destinationDir: .
            sourcePath: /opt/app-root/src/dist/.
          - destinationDir: .
            sourcePath: /opt/app-root/src/openshift/conf/.
```

how can i do the same thing using oc new-build ?

I tried
```
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
```

with the fist one only one directory is being copied! and the rest are
throwing an error.

Any help?

Attachment: pEpkey.asc
Description: pEpkey.asc


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]