Skip to content

Conversation

@yocarbo
Copy link

@yocarbo yocarbo commented Nov 19, 2020

Hi,

A quick and dirty but functional code with scaleway-sdk-go instead go-scaleway.

Create, start, stop, remove machine with Gitlab runners :

  [runners.machine]
    MachineDriver = "scaleway-v2"
    MachineName = "runner-%s"
    IdleCount = 0
    IdleTime = 180
    MachineOptions = [
      "scaleway-accesskey=********",
      "scaleway-secretkey=********",
      "scaleway-project-id=********",
      "scaleway-name=runner-1",
      "scaleway-commercial-type=DEV1-M",
      "scaleway-zone=fr-par-2",
      "scaleway-image=docker"
    ]

The "big" problem is to sync the ssh key from docker-machine to scaleway instance (read the cloudInit() method into the code).
Some old options are not implemented like scaleway-volume, scaleway-user/port.

I hope I have helped a little bit to use the Scaleway driver with Gitlab. (#99)

Pending official v2 and use MachineDriver = "scaleway-v2" :
go build -o docker-machine-driver-scaleway-v2

Regards,

@yocarbo yocarbo force-pushed the feat/scaleway-sdk-go branch 4 times, most recently from 541d26b to 543edfc Compare November 20, 2020 14:39
yocarbo and others added 2 commits November 20, 2020 18:44
BREAKING CHANGE: driver version and parameters are changed
@yocarbo yocarbo force-pushed the feat/scaleway-sdk-go branch from 543edfc to ffabe21 Compare November 20, 2020 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant