Build Image
The build server required for image building has been created. Now, let's proceed with building the image.
Last updated
The build server required for image building has been created. Now, let's proceed with building the image.
Last updated
ⓒ2023. Acornsoft Corp. All rights reserved.
1) Select the [Build/Pipeline] - [Builds] section.
2) Click on the "+ Create" button in the upper right corner.
3) Once the build information window is generated, enter the build details as follows.
Item (* is required) | Content |
---|---|
Image Name* | Specify what the image represents in detail (Note: Avoid the use of uppercase) |
Registry* | Select the registry you created (If there are multiple registries, choose the applicable registry) |
Use Auto Tag (Choose 1) | Indicate whether tags should be automatically set when updating or changing the image (Split into "Use/Do Not Use," and if "Do Not Use" is selected, the tag may be fixed, overwriting the existing image) |
Tag* | Provide details for the tag to be attached to the created image (If "Do Not Use" is selected for auto-tagging, the tag entered here will be used consistently) |
Auto-Increment Type (Choose 1) | If auto-tagging is set to "Use," it can be specified as "Time/Sequence" |
Build Execution Server (Choose 1) | Select the server to perform the build |
4) Click the "+ Add a Build operation" button at the bottom to select the necessary items for the build process.
Item (* is required) | Content |
---|---|
Code Repository Work | Configure information to fetch source from git or similar sources |
User Work | Configure information related to the build of the source fetched from git or similar sources |
File (FTP) Work | Set up tasks to download or upload files or directories between the remote host and the build host where the build tasks are performed |
Calling REST Work | If integration with external services is required using the REST method, configure REST call tasks |
Script Work | Configure script information if a specific script is needed |
Build Image Work* | Write a Dockerfile to apply the built source to a Base image and create a new image |
1) Select the [Code Repository Work] and enter details about the Git or other source from which to load the code, then save.
Item (* is required) | content |
---|---|
Work Name* | Refers to the job stage for the image build, and enters a title for that job |
Repository Address* | Enter the address for the Git or other source repository from which to import the source code. |
Branch* | Enter the source branch applied to the repository |
Authentication | When selecting the combo box for authentication, you must enter the user account and password required to access the git |
Code Storage Path | Enter the directory to store the source (Automatically create git project name if not created) |
1) Click the "+Add a Build operation" button to select [User Work]
2) In the [Execution Information] section, enter the necessary commands for source build and apply.
[User Work - Execution Information (Maven)]
Work Name: Provide information about the purpose or content of this task.
Execution Path: Specify the path where the build will be executed in the build container. 1. Enter "/build" as a fixed value when writing.
[User Work - Execution Information (Ant)]
Work Name: Provide information about the purpose or content of this task.
Execution Path: Specify the path where the build will be executed in the build container. 1. Enter "/build" as a fixed value when writing.
3) In the [Work Volume] section, enter the directory path required for source build and apply
Item (* is required) | Content |
---|---|
Container Path* | Write the path to the container where the source will be built |
Build Host Path* | When building the source, a temporary container is created to proceed with the build. This is the path to the temporary container used during the source build |
1) Click the "+ Add a Build operation" button and select [Build Image Work].
2) In the [Build Image Work] section, write the Dockerfile to create a container image after the source build and apply.
Item (* is required) | Content |
---|---|
Work name* | Refers to the job stage for the image build, and enters a title for that job |
enter docker file content* | Write a Dockerfile to create the actual container image |
3) After clicking the "Save" button, a popup for [Build Notes] for the build creation will appear below. Write comments for this build and save.
1) Once the save is complete, the image build automatically proceeds, and you can review details about the build as shown in the screen below.
2) In the [Build Info], clicking the "View Log" button allows you to check the logs for the image build.
3) Upon successful completion of the build, confirm that all progress is marked as "Done" as shown below.
1) Write files or directories for downloading or uploading between the remote host containing resources related to the build target and the build host where the build task will be performed.
2) Click the "+ Add a Build operation" button and select [File (FTP) Work].
Item (* is required) | Content |
---|---|
Work name* | It refers to the operation stage for the file (FTP), and enter a title for that operation |
Host address* | Server address with the directory or file that needs to be uploaded |
Certification* | Need to set up if you have an account and password for the host address |
User/Password* | Connection account and password for the host address |
Task type (choose one) | File Download (If you want to include it in the image during image build, select this type) |
Remote Directory/File* | Absolute path to the file to be uploaded to the image when building the image (Host address must have that file) |
Build Host Directory* | Directory location to upload (/tmp/ fixed) |
1) If integration with an external service is required using the REST method, configure the REST call task.
2) Click the "+ Add a Build operation" button and select [Calling REST Work].
Item (* is required) | Content |
---|---|
Work name* | Indicates the operation stage for a REST call, and enters a title for that operation |
REST Method (choose one) | Choose the API call method |
URL* | Write the URL for the API call |
Certification | Configuration required if there is an account and password for the host address |
User/Password | Username and password for the host address |
Connection Timeout* | Write the response time for the API call |
Expected response code* | Write the success code after the API call (ex] 200) |
Expected response content | Must be left blank |
Save the response to the build host path | Write the filename if response value storage is required (ex] response.txt) |
3) If headers are required, select "+ Header Add " enter the Header and Value, and click the "Apply" button.
Enter in the format: Header: Authorization, Value: Basic {authentication string}.
The {authentication string} should be a base64-encoded string of the Image Registry's id:password.
1) Define tasks for cases where scripts are needed during image builds.
2) Click the "+ Add a Build operation" button and select [Script Work].
Item (* is required) | Content |
---|---|
Work name* | Define the steps for the image build process along with the corresponding work title. |
Enter the script content* | Enter the content of the script to be executed. |
3) Complete the script task and click the "Apply" button in the bottom right corner.