Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use scaleway-sdk-go instead go-scaleway #109

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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