101 Commits

Author SHA1 Message Date
Peter Schultz
bfa0cf6750 drivers/google: Add support for non-default service account
Add the --google-service-account flag to create VMs that are not
provisioned with the default service account.

Signed-off-by: Peter Schultz <peter.schultz@classmarkets.com>
2018-07-03 09:35:00 +02:00
David Gageot
5048437c3d Merge pull request #4355 from tmaier/google-AutoDelete
Google Driver: Enable AutoDelete of Disks for GCE
2018-02-10 09:50:58 +01:00
David Gageot
3f656f6219 Merge pull request #4330 from tmaczukin/make-404-success-when-deleting-gce-machine-and-disk
404 is a success when deleting GCE machine and disk
2018-01-28 09:51:37 -08:00
Tobias L. Maier
72c5993653 Enable AutoDelete of Disks for GCE
Disks are not reliably deleted.

For example when using together with Preemptible VMs. It can happen that the Disk stays there forever.

Signed-off-by: Tobias L. Maier <me@tobiasmaier.info>
2018-01-04 15:10:08 +01:00
Ian Taylor
d6a649d6c0 Add support for fully qualified network and subnetwork names
Signed-off-by: Ian Taylor <ian.b.taylor@gmail.com>
2017-12-12 08:45:48 -08:00
Kamil Trzcinski
435cb92a59 404 is a success when deleting GCE machine and disk
Signed-off-by: Tomasz Maczukin <tomasz@maczukin.pl>
2017-12-07 22:10:10 +01:00
Joffrey F
bde2a2e206 Small code flow improvement
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-10-03 14:35:38 -07:00
Filip Weiss
0ed3d44580 google driver: remove 404 machines with warning
Signed-off-by: Filip Weiss <me@fiws.net>
2017-10-03 14:30:52 -07:00
Christian Bundy
2ec02eca31 Upgrade Google driver image to most recent version
This resolves #4207, which is caused by dpkg being locked in the previous image.

Signed-off-by: Christian Bundy <christianbundy@fraction.io>
2017-08-10 10:27:54 -07:00
Sven Dowideit
ffd9511da5 Fix up old image name calling convention
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-05-19 12:08:31 +10:00
Lars Larsson
2c72db963f added support for subnetwork in GCE driver. updated google api dependencies
Signed-off-by: Lars Larsson <lars.la@gmail.com>
2017-03-12 14:18:44 +01:00
André Carvalho
9ce71fd800 drivers/google: add --google-open-port flag
This commit implements the --google-open-port flag
to allow the user to make other host ports
available to the internet. Uses the same pattern as other
drivers, e.g, amazonec2 and azure.

Signed-off-by: André Carvalho <asantostc@gmail.com>
2016-12-15 23:06:18 -02:00
Tao Wang
c0e800cca1 Update GCE and Rackspace default image to Ubuntu 16.04
Signed-off-by: Tao Wang <twang2218@gmail.com>
2016-12-02 15:30:11 +11:00
Tao Wang
16a41453b6 Remove unused upstart commands left in GCE driver.
Signed-off-by: Tao Wang <twang2218@gmail.com>
2016-11-25 04:35:17 +11:00
Nathan LeClaire
19973f2b1b Fix golint errors
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2016-11-15 17:14:17 -08:00
Ty Davis
607fafc629 Permit network argument, shorten SourceImage URI
Signed-off-by: Tyler Davis <tydavis@gmail.com>
2016-07-19 13:20:45 -07:00
Jeremy Katz
2692ac9005 Add the monitoring scope to the default scopes for GCE instances created by docker-machine
Signed-off-by: Jeremy Katz <jekatz@google.com>
2016-06-22 10:18:47 -04:00
Jason Roehm
6789c51b83 Google driver: add --google-use-internal-ip-only flag
This addresses previously-closed issue #2876, which points out that
instances created with the `--google-use-internal-ip` command-line flag
are still assigned an external IP address. The new flag (which implies
the presence of `--google-use-internal-ip` if it isn't specified) will
cause the new instance to have no externally-accessible IP address.

Signed-off-by: Jason Roehm <jroehm@gmail.com>
2016-03-01 12:41:19 -05:00
David Gageot
01bd88f6a5 Support creating a machine on an existing google VM
Signed-off-by: David Gageot <david@gageot.net>
2016-01-25 10:34:51 +01:00
David Gageot
52bd740ad3 Revert "Support creating a machine on an existing google VM"
This reverts commit 7cf9ae71be.

Signed-off-by: David Gageot <david@gageot.net>
2016-01-11 15:47:01 +01:00
Daehyeok Mun
c33fd0d548 GCE delete instance during rm
Delete instance during rm command regardless instance status

Signed-off-by: Daehyeok Mun <daehyeok@gmail.com>
2016-01-06 18:04:50 -07:00
David Gageot
7cf9ae71be Support creating a machine on an existing google VM
Signed-off-by: David Gageot <david@gageot.net>
2016-01-06 16:55:56 +01:00
David Gageot
e143c68cf9 Merge pull request #2732 from dgageot/better-logs
Improve Start/Stop/Kill/Restart lifecycle/logs
2016-01-04 16:24:55 +01:00
David Gageot
9354fed274 Remove some duplication related to swarm
Signed-off-by: David Gageot <david@gageot.net>
2016-01-04 10:40:04 +01:00
David Gageot
e9aa75f021 Logs for Restart
Signed-off-by: David Gageot <david@gageot.net>
2016-01-04 10:38:25 +01:00
David Gageot
783d2b124e Logs for Start
Signed-off-by: David Gageot <david@gageot.net>
2016-01-04 10:38:25 +01:00
David Gageot
bbe76b5a26 Logs for Stop
Signed-off-by: David Gageot <david@gageot.net>
2016-01-04 10:38:25 +01:00
David Gageot
1c6ceed28e Fix Restart() for some drivers
Signed-off-by: David Gageot <david@gageot.net>
2015-12-22 10:32:57 +01:00
David Gageot
b995a4d65a FIX #2561 SSH pubkey should have username comment
Signed-off-by: David Gageot <david@gageot.net>
2015-12-15 11:12:53 +01:00
David Gageot
82edc1d174 FIX #1432 open all the ports need for google driver
Signed-off-by: David Gageot <david@gageot.net>
2015-12-10 14:20:46 +01:00
David Gageot
58b4cce392 Remove dead code and other cosmetic changes
Signed-off-by: David Gageot <david@gageot.net>
2015-12-10 14:20:46 +01:00
Thomas Recloux
bd12140d6b Google : update default image to ubuntu 15.10
Signed-off-by: Thomas Recloux <thomas.recloux@gmail.com>
2015-12-03 19:14:14 +01:00
David Gageot
ec76843e03 Cosmetics
Signed-off-by: David Gageot <david@gageot.net>
2015-11-30 14:24:58 +01:00
David Gageot
fea0dcb3da Simpler error message
Signed-off-by: David Gageot <david@gageot.net>
2015-11-30 14:24:58 +01:00
David Gageot
77b7734404 Simplify code
Signed-off-by: David Gageot <david@gageot.net>
2015-11-30 14:24:58 +01:00
David Gageot
085fe1334a Faster google driver
Signed-off-by: David Gageot <david@gageot.net>
2015-11-30 14:24:57 +01:00
David Gageot
865133aa40 Update Google Driver dependencies
Signed-off-by: David Gageot <david@gageot.net>
2015-11-23 17:47:17 +01:00
David Gageot
71f82e86b1 Fix Typo
Signed-off-by: David Gageot <david@gageot.net>
2015-11-19 11:57:36 +01:00
David Gageot
5aa2179807 GetURL() should fail is the machine is stopped
Signed-off-by: David Gageot <david@gageot.net>
2015-11-19 11:32:48 +01:00
David Gageot
01f3a45530 Update default google image
Signed-off-by: David Gageot <david@gageot.net>
2015-11-19 11:32:48 +01:00
Vladimir Varankin
0735f3f447 fix drivers GetUrl to build propper IPv6 addr
Signed-off-by: Vladimir Varankin <nek.narqo+git@gmail.com>
2015-11-13 13:19:15 +03:00
Olivier Gambier
89d9854943 Another pass at linting
Signed-off-by: Olivier Gambier <olivier@docker.com>
2015-11-10 16:58:14 +01:00
David Gageot
11922080a1 FIX #2171 Fix faulty flag and add tests for SetConfigFromFlags
Signed-off-by: David Gageot <david@gageot.net>
2015-11-05 18:57:03 +01:00
root
d1712e0cd3 Introduced a new flag for google driver:
--google-use-internal-ip

Signed-off-by: Mariusz Woloszyn <emsi@EmsiOSX.dom.qpqp01.pl>
2015-11-04 09:10:29 +00:00
aperepel
914ccb6968 Fixes #1243 Custom GCE images support
Signed-off-by: Andrew Grande <aprepel@gmail.com>

Signed-off-by: David Gageot <david@gageot.net>
2015-10-29 11:11:32 +01:00
David Gageot
b213da0961 Use PreCreateCheck to check the project/credentials
Signed-off-by: David Gageot <david@gageot.net>
2015-10-29 10:05:24 +01:00
David Gageot
77c2bbcdd2 FIX #2023 and #1061 Use google default authentication
Signed-off-by: David Gageot <david@gageot.net>
2015-10-28 22:16:22 +01:00
David Gageot
6c5dc41e6d Revert "Remove useless duplication on GetSSHHostname"
This reverts commit b6462eb6d0.

Signed-off-by: David Gageot <david@gageot.net>
2015-10-26 18:47:14 +01:00
Olivier Gambier
b6462eb6d0 Remove useless duplication on GetSSHHostname
Signed-off-by: Olivier Gambier <olivier@docker.com>
2015-10-21 13:48:13 -07:00
Olivier Gambier
bf3cd8b8f4 Remove useless duplication on PreCreateCheck
Signed-off-by: Olivier Gambier <olivier@docker.com>
2015-10-21 13:48:13 -07:00