1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-15 02:37:27 +08:00

85 Commits

Author SHA1 Message Date
Marcos Lilljedahl
e8d69d6a21 Fix session config for docker image 2016-11-14 22:08:53 -03:00
Marcos Lilljedahl
23bb4eaf69 Add session persistence and use attach instead of exec 2016-11-14 21:29:32 -03:00
Marcos Lilljedahl
6148dd8d86 Ctrl-m is enter :S 2016-11-14 18:23:24 -03:00
Marcos Lilljedahl
227af2338d Change default dind detach keys to standard PQ can be used in PWD 2016-11-14 17:49:34 -03:00
Marcos Lilljedahl
46f95ce6a5 Increase limits and change ngrok instance 2016-11-14 16:38:57 -03:00
Marcos Lilljedahl
3e142c91e8 Revert transport preference 2016-11-14 11:56:26 -03:00
Marcos Lilljedahl
46a186f28b Add hostname to instance name 2016-11-14 01:29:36 -03:00
Marcos Lilljedahl
bea093e67a Use 1.12.3 dind image 2016-11-14 00:55:02 -03:00
Marcos Nils
cdf1027e94 Memory limit (#26)
* Hardcode memory to 512mb

Fixes #21

* Add constants to define memory and disable OOM
2016-11-13 17:09:44 +02:00
Marcos Lilljedahl
54378862b3 Use docker 1.13 to allow overlay networks
- Print error if resizing fails
2016-11-13 01:11:45 -03:00
Jonathan Leibiusky (@xetorthio)
e8b38fe717 Add session close button 2016-11-12 18:58:30 -03:00
Jonathan Leibiusky (@xetorthio)
1be40005e8 Increase session time 2016-11-11 20:18:47 -03:00
Jonathan Leibiusky (@xetorthio)
d05fe56fea Better session lock management 2016-11-11 20:10:19 -03:00
Jonathan Leibiusky (@xetorthio)
e49245dfe9 Increase session TTL to 4 hours 2016-11-11 09:17:01 -03:00
Jonathan Leibiusky (@xetorthio)
6d967441ac If instance doesn't exist don't try to connect to its terminal 2016-11-11 09:16:01 -03:00
Jonathan Leibiusky (@xetorthio)
b5e016e6f5 When there are no more clients, don't try to measure best viewport size 2016-11-10 16:23:54 -03:00
Jonathan Leibiusky (@xetorthio)
8e4981d24f Huge refactor to have everything working with socket.io
It fixes lots of bugs, can fallback to long polling, resize viewport of
terminals and share clients state of the session, so they all see the
same thing.
2016-11-10 10:42:08 -03:00
Marcos Lilljedahl
a56af3dc22 Refactor sessions and add locking to avoid concurrent requests to create
more instances
2016-10-14 12:54:25 -03:00
Marcos Lilljedahl
3dd5a8b5ef Set default resize options 2016-10-11 17:05:06 -03:00
Marcos Lilljedahl
50a08f265c Revert "Don't allocate a pseudo tty for shell attaches"
This reverts commit d87e288f6ffa15cf72d8b90567a5cf02e902bf7f.
2016-10-11 13:33:22 -03:00
Jonathan Leibiusky (@xetorthio)
d87e288f6f Don't allocate a pseudo tty for shell attaches 2016-10-11 13:25:33 -03:00
Jonathan Leibiusky (@xetorthio)
59844cb80c Create a pseudo tty to docker daemons 2016-10-11 13:03:30 -03:00
Marcos Nils
429a5f9014 Merge pull request #4 from alexellis/ulimit_experimental
Experimental ulimit implementation and README.md
2016-10-11 01:25:06 +02:00
Marcos Lilljedahl
672b85cfe3 Remove volumes when deleting instances
Fixes #1
2016-10-09 21:16:58 +02:00
Alex
7df6bacee5 Allow dind image to be overriden.
- improve readme - mention pre-pulling dind image.
- read env variable once in init() method
2016-10-09 19:49:34 +01:00
Alex
11749c4902 Provide DIND override through DIND_IMAGE env variable. Use pinned version of DIND by default instead of latest to prevent surprises. 2016-10-09 19:37:53 +02:00
Alex
74e8502f3f - Fix .gitignore
- Note about bug with Docker driver
- Implement experimental pid ulimit of 150.
2016-10-09 18:58:32 +02:00
Marcos Lilljedahl
97f39ca375 Remove writer if websocket disconnects 2016-10-08 15:04:30 +02:00
Marcos Lilljedahl
b3e7dcae3b Make session replication 2016-10-08 14:26:25 +02:00
Jonathan Leibiusky (@xetorthio)
02d50073c5 Attach to the same terminal 2016-10-08 13:35:02 +02:00
Jonathan Leibiusky (@xetorthio)
1d550aaa46 Merge branch 'master' of github.com:franela/play-with-docker 2016-10-08 11:27:14 +02:00
Jonathan Leibiusky (@xetorthio)
4950f03404 Show when session has expired 2016-10-08 11:26:16 +02:00
Marcos Lilljedahl
b79850c50f Create overlay networks by default 2016-10-08 11:25:50 +02:00
Jonathan Leibiusky (@xetorthio)
b6b849e2c6 Change import paths
Add session cleanup
2016-10-08 10:25:10 +02:00
Jonathan Leibiusky (@xetorthio)
dde49d8700 Initial commit 2016-10-08 03:12:48 +02:00