Commit Graph

710 Commits

Author SHA1 Message Date
Marcos Lilljedahl
ff905a0993 Merge branch 'next' of github.com:xetorthio/play-with-docker into next 2017-09-21 15:06:37 -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
495219cdec Add more info to router 2017-09-19 20:39:45 -03:00
Marcos Lilljedahl
857f6f0f62 Fix tests 2017-09-19 15:33:13 -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
Marcos Lilljedahl
e0f3186591 Update to 17.07 dind 2017-09-16 04:25:18 -03:00
Marcos Lilljedahl
8cc2dca7c8 Merge branch 'master' of github.com:play-with-docker/play-with-docker 2017-09-16 04:15:51 -03:00
Jonathan Leibiusky @xetorthio
8d33c2c680 Proxy both http and https to docker daemon 2017-09-15 21:28:27 -03:00
Marcos Lilljedahl
6b43fc0e83 Move dockerfiles to their own folder 2017-09-15 17:58:36 -03:00
Jonathan Leibiusky @xetorthio
23d0d8e8d0 Add flag to force TLS 2017-09-15 17:49:36 -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
6ac9784bef Make sure that we don't use weird geometries 2017-09-14 16:03: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
3ca50eae2e Make sure to use the max number of failures 2017-09-14 09:57:50 -03:00
Jonathan Leibiusky @xetorthio
7763175e18 Give up after a few tries 2017-09-13 19:50:58 -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
Jonathan Leibiusky @xetorthio
d566e5ee05 Reimplement the scheduler to be a lot more reliable 2017-09-13 19:21:06 -03:00
Marcos Lilljedahl
f0c744f0b3 Add ubuntu ee dockerfile and UCP scripts 2017-09-12 18:59:45 -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
712772eff4 Make UI nicer with instance IP addresses and hostname 2017-09-12 11:53:26 -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
86044788b9 Don't change session host! 2017-09-08 18:22:31 -03:00
Marcos Lilljedahl
19283a3c86 Add rediretion when using https 2017-09-08 16:14:01 -03:00
Jonathan Leibiusky @xetorthio
3db24bf6a6 Show a message when connection to terminal has been lost 2017-09-08 15:32:20 -03:00
Jonathan Leibiusky @xetorthio
f5c337e03d Few fixes to terms 2017-09-08 12:20:29 -03:00
Jonathan Leibiusky @xetorthio
45137438db Make sure instance does not exist before reconnecting 2017-09-08 11:22:23 -03:00
Jonathan Leibiusky @xetorthio
eeff2ed652 Use L2 router to reach windows instances 2017-09-08 10:03:38 -03:00
Jonathan Leibiusky @xetorthio
560a3ae05a Add OOC check and error on new session creation 2017-09-07 17:30:04 -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
d29a02bb22 Make sure channel and connection exists before closing 2017-09-07 16:41:37 -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
f3307d964c Change SSH container to use SSH remoting 2017-09-04 17:33:56 -03:00
Jonathan Leibiusky @xetorthio
6a8c3df9f6 Add mongo labels to types 2017-09-04 17:17:28 -03:00
Jonathan Leibiusky @xetorthio
d8ec0eb754 Make storage NotFoundError available 2017-09-01 20:29:54 -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
Jonathan Leibiusky @xetorthio
4b00a9c0eb If session doesn't exist, don't panic! 2017-08-30 18:55:13 -03:00
Jonathan Leibiusky @xetorthio
e079517803 Don't call resize several times on instance creation.
Fix a few race conditions for terminal resize and terminal buffer
writing.
2017-08-30 16:36:38 -03:00
Jonathan Leibiusky @xetorthio
ed3492eb38 Don't send empty terminal buffer 2017-08-30 11:16:37 -03:00
Jonathan Leibiusky @xetorthio
fc3dfa6844 Add let's encrypt support 2017-08-30 10:31:26 -03:00
Jonathan Leibiusky @xetorthio
beec1628be Don't have parallel execution of task if it takes longer than interval
time
2017-08-28 11:53:12 -03:00
Jonathan Leibiusky @xetorthio
26724c51be Add a small buffer on terminal input so we don't send every single
keystroke as a single message on the socket, and optimize data transfer.
2017-08-28 10:36:38 -03:00
Marcos Lilljedahl
305b15ff6c Fix network options in tests 2017-08-25 15:03:03 -03:00