-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use docker images for build and release
Previously, we used a custom docker image with `helm` and `aws-cli` installed in order to generate Helm charts and to sync the generated files to S3. This docker image is very outdated and hosted on Docker Hub. To simplify local development, remove docker dependency and keep the dependencies fresher, in this PR: * Removed custom docker image and the wrapper script * `helm` is installed run-time * Use `aws-cli` installed system-wide * Simplified docs Epic: RE-539
- Loading branch information
Showing
5 changed files
with
21 additions
and
121 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,40 +1,18 @@ | ||
# Building, Testing and Releasing | ||
|
||
The scripts and docker images used for testing, building and deploying. | ||
|
||
Installing docker is a prerequisite. The instructions differ depending on the | ||
environment. Docker is comprised of two parts: the daemon server which runs on | ||
Linux and accepts commands, and the client which is a Go program capable of | ||
running on MacOS, all Unix variants and Windows. | ||
|
||
|
||
## Docker Installation | ||
|
||
Follow the [Docker install | ||
instructions](https://docs.docker.com/engine/installation/). | ||
|
||
|
||
## Available Images | ||
The scripts is used for testing, building and deploying. | ||
|
||
### Building | ||
|
||
The build image is a basic image containing Helm. To use it: | ||
|
||
``` | ||
/.../helm-charts $ ./build/builder.sh helm package cockroachdb | ||
/.../helm-charts $ helm package cockroachdb | ||
``` | ||
|
||
|
||
## Upgrading / Extending the Builder Image | ||
|
||
- Edit `build/builder/Dockerfile` as desired | ||
- Run `build/builder.sh init` to test -- this will build the image locally. The result of `init` is a docker image version which you can subsequently stick into the `version` variable inside the `builder.sh` script for testing locally. | ||
- Once you are happy with the result, run `build/builder.sh push` which pushes your image towards Docker hub, so that it becomes available to others. The result is again a version number, which you then *must* copy back into `build/builder.sh`. Then commit the change to both Dockerfile and `build/builder.sh` and submit a PR. | ||
|
||
|
||
## Building Catalog Images for helm chart operator | ||
|
||
- Export the following environment while running locally: | ||
QUAY_DOCKER_USERNAME, QUAY_DOCKER_TOKEN | ||
- Run `make prepare_bundle` to prepare the bundle to be pushed on community-operators. The `/bundle` directory at the root folder contains the template for the bundle which will get updated after executing the above command. The same directory can then be used to manually place under the new version in the community-operators repo. NOTE: This will not build the helm chart operator or the catalog bundle image | ||
- Run `make build-and-release-olm-operator` to prepare the bundle as well as build and push the helm chart operator image and catalog bundle image to the registry provided above as environment variables. | ||
- Run `make build-and-release-olm-operator` to prepare the bundle as well as build and push the helm chart operator image and catalog bundle image to the registry provided above as environment variables. |
This file was deleted.
Oops, something went wrong.
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
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