CI images
bk-ci provides a default Ubuntu image, but it may not be suitable for all compilation scenarios. You can use this article to create a custom image based on the default image.
Default image: bkci/ci:latest
Prepare materials
A linux build machine
A Dockerfile project that can successfully build an image on the machine
Customize CI images
Log in to the builder, synchronize the Dockerfile project to the builder, and enter the Dockerfile project directory Dockerfile Example:
Run docker build
Important Note:>
Since the container in the pipeline is started by CMD with /bin/sh, make sure that the /bin/sh command and curl command (to download the Agent) are present in the image.
Do not set ENTRYPOINT
Ensure 64-bit mirroring
User root. If common users need to switch to bash, pipeline tasks cannot be started
Run docker login
Execute docker push
Next you may need
Last updated