Commit Graph

51 Commits

Author SHA1 Message Date
Marcos Lilljedahl
4b1dc52c59 Move DindVolumeSize to playground opts 2019-04-23 01:47:06 -03:00
Marcos Lilljedahl
6e925c9a85 Fix print formatting errors 2018-02-24 12:45:41 -03:00
Marcos Lilljedahl
556c841792 Set mod time to current time
Fixes #240
2018-02-12 02:13:32 -03:00
marcos
0e95554f31 Change containerDir path as /var/run is a special directory 2018-01-13 20:21:24 -03:00
marcos
386bd87385 Add support for file editor 2018-01-05 13:13:07 -03:00
Marcos Nils
3481442768 Initial k8s support in libplayground (#216)
* Initial k8s support in libplayground

* Make tasks never give up + custom event for k8s cluster status
2017-11-16 18:23:13 -03:00
Jonathan Leibiusky @xetorthio
62e948acb4 Merge branch 'master' into next 2017-10-31 16:28:31 -03:00
Jonathan Leibiusky @xetorthio
2d6cb93b3c Remove docker/docker dependency :) :) :) 2017-10-31 13:23:55 -03:00
Marcos Lilljedahl
70fb34d3d5 Disable image pulling and update docker cli 2017-10-24 15:32:28 -03:00
Marcos Lilljedahl
7ce693fab5 Vendor dependencies and use docker/go-docker for API types 2017-10-20 18:42:16 -03:00
Marcos Lilljedahl
de2f91ac4a Update due to docker/client API change 2017-10-10 17:06:45 -03:00
Marcos Lilljedahl
978fd78127 Update function due to docker client change 2017-10-10 14:05:35 -03:00
Marcos Lilljedahl
2f625c1bcc Use container name for volumes. 2017-10-06 10:21:41 -03:00
Marcos Lilljedahl
eebe638227 Remove volume when deleting container 2017-10-02 18:52:14 -03:00
Marcos Lilljedahl
2103175af5 Add support for external XFS volume
Update dind dockerfile and remove unnecessary stuff
2017-10-02 13:05:03 -03:00
Jonathan Leibiusky @xetorthio
2a261094ff GetForSession now expects a *types.Session instead of a string 2017-09-20 17:29:58 -03:00
Marcos Lilljedahl
a268ad6988 Make container memory limit configurable 2017-09-18 17:20:32 -03:00
Jonathan Leibiusky @xetorthio
86f27ee10d Connections to unsecure hosts has to go to 2375 not 2376.
Make swarm ports search by hostname and not instance name as it is what
we get from swarm.
2017-09-18 17:13:03 -03:00
Marcos Lilljedahl
05135dd645 Use port 2376 for SSL daemon configuration 2017-09-17 23:00:45 -03:00
Marcos Lilljedahl
d1cae34ddf Use routableIP when connecting to instances 2017-09-17 22:31:31 -03:00
Jonathan Leibiusky @xetorthio
8d33c2c680 Proxy both http and https to docker daemon 2017-09-15 21:28:27 -03:00
Jonathan Leibiusky @xetorthio
e9e20a5e79 Allow to connect to docker daemons without certificates but using tls 2017-09-15 17:19:34 -03:00
Jonathan Leibiusky @xetorthio
c4859e13bf Make sure instances have unique names.
Make sure we don't return an old docker client.
2017-09-13 19:25:21 -03:00
Marcos Lilljedahl
4d643d04c0 Add SESSION_ID to instance and remove unnecessary stuff 2017-09-12 17:02:27 -03:00
Jonathan Leibiusky @xetorthio
fe299fed90 Make SessionSetup faster and support for command execution 2017-09-11 18:09:27 -03:00
Marcos Lilljedahl
4b7589bc67 Add Env variable to control container storage size 2017-09-07 15:52:03 -03:00
Jonathan Leibiusky @xetorthio
150b089602 Reimplement terminal connections 2017-09-07 15:27:25 -03:00
Marcos Lilljedahl
5511d20d1b Fix error 2017-08-25 14:58:28 -03:00
Marcos Lilljedahl
e9f5de5677 Change networks opts into a slice when creating a container 2017-08-25 14:57:29 -03:00
Jonathan Leibiusky @xetorthio
a8567d8670 Add routable IP 2017-08-25 14:55:08 -03:00
Marcos Lilljedahl
19176966e2 Assign network endpoints to config object 2017-08-25 14:08:26 -03:00
Jonathan Leibiusky @xetorthio
6941b8b69a Make networks a list so it can be decided by the provisioner to which to
connect to
2017-08-25 13:39:17 -03:00
Jonathan Leibiusky @xetorthio
c44512f159 Add labels and additional network to connect container to 2017-08-25 10:21:59 -03:00
Marcos Lilljedahl
52d523ac92 Add NetworkInspect to DockerAPI 2017-08-24 16:45:12 -03:00
Marcos Lilljedahl
1bdda6948e Add network opts to CreateNetwork API 2017-08-24 16:20:32 -03:00
Jonathan Leibiusky @xetorthio
2549d64b8b Avoid TIME_WAIT leaking connections 2017-08-21 15:13:38 -03:00
Marcos Lilljedahl
a32c362c39 Rename dind container in windows provisioner to match names 2017-08-15 16:14:23 -03:00
Jonathan Leibiusky @xetorthio
986605015e Fix check docker connection 2017-08-11 19:01:52 -03:00
Marcos Lilljedahl
fb1e50deaf Refactor GetForInstance so it doesn't depends on storage 2017-08-11 18:16:14 -03:00
Jonathan Leibiusky @xetorthio
0e9716d5b0 Set session host
Add ping to L2 router
2017-08-08 10:10:52 -03:00
Marcos Lilljedahl
ed7cefcf9c Add first version of the windows ASG provider 2017-08-04 21:54:44 -03:00
Jonathan Leibiusky @xetorthio
f810c0c92f Use transport proxy instead of a special custom header 2017-08-04 15:45:05 -03:00
Jonathan Leibiusky @xetorthio
defe8552fb Make it multiple goroutines friendly 2017-08-03 15:58:02 -03:00
Jonathan Leibiusky @xetorthio
201aed1818 More fixes 2017-07-28 23:37:09 -03:00
Jonathan Leibiusky @xetorthio
5ee4bb2011 More fixes 2017-07-28 23:24:02 -03:00
Jonathan Leibiusky @xetorthio
0e08107738 Tests are working again 2017-07-28 20:42:05 -03:00
Jonathan Leibiusky @xetorthio
8f247794bb Add PWD_HOST_FQDN env variable to instances. 2017-06-14 19:02:07 -03:00
Jonathan Leibiusky @xetorthio
6d992b5d02 Add session templates 2017-06-06 14:48:26 -03:00
Jonathan Leibiusky @xetorthio
b0b9269ccc Allow to launch instances with any kind of public image.
Images that are not whitelisted will be launched as normal containers.
Only whitelisted ones will be launched as privileged.
Additionally pull the image if it doesn't exist.
2017-05-27 20:04:37 -03:00
Jonathan Leibiusky @xetorthio
3d96760a98 WIP 2017-05-23 19:29:36 -03:00