Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Fixing not correct path in Readme #3506

Merged
merged 5 commits into from
May 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions docker/README.md

This file was deleted.

26 changes: 26 additions & 0 deletions docker/ci/README.md
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.