-
Notifications
You must be signed in to change notification settings - Fork 39
Use the prebuilt docker image for testing
Hang Yu edited this page Jun 6, 2023
·
3 revisions
⚠️ 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