How to upload the images folder directly to an OpenShift 3 server?

475 Views Asked by At

I want to upload my images folder directly to my OpenShift server rather than keeping the images in my source code file.

I also have few jars which are related to the company. How do I install those to OpenShift 3 server's m2 Maven repository?

Reference
=========
1)mounted saperately as per your clarification-
/dev/xvdbe     999320    4424    926084   1% /imgs
2)I have done the Recreate
3)I verified oc rsh
sh-4.2$ cd /imgs                                                                                                                                                    
sh-4.2$ ls                                                                                                                                                          
images-static  lost+found                                                                                                                                           
sh-4.2$ cd images-static                                                                                                                                            
sh-4.2$ ls                                                                                                                                                          
beads  gemstones  hooks  jcarousel  necklace  necklaces  pendants                                                                                                   
sh-4.2$ cd necklaces                                                                                                                                                
sh-4.2$ ls                                                                                                                                                          
1497330344375_.jpg    
1497330365931.jpg                                         
1497330357394.jpg  
premadeDesigns 
modifiableDesigns 
4)I am accessing my images with URL 
http://openshiftLink.com/imgs/images-static/necklaces/                                                                                  /   1497330344375.jpg 
is this the right way to access persistence volumes   
1

There are 1 best solutions below

8
On

If you have a persistent volume attached to your container which application uses, you can use oc rsync to copy files such as images to the persistent volume.

Another option is to use a binary input build rather than pulling source code from a Git repository. That way it is easier to push up with a build files which are not part of a Git repository. This could be images or could also be pre-compiled binary artifacts.

Details on binary input builds can be found at: