Skip to content

Commit cbbfdaa

Browse files
committed
Update node version, kubectl installation method, build instructions
1 parent 9b0e678 commit cbbfdaa

3 files changed

Lines changed: 19 additions & 5 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM node:10
1+
FROM node:20
22

33
RUN npm install -g cloudflare-cli
44
RUN apt-get update
55
RUN apt-get install -y jq
6-
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/$(dpkg --print-architecture)/kubectl
6+
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/$(dpkg --print-architecture)/kubectl"
77
RUN chmod +x ./kubectl
88
RUN mv ./kubectl /usr/local/bin/kubectl
99
RUN kubectl version --client

k8s-tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
echo cloudflare-cli: k8s-tools v0.0.16
3+
echo cloudflare-cli: k8s-tools v0.0.17
44

55
bad=0
66
if [ -z "$action" ]; then echo "variable 'action' is not set"; bad=1; fi

readme.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1-
## Build with docker buildx:
1+
# cloudflare-cli
22

3-
docker buildx build --platform linux/amd64,linux/arm64 . -f ./Dockerfile --tag docker.io/redriversoftware/cloudflare-cli:VERSION --push
3+
This tool is used as aprt of our [helm charts](https://github.com/RedRiverSoftware/k8s/tree/master/helm3-charts) to manage Cloudflare DNS records automatically post deployment.
4+
5+
## Update the Docker image
6+
7+
Authenticate to the Azure Container Registry:
8+
9+
```bash
10+
az acr login -n RedRiver
11+
```
12+
13+
Build and push the image to the Azure Container Registry:
14+
15+
```bash
16+
docker build . --tag redriver.azurecr.io/cloudflare-cli:VERSION --push
17+
```

0 commit comments

Comments
 (0)