Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 7 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,18 @@ jobs:
uses: docker/setup-buildx-action@v1
Comment thread
joao-r-reis marked this conversation as resolved.
with:
install: true
-
name: Login to DockerHub
uses: docker/login-action@v1
-
name: Login to Quay.io
uses: docker/login-action@v1
Comment thread
joao-r-reis marked this conversation as resolved.
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: quay.io
username: ${{ secrets.QUAY_IO_USERNAME }}
password: ${{ secrets.QUAY_IO_PASSWORD }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
platforms: linux/amd64,linux/arm64
tags: datastax/cql-proxy:${{ steps.vars.outputs.tag }}
tags: quay.io/datastax/cql-proxy:${{ steps.vars.outputs.tag }}
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ To pass configuration to `cql-proxy`, either command-line flags, environment var

```sh
docker run -p 9042:9042 \
--rm datastax/cql-proxy:v0.2.0 \
--rm quay.io/datastax/cql-proxy:v0.2.0 \
--astra-token <astra-token> --astra-database-id <astra-datbase-id>
Comment thread
joao-r-reis marked this conversation as resolved.
```

### Using environment variables

```sh
docker run -p 9042:9042 \
--rm datastax/cql-proxy:v0.2.0 \
--rm quay.io/datastax/cql-proxy:v0.2.0 \
-e ASTRA_TOKEN=<astra-token> -e ASTRA_DATABASE_ID=<astra-datbase-id>
```

Expand Down Expand Up @@ -190,25 +190,25 @@ There are three methods for using `cql-proxy`:

```sh
docker run -p 9042:9042 \
datastax/cql-proxy:v0.2.0 \
quay.io/datastax/cql-proxy:v0.2.0 \
--astra-token <astra-token> --astra-database-id <astra-database-id>
```

The `<astra-token>` can be generated using these [instructions]. The proxy also supports using the [Astra Secure Connect Bundle][bundle], but it requires mounting the bundle to a volume in the container:

```sh
docker run -v <your-secure-connect-bundle.zip>:/tmp/scb.zip -p 9042:9042 \
--rm datastax/cql-proxy:v0.2.0 \
--rm quay.io/datastax/cql-proxy:v0.2.0 \
--astra-bundle /tmp/scb.zip --username <astra-client-id> --password <astra-client-secret>
```
- [Apache Cassandra][cassandra] cluster:

```sh
docker run -p 9042:9042 \
datastax/cql-proxy:v0.2.0 \
quay.io/datastax/cql-proxy:v0.2.0 \
--contact-points <cluster node IPs or DNS names> [--username <username>] [--password <password>]
```
If you wish to have the docker image removed after you are done with it, add `--rm` before the image name `datastax/cql-proxy:v0.2.0`.
If you wish to have the docker image removed after you are done with it, add `--rm` before the image name `quay.io/datastax/cql-proxy:v0.2.0`.

### Use Kubernetes

Expand Down
2 changes: 1 addition & 1 deletion k8s/cql-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: cql-proxy
image: datastax/cql-proxy:v0.1.3
image: quay.io/datastax/cql-proxy:v0.1.3
command: ["./cql-proxy"]
args: ["--astra-bundle=/tmp/scb.zip","--username=Client ID","--password=Client Secret"]
volumeMounts:
Expand Down
Loading