forked from opensearch-project/opensearch-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bug] Fixing not correct path in Readme (opensearch-project#3506)
Signed-off-by: Tokesh <[email protected]> Signed-off-by: Alen Abeshov <[email protected]> Signed-off-by: Peter Zhu <[email protected]> Co-authored-by: Alen Abeshov <[email protected]> Co-authored-by: Peter Zhu <[email protected]>
- Loading branch information
1 parent
c0c5027
commit cabdd82
Showing
2 changed files
with
26 additions
and
39 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
- [CI CD Environment](#ci-cd-environment) | ||
- [Build CI Runner Docker Image from Dockerfile](#build-ci-runner-docker-image-from-dockerfile) | ||
|
||
|
||
## CI CD Environment | ||
|
||
We build, assemble, and test our artifacts on docker containers. All of our pipelines are using the same docker image for consistency. This folder contains docker files in the [ci](./ci) folder, and images on [staging docker hub repositories](https://hub.docker.com/r/opensearchstaging/ci-runner/). | ||
|
||
### Build CI Runner Docker Image from Dockerfile | ||
|
||
To build the docker image for either x64 or arm64, run the below command on a x64 or arm64 host respectively within the `opensearch-build/docker/ci` folder: | ||
|
||
```bash | ||
./build-image-single-arch.sh -r <Repo Name> -v <Tag Name> -f <Docker File Path> | ||
``` | ||
After the build, you can locate an image in your host using the `docker images` command with the following format: `opensearchstaging/<Repo Name>:<Tag Name>`. | ||
|
||
|
||
If you want to build multi-arch docker image for both x64 and arm64, you can use the below command.\ | ||
Make sure you are running it within the `opensearch-build/docker/ci` folder. | ||
|
||
```bash | ||
./build-image-multi-arch.sh -r <Repo Name> -v <Tag Name> -f <Docker File Path> | ||
``` | ||
Docker buildx is a tool utilized for building multi-arch images. It leverages a `moby/buildkit` container to construct these images, combining all the CPU architecture layers into a single entity. Consequently, you can only upload the resulting image to Docker Hub or store it locally as cache. Due to the limitation that your host cannot support multiple CPU architectures, the image will not be visible when running the `docker images` command. | ||
|