如何将图像文件夹直接上传到OpenShift 3服务器



我想将图像文件夹直接上传到我的OpenShift服务器,而不是将图像保存在源代码文件中。

我也有几罐与公司有关的罐子。如何将它们安装到OpenShift 3服务器的M2 Maven存储库中?

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   

如果应用程序使用的容器持续卷,则可以使用oc rsync将文件(例如图像)复制到持久卷。

另一个选项是使用二进制输入构建,而不是从GIT存储库中提取源代码。这样,使用不属于GIT存储库的构建文件的构建文件更容易。这可能是图像,也可以是预编译的二进制文物。

有关二进制输入构建的详细信息,请参见:

  • https://docs.openshift.com/container-platform/latest/dev_guide/builds/build_inputs.html

最新更新