Build Image
The build server required for image building has been created. Now, let's proceed with building the image.
1-1. Build Image Info
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
4) Click the "+ Add a Build operation" button at the bottom to select the necessary items for the build process.
Item (* is required)
Content
1-2. Code Repository Work
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
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.
3) In the [Work Volume] section, enter the directory path required for source build and apply
Item (* is required)
Content
1-4. Build Image Task
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
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-5. Run Image Build Task
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.
2. Additional Configuration for Image Build
2-1. File(FTP) Task
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
2-2. Calling REST Work
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
3) If headers are required, select "+ Header Add " enter the Header and Value, and click the "Apply" button.
2-3. Script Work
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
3) Complete the script task and click the "Apply" button in the bottom right corner.