Skip to content

Commit b218590

Browse files
authored
Merge pull request #1214 from kasper-leFevre/main
updating documentation for custom runner
2 parents 18ffcaa + a81f9cd commit b218590

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/use-tf-controller/build-and-use-a-custom-runner-image.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Build and Use a Custom Runner Image
22

3-
To build a custom runner image, you need a Dockerfile that extends the base image and that adds Terraform, plus any additional required tooling. The repository that contains the base images is [here](ghcr.io/weaveworks/tf-runner). All base image tags follow the following format: `${TF_CONTROLLER_VERSION}-base`.
3+
To build a custom runner image, you need a Dockerfile that extends the base image and that adds Terraform, plus any additional required tooling. The repository that contains the base images is [here](ghcr.io/flux-iac/tf-runner). All base image tags follow the following format: `${TF_CONTROLLER_VERSION}-base`.
44

55
## Prerequisites
66

@@ -15,7 +15,7 @@ ARG BASE_IMAGE
1515
FROM $BASE_IMAGE
1616

1717
ARG TARGETARCH
18-
ARG TF_VERSION=1.3.9
18+
ARG TF_VERSION=1.5.7
1919

2020
# Switch to root to have permissions for operations
2121
USER root
@@ -29,14 +29,14 @@ RUN unzip -q /terraform_${TF_VERSION}_linux_${TARGETARCH}.zip -d /usr/local/bin/
2929
USER 65532:65532
3030
```
3131

32-
Find the original Dockerfile for the runner [here](https://github.com/flux-iac/tofu-controller/blob/89e0c7edde91efebba825b31e9f0ef3cc583684b/runner.Dockerfile).
32+
Find the original Dockerfile for the runner [here](https://github.com/flux-iac/tofu-controller/blob/main/runner.Dockerfile).
3333

3434
2. Build the image from the directory containing the `Dockerfile` you created above:
3535

3636
```bash
3737
export TF_CONTROLLER_VERSION=v0.16.0-rc.3
38-
export TF_VERSION=1.3.9
39-
export BASE_IMAGE=ghcr.io/weaveworks/tf-runner:${TF_CONTROLLER_VERSION}-base
38+
export TF_VERSION=1.5.7
39+
export BASE_IMAGE=ghcr.io/flux-iac/tf-runner:${TF_CONTROLLER_VERSION}-base
4040
export TARGETARCH=amd64
4141
export REMOTE_REPO=ghcr.io/my-org/custom-runnner
4242
docker build \

0 commit comments

Comments
 (0)