Commit Graph

683 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
marcos
08f1ead2a9 Remove hybrid image from compose as it's not needed anymore. 2017-11-24 12:32:20 -03:00
marcos
29ed79d418 Fix issue with scheduler mutex. Update k8s motd with new kubedashboard
url
2017-11-24 00:45:00 -03:00
Jonathan Leibiusky
d758c1a303 When playground is created or modified it emits an event. (#225)
The scheduler listens to playground events and updates it's
configuration immediately.
2017-11-23 13:40:06 -03:00
Jonathan Leibiusky
65b8364ef2 Now both index.html and landing.html can be changes for specific (#224)
playgrounds. By default they will be served from `www/default` if no
override has been specified
2017-11-22 17:32:41 -03:00
Jonathan Leibiusky
f277e3776c Make it so the playground can decide which index file to serve. (#223)
* Make it so the playground can decide which index file to serve.
Also remove special index-nw.html and use the current playground config to
decide if to show the windows instances option or not.

* Give a better name to the struct
2017-11-22 16:47:01 -03:00
marcos
2e039a4e60 Make KubeletClient public 2017-11-21 15:21:15 -03:00
Jonathan Leibiusky
0ad73acbb9 Add list playgrounds and create/update playground endpoints. (#221)
User is expected to send a predefined token as basic auth password.
2017-11-21 12:55:34 -03:00
Jonathan Leibiusky
95e4aaa5f7 Allow to decide which tasks are going to be executed per playground (#218) 2017-11-21 11:58:31 -03:00
Jonathan Leibiusky @xetorthio
f22bf1b3da Fix failing tests 2017-11-17 09:23:29 -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
dcb2bc7500 Pass playground struct to session provisioner 2017-11-16 12:00:59 -03:00
Jonathan Leibiusky @xetorthio
adb64091c4 Remove property not being used 2017-11-16 11:51:02 -03:00
Jonathan Leibiusky @xetorthio
4e09a76d64 Use a better uuid library 2017-11-14 16:42:02 -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
3dee0d3f0b Revert "Remove sensitive information from LoggedUser endpoint"
This reverts commit e91a1f3e6f.
2017-11-12 21:28:38 -03:00
Marcos Lilljedahl
0541165b70 Remove incorrect host replacement 2017-11-12 21:22:14 -03:00
Marcos Lilljedahl
e91a1f3e6f Remove sensitive information from LoggedUser endpoint 2017-11-09 19:21:31 -03:00
leigh schrandt
15a833fcf5 Add sudo shim to dockerfiles/dind/ (#209) 2017-11-09 15:29:28 -03:00
Marcos Lilljedahl
3db75cd297 Make ping not use docker/docker and update Dockerfiles 2017-11-09 15:28:31 -03:00
Jonathan Leibiusky @xetorthio
0c1320da00 Add ping and metrics endpoint to redirect server 2017-11-09 10:28:48 -03:00
John Impallomeni
edd1fe73c2 Removed hyperlink for example (#211)
I also change top link to https instead of http
2017-11-08 16:20:58 -03:00
Marcos Lilljedahl
a136c8516c Fix oauth window height and update and bump dind versions 2017-11-08 14:10:47 -03:00
Marcos Nils
c5f0f5fab9 Make me endpoint accessible through CORS. (#207)
Because the standard router was triggering before the cors one,
a regex not to match `/me` is needed
2017-11-06 13:43:41 -03:00
Marcos Nils
389e603e42 Update README.md 2017-11-03 13:56:38 -03:00
Marcos Nils
2cbde6d067 Remove session lock as it's worthless now that PWD is deployed in (#204)
multiple servers
2017-11-02 14:20:14 -03:00
Michael Irwin
80fcf5abe3 Treat buttons and dropdown as links (pointer cursor) (#203) 2017-11-02 12:40:37 -03:00
Jonathan Leibiusky @xetorthio
41f036416c Error message if client was not created 2017-11-01 15:00:04 -03:00
Jonathan Leibiusky @xetorthio
ba8d04aeb2 Make sure instance exists before trying to do anything 2017-11-01 14:56:22 -03:00
Jonathan Leibiusky @xetorthio
8f484ad5be Make sure instance exists before trying to change it's ports 2017-11-01 14:16:57 -03:00
Marcos Lilljedahl
d8bc3c597d Add check to avoid panic when receiving msg 2017-11-01 14:09:58 -03:00
Jonathan Leibiusky @xetorthio
1f58e740a1 Update index-nw to stop using socket.io 2017-10-31 17:31:03 -03:00
Jonathan Leibiusky @xetorthio
eeed9ed71a Remove old disconnect 2017-10-31 17:05:48 -03:00
Jonathan Leibiusky @xetorthio
380e15527b Merge branch 'websocket_rewrite' 2017-10-31 16:58:36 -03:00
Marcos Lilljedahl
5f8edd12cb Add CheckOrigin function to allow any connections 2017-10-31 16:57:36 -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
Jonathan Leibiusky @xetorthio
6009bfd781 Make router director return extra information (needed to route ssh
connections)
2017-10-31 12:49:37 -03:00
Marcos Lilljedahl
db6e23e1fa Add sudo shim 2017-10-25 15:15:12 -03:00
Marcos Lilljedahl
70fb34d3d5 Disable image pulling and update docker cli 2017-10-24 15:32:28 -03:00
leigh schrandt
4f9e58584b Update README.md (#199)
More URL format bikeshedding
2017-10-22 12:40:24 +02:00
Marcos Lilljedahl
36bebe3223 Add dep files 2017-10-20 18:43:15 -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)
2fd1b628a8 Remove unused import 2017-10-20 15:30:58 +02:00
Jonathan Leibiusky (@xetorthio)
fbce7ce63a Retry client connection when websocket is disconnected.
Close websocket server reference when client has disconnected.
2017-10-20 15:26:34 +02:00
Jonathan Leibiusky (@xetorthio)
b1406f4ea8 First try on using standard websocket and removing socket.io from the
middle
2017-10-19 13:49:14 +02:00
Valentin Vieriu
bf39828160 Update README.md (#197)
As #128 was merged, the url structure is different
2017-10-18 05:35:43 -03:00
Jonathan Leibiusky (@xetorthio)
82b95ee112 Return an avatar for docker id integrations 2017-10-17 14:04:14 +02:00
Jonathan Leibiusky (@xetorthio)
71464cffee Handle user not found error and only return user's public info 2017-10-17 12:02:35 +02:00
Jonathan Leibiusky (@xetorthio)
b99c047a0c Revert "Add session keep alive. If client doesn't send a keep alive, after a"
This reverts commit 1b0d363ffe.
2017-10-17 01:42:59 +02:00