Skip to content

Use the prebuilt docker image for testing

Hang Yu edited this page Jun 6, 2023 · 3 revisions

Use the prebuilt docker image for testing

⚠️ The docker image can only be used for testing. Please use the latest release version in production.

BRANCH=master
docker pull rancher/terraform-provider-harvester:${BRANCH}-head-amd64
docker rm -f terraform-provider-harvester-${BRANCH}-head
docker run -itd --name terraform-provider-harvester-${BRANCH}-head rancher/terraform-provider-harvester:${BRANCH}-head-amd64 bash
docker cp ~/.kube/config terraform-provider-harvester-${BRANCH}-head:/data/kubeconfig
docker exec -it terraform-provider-harvester-${BRANCH}-head bash

In the container terraform-provider-harvester-${BRANCH}-head, run terraform init to initialize it.

terraform init
Clone this wiki locally