Using SWR Public Images
Prerequisites
You have created an image and pushed it to SWR.
Procedure
- Images in SWR cannot be pulled during building. Therefore, you need to set the image type to Public.
- Log in to SWR.
- In the navigation pane, choose My Images, click the image name to go to the image details page, and click Edit in the upper right corner.
- In the dialog box, set the type to be public.
- To obtain the complete image path, click to copy the image download command. The part following docker pull is the image path.
- Add Use SWR Public Image, when configuring build actions.
- Paste the image address obtained in step 1 to the text box.
When pasting the download command to the image address text box, delete docker pull.
- Enter the build commands in the command window and run the build task commands to complete the build.
For example, if the image is used for a Maven build, configure commands for building with Maven. For an npm build, configure commands for building with npm. This rule also applies to other builds.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot