Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Commit

Permalink
v. 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
vahaah committed Jul 18, 2016
1 parent 865f578 commit 46f8055
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.3 (2016-07-18)

Fixed ssh

## 1.0.2 (2016-06-07)

Bug fix
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,22 @@ To install this plugin manually, download the binary `docker-machine-driver-vsca
and make it available by `$PATH`, for example by putting it to `/usr/local/bin/`:

```console
$ curl -L https://github.com/vahaah/docker-machine-driver-vscale/releases/download/1.0.2/docker-machine-driver-vscale > /usr/local/bin/docker-machine-driver-vscale
$ curl -L https://github.com/vahaah/docker-machine-driver-vscale/releases/download/1.0.3/docker-machine-driver-vscale > /usr/local/bin/docker-machine-driver-vscale

$ chmod +x /usr/local/bin/docker-machine-driver-vscale
```

The latest version of `docker-machine-driver-vscale` binary is available on
the ["Releases"](https://github.com/vahaah/docker-machine-driver-vscale/releases) page.

For Ubuntu 16.04:

```console
$ sudo curl -L https://github.com/vahaah/docker-machine-driver-vscale/releases/download/1.0.3/docker-machine-driver-vscale.ubuntu.16.04.x64 > /usr/local/bin/docker-machine-driver-vscale

$ sudo chmod +x /usr/local/bin/docker-machine-driver-vscale
```

## Usage

After compile you can use driver for creating docker hosts.
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "fmt"
var GitCommit string

// Version number that is being run at the moment.
const Version = "1.0.2"
const Version = "1.0.3"

// FullVersion formats the version to be printed.
func FullVersion() string {
Expand Down
9 changes: 3 additions & 6 deletions vscale.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"
"net"
"time"
"reflect"
"io/ioutil"

"github.com/docker/machine/libmachine/drivers"
Expand Down Expand Up @@ -194,9 +193,8 @@ func (d *Driver) Create() error {
log.Info(fmt.Sprintf("Creating scalet with ID: %v, IPAddress: %v", d.ScaletID, d.IPAddress))
if d.SwapFile > 0 {
for {
tasks, _, err := client.Scalet.Tasks()

if reflect.DeepEqual(tasks, &[]api.ScaletTask{}) {
ssh := drivers.WaitForSSH(d)
if ssh == nil {
log.Info(fmt.Sprintf("Creating SWAP file %d MB", d.SwapFile))
_, err := drivers.RunSSHCommandFromDriver(d, fmt.Sprintf(`touch /var/swap.img && \
chmod 600 /var/swap.img && \
Expand All @@ -213,8 +211,7 @@ func (d *Driver) Create() error {
if err != nil {
return err
}

time.Sleep(1 * time.Second)
time.Sleep(3 * time.Second)
}
}
return nil
Expand Down

0 comments on commit 46f8055

Please sign in to comment.