You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,9 @@ fmt:
7
7
dev: version fmt
8
8
go build -o _bin/docker-machine-driver-ddcloud
9
9
10
+
install: dev
11
+
go install
12
+
10
13
# Perform a full (all-platforms) build.
11
14
build: version build-windows64 build-linux64 build-mac64
12
15
@@ -29,4 +32,4 @@ test: fmt
29
32
go test -v github.com/DimensionDataResearch/docker-machine-driver-ddcloud/...
30
33
31
34
version:
32
-
echo"package main\n\n// ProviderVersion is the current version of the CloudControl driver for Docker Machine.\nconst ProviderVersion = \"v0.1 (`git rev-parse HEAD`)\""> ./version-info.go
35
+
echo"package main\n\n// DriverVersion is the current version of the CloudControl driver for Docker Machine.\nconst DriverVersion = \"v0.1 (`git rev-parse HEAD`)\""> ./version-info.go
If you're running on Windows, just remove the backslashes so the whole command is on a single line.
27
+
28
+
### Options
29
+
30
+
The driver supports all Docker Machine commands, and can be configured using the following command-line arguments (or environment variables):
31
+
32
+
*`ddcloud-user` - The user name used to authenticate to the CloudControl API.
33
+
Environment: `DD_COMPUTE_USER`
34
+
*`ddcloud-password` - The password used to authenticate to the CloudControl API.
35
+
Environment: `DD_COMPUTE_PASSWORD`.
36
+
*`ddcloud-region` - The CloudControl region name (e.g. AU, NA, EU, etc).
37
+
Environment: `DD_COMPUTE_REGION`.
38
+
*`ddcloud-networkdomain` - The name of the target CloudControl network domain.
39
+
*`ddcloud-datacenter` - The name of the CloudControl datacenter (e.g. NA1, AU9) in which the network domain is located.
40
+
*`ddcloud-vlan` - The name of the target CloudControl VLAN.
41
+
*`ddcloud-ssh-user` - The SSH username to use.
42
+
Default: "root".
43
+
Environment: `DD_COMPUTE_SSH_USER`
44
+
*`ddcloud-ssh-key` - The SSH key file to use.
45
+
Environment: `DD_COMPUTE_SSH_KEY`
46
+
*`ddcloud-ssh-port` - The SSH port to use.
47
+
Default: 22.
48
+
Environment: `DD_COMPUTE_SSH_PORT`
49
+
*`ddcloud-ssh-bootstrap-password` - The initial SSH password used to bootstrap SSH key authentication.
50
+
This password is removed once the SSH key has been installed
51
+
Environment: `DD_COMPUTE_SSH_BOOTSTRAP_PASSWORD`
52
+
53
+
## Installing the provider
54
+
55
+
Download the [latest release](https://github.com/DimensionDataResearch/docker-machine-driver-ddcloud/releases) and place the provider executable in the same directory as `docker-machine` executable (or somewhere on your `PATH`).
56
+
57
+
## Building the provider
58
+
59
+
If you'd rather run from source, simply run `make install` and you're good to go.
0 commit comments