Skip to content

Commit 1f85a1e

Browse files
committed
Added correct docker and terraform configuration commands
1 parent 614fe4a commit 1f85a1e

1 file changed

Lines changed: 22 additions & 7 deletions

File tree

README.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,14 @@ $ make build
4848
$ ls $GOPATH/bin/terraform-provider-cloudstack
4949
```
5050
Once the build is ready, you have to copy the binary into Terraform locally (version appended).
51-
On Linux this path is at ~/.terraform.d/plugins, and on Windows at %APPDATA%\terraform.d\plugins.
51+
52+
On Linux and Mac this path is at ~/.terraform.d/plugins,
53+
On Windows at %APPDATA%\terraform.d\plugins,
54+
5255
```sh
53-
$ ls ~/.terraform.d/plugins/registry.terraform.io/cloudstack/cloudstack/0.4.0/linux_amd64/terraform-provider-cloudstack_v0.4.0
56+
$ cd ~
57+
$ mkdir -p .terraform.d/plugins/localdomain/provider/cloudstack/0.4.0/linux_amd64
58+
$ cp $GOPATH/bin/terraform-provider-cloudstack .terraform.d/plugins/localdomain/provider/cloudstack/0.4.0/linux_amd64
5459
```
5560

5661
Testing the Provider
@@ -65,8 +70,18 @@ $ make test
6570
In order to run the full suite of Acceptance tests you will need to run the CloudStack Simulator. Please follow these steps to prepare an environment for running the Acceptance tests:
6671

6772
```sh
68-
$ docker pull cloudstack/simulator
69-
$ docker run --name simulator -p 8080:5050 -d cloudstack/simulator
73+
docker pull apache/cloudstack-simulator
74+
75+
or pull it with a particular build tag
76+
77+
docker pull apache/cloudstack-simulator:4.17.2.0
78+
79+
docker run --name simulator -p 8080:5050 -d apache/cloudstack-simulator
80+
81+
or
82+
83+
docker run --name simulator -p 8080:5050 -d apache/cloudstack-simulator:4.17.2.0
84+
7085
```
7186

7287
When Docker started the container you can go to http://localhost:8080/client and login to the CloudStack UI as user `admin` with password `password`. It can take a few minutes for the container is fully ready, so you probably need to wait and refresh the page for a few minutes before the login page is shown.
@@ -91,16 +106,16 @@ In order for all the tests to pass, you will need to create a new (empty) projec
91106
$ make testacc
92107
```
93108

94-
Sample Terraform configuration
95-
------------------------------
109+
Sample Terraform configuration when testing locally
110+
---------------------------------------------------
96111
Below is an example configuration to initialize provider and create a Virtual Machine instance
97112

98113
```sh
99114
$ cat provider.tf
100115
terraform {
101116
required_providers {
102117
cloudstack = {
103-
source = "cloudstack/cloudstack"
118+
source = "localdomain/provider/cloudstack"
104119
version = "0.4.0"
105120
}
106121
}

0 commit comments

Comments
 (0)