Skip to content

Commit

Permalink
Remove couchbase-tools docker build from goreleaser (#2099)
Browse files Browse the repository at this point in the history
* Remove couchbase-tools docker build from goreleaser

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

* Update couchbase-tools Dockerfile to work with docker build

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

* Update Couchbase example README with docker build steps

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

* Update examples/couchbase/README.md

---------

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
  • Loading branch information
PrasadG193 authored Jun 13, 2023
1 parent ff719a2 commit 4d3991e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
5 changes: 0 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ dockers:
image_templates:
- 'ghcr.io/kanisterio/cassandra:{{ .Tag }}'
dockerfile: 'docker/cassandra/Dockerfile'
- ids:
- kando
image_templates:
- 'ghcr.io/kanisterio/couchbase-tools:{{ .Tag }}'
dockerfile: 'docker/couchbase-tools/Dockerfile'
- image_templates:
- 'ghcr.io/kanisterio/kafka-adobe-s3-source-connector:{{ .Tag }}'
dockerfile: 'docker/kafka-adobes3Connector/image/adobeSource.Dockerfile'
Expand Down
4 changes: 3 additions & 1 deletion docker/couchbase-tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ FROM couchbase:enterprise-6.0.3

MAINTAINER "Tom Manville <tom@kasten.io>"

ADD kando /usr/local/bin/
# Install Kanister tools
RUN apt-get update && apt-get install libdigest-sha-perl -y
RUN curl https://raw.githubusercontent.com/kanisterio/kanister/master/scripts/get.sh | bash
18 changes: 17 additions & 1 deletion examples/couchbase/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,27 @@

## Prerequisites

* Kubernetes 1.9+
* Kubernetes 1.20+
* PV support on the underlying infrastructure
* Kanister controller version 0.22.0 installed in your cluster
* Kanctl CLI installed (https://docs.kanister.io/tooling.html#kanctl)
* Couchbase application needs at least 4G of memory and 4 cpus to run. Make sure that your cluster nodes has required resources.
* Docker CLI installed

### Build and push couchbase-tools docker image

Kanister actions are specified in the Blueprint CR. The example Blueprint for the Couchbase application uses the `couchbase-tools` docker image to perform required actions. Follow the steps below to build the docker image with all the necessary tools.

```bash
# Clone Kanister Github repo locally
$ git clone https://github.com/kanisterio/kanister.git <path_to_kanister>

# Build couchbase-tools docker image
$ docker build -t <registry>/<repository>/couchbase-tools:<tag_name> <path_to_kanister>/docker/couchbase-tools/
$ docker push <registry>/<repository>/couchbase-tools:<tag_name>
```

Replace `<registry>`, `<repository>` and `<tag_name>` placeholders with actual values in `couchbase-blueprint.yaml`.

## Chart Details

Expand Down
4 changes: 2 additions & 2 deletions examples/couchbase/couchbase-blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ actions:
namespace: "{{ .Object.metadata.namespace }}"
args:
namespace: "{{ .Object.metadata.namespace }}"
image: ghcr.io/kanisterio/couchbase-tools:0.92.0
image: <registry>/<repository>/couchbase-tools:<tag_name>
command:
- bash
- -o
Expand Down Expand Up @@ -53,7 +53,7 @@ actions:
namespace: "{{ .Object.metadata.namespace }}"
args:
namespace: "{{ .Object.metadata.namespace }}"
image: ghcr.io/kanisterio/couchbase-tools:0.92.0
image: <registry>/<repository>/couchbase-tools:<tag_name>
command:
- bash
- -o
Expand Down

0 comments on commit 4d3991e

Please sign in to comment.