Stavros Panakakis
3ee2975d76
Upgrade docker sdk to moby ( #491 )
...
* Replace deprecated method
* Upgrade docker sdk to moby
2021-09-07 08:03:13 -03:00
Marcos Lilljedahl
e8486b8100
Provide support to configure privileged containers per playground
2020-10-25 19:21:31 -03:00
Paul Jolly
681de41e0a
provisioner: augment Networks config from caller when -unsafe ( #411 )
...
Currently container instances are hard-coded to join a single network,
the network associated with the session.
This change allows the caller of CreateInstance to specify which
additional networks should be joined. This is useful, for example, when
a container instance requires access to additional "backend" services
that may be running.
There are security implications associated with this change, hence the
additional networks are only joined when a new -unsafe flag is
specified. It is hoped the name is a sufficient indicator that thought
needs to go into using it.
2020-09-04 13:46:31 +01:00
Marcos Lilljedahl
833e71330f
Allow to set env variables through the API
2020-06-19 08:26:38 -03:00
Marcos Lilljedahl
4b1dc52c59
Move DindVolumeSize to playground opts
2019-04-23 01:47:06 -03:00
marcos
386bd87385
Add support for file editor
2018-01-05 13:13:07 -03:00
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