Skip to content

Commit e6e7db2

Browse files
kiranchavalarohityadavclouddavidjumani
authored andcommitted
Added correct docker and terraform configuration command (#53)
* Added correct docker and terraform configuration commands * Update README.md Co-authored-by: David Jumani <[email protected]> * Update README.md Co-authored-by: David Jumani <[email protected]> --------- Co-authored-by: Rohit Yadav <[email protected]> Co-authored-by: David Jumani <[email protected]>
1 parent 395a4dd commit e6e7db2

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

README.md

+21-7
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,17 @@ $ 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
7084
```
7185

7286
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 +105,16 @@ In order for all the tests to pass, you will need to create a new (empty) projec
91105
$ make testacc
92106
```
93107

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

98112
```sh
99113
$ cat provider.tf
100114
terraform {
101115
required_providers {
102116
cloudstack = {
103-
source = "cloudstack/cloudstack"
117+
source = "localdomain/provider/cloudstack"
104118
version = "0.4.0"
105119
}
106120
}

0 commit comments

Comments
 (0)