Commit Graph

35 Commits

Author SHA1 Message Date
Jonathan Leibiusky
da6a55fb5c New session now expects a struct with everything it needs and a context (#228)
to pass along
2017-11-28 12:14:50 -03:00
Jonathan Leibiusky @xetorthio
dcb2bc7500 Pass playground struct to session provisioner 2017-11-16 12:00:59 -03:00
Jonathan Leibiusky
3f5b3882dd Multiple playgrounds support (#215)
* Add Playground struct and basic support for creating it and retrieving
it

* Add missing functions in pwd mock

* Get playground from request domain and validate it exists. If valid set
it on the newly created session.

* Move playground specific configurations to the playground struct and use
it everytime we need that conf.

* Don't allow to specify a duration bigger that the allowed in the
playground
2017-11-14 15:50:04 -03:00
Marcos Lilljedahl
7ce693fab5 Vendor dependencies and use docker/go-docker for API types 2017-10-20 18:42:16 -03:00
Jonathan Leibiusky @xetorthio
2a261094ff GetForSession now expects a *types.Session instead of a string 2017-09-20 17:29:58 -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
Jonathan Leibiusky @xetorthio
8d33c2c680 Proxy both http and https to docker daemon 2017-09-15 21:28:27 -03:00
Jonathan Leibiusky @xetorthio
86a0f7d1e9 Refactor id generator to it's own package 2017-09-14 10:20:20 -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
a9474cf75e Rename Host to PlaygroundFQDN 2017-09-12 17:58:56 -03:00
Marcos Lilljedahl
6eacb85fc3 Add missing pieces due to rebase 2017-09-12 17:17:19 -03:00
Marcos Lilljedahl
81d9d9c9b6 Add missing function to windows provisioner 2017-09-12 17:09:43 -03:00
Marcos Lilljedahl
4d643d04c0 Add SESSION_ID to instance and remove unnecessary stuff 2017-09-12 17:02:27 -03:00
Marcos Lilljedahl
ddcf5cf7bc Update windows provisioner 2017-09-12 16:59:57 -03:00
Jonathan Leibiusky @xetorthio
fe299fed90 Make SessionSetup faster and support for command execution 2017-09-11 18:09:27 -03:00
Jonathan Leibiusky @xetorthio
ef9be2a5ac Add support for out of capacity error message 2017-09-07 17:05:05 -03:00
Jonathan Leibiusky @xetorthio
150b089602 Reimplement terminal connections 2017-09-07 15:27:25 -03:00
Jonathan Leibiusky @xetorthio
954c52471b Refactor storage to support shallow types.
Add Client to storage.
Fix client resizing issues.
2017-09-01 20:12:19 -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
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
3c6d87cb14 Add SessionClose to SessionProvisioner 2017-08-25 11:14:49 -03:00
Marcos Lilljedahl
1bdda6948e Add network opts to CreateNetwork API 2017-08-24 16:20:32 -03:00
Jonathan Leibiusky @xetorthio
438fe9f6e7 Add SessionProvisioner and InstanceProvisionerFactory
Remove AllowedImages and IsDockerHost as it is not really being used for
anything useful
2017-08-24 15:36:59 -03:00
Marcos Lilljedahl
e46d77b96d Remove instances from ASG and terminate them when deleting 2017-08-18 18:53:54 -03:00
Marcos Lilljedahl
6d9ed2be41 Fix issue when trying to delete dangling ssh containers 2017-08-15 20:03:24 -03:00
Marcos Lilljedahl
a32c362c39 Rename dind container in windows provisioner to match names 2017-08-15 16:14:23 -03:00
Marcos Lilljedahl
fb1e50deaf Refactor GetForInstance so it doesn't depends on storage 2017-08-11 18:16:14 -03:00
Marcos Lilljedahl
984fdcce11 Fix compilation issues 2017-08-11 11:30:25 -03:00
Marcos Lilljedahl
643e1392c6 Use instance ip in proxy_host in windows containers 2017-08-11 11:26:17 -03:00
Marcos Lilljedahl
0c9276a4bd Tunnel 2375 to reach windows daemon 2017-08-11 11:19:05 -03:00
Marcos Lilljedahl
30d709760c Add support for windows containers 2017-08-11 09:59:33 -03:00
Marcos Lilljedahl
ed7cefcf9c Add first version of the windows ASG provider 2017-08-04 21:54:44 -03:00
Jonathan Leibiusky @xetorthio
e0626f4176 Add certificate management funcs 2017-08-03 11:11:08 -03:00
Jonathan Leibiusky @xetorthio
c2b156d02a Add provisioners 2017-08-02 11:58:56 -03:00