Skip to content

Commit

Permalink
CHE-4098: separate terminal and exec agents (#4486)
Browse files Browse the repository at this point in the history
Refactor golang terminal code.
Add ping frames into terminal websocket connection.
Signed-off-by: Alexander Garagatyi <[email protected]>
  • Loading branch information
Alexander Garagatyi authored Mar 27, 2017
1 parent eb6b007 commit 0c8bfff
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion e2e/stacks/list-stacks/list-stack.mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exports.listStacksTheeEntries = function () {
'machines': {
'dev-machine': {
'servers': {},
'agents': ['org.eclipse.che.terminal', 'org.eclipse.che.ws-agent', 'org.eclipse.che.ssh'],
'agents': ['org.eclipse.che.exec', 'org.eclipse.che.terminal', 'org.eclipse.che.ws-agent', 'org.eclipse.che.ssh'],
'attributes': {'memoryLimitBytes': '2147483648'}
}
}, 'recipe': {'location': 'codenvy/node', 'type': 'dockerimage'}
Expand Down
6 changes: 4 additions & 2 deletions e2e/stacks/stack-details/stack-details.mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ exports.dockerimageStack = function () {
'machines': {
'dev-machine': {
'servers': {},
'agents': ['org.eclipse.che.terminal', 'org.eclipse.che.ws-agent', 'org.eclipse.che.ssh'],
'agents': ['org.eclipse.che.exec', 'org.eclipse.che.terminal', 'org.eclipse.che.ws-agent', 'org.eclipse.che.ssh'],
'attributes': {'memoryLimitBytes': '2147483648'}
}
}, 'recipe': {'location': 'eclipse/node', 'type': 'dockerimage'}
Expand Down Expand Up @@ -60,7 +60,7 @@ exports.dockerfileStack = function () {
'machines': {
'dev-machine': {
'servers': {},
'agents': ['org.eclipse.che.ws-agent', 'org.eclipse.che.ssh', 'org.eclipse.che.terminal'],
'agents': ['org.eclipse.che.ws-agent', 'org.eclipse.che.ssh', 'org.eclipse.che.exec', 'org.eclipse.che.terminal'],
'attributes': {'memoryLimitBytes': '2147483648'}
}
}
Expand Down Expand Up @@ -98,6 +98,7 @@ exports.composefileStack = function () {
'db': {
'servers': {},
'agents': [
'org.eclipse.che.exec',
'org.eclipse.che.terminal'
],
'attributes': {
Expand All @@ -107,6 +108,7 @@ exports.composefileStack = function () {
'dev-machine': {
'servers': {},
'agents': [
'org.eclipse.che.exec',
'org.eclipse.che.terminal',
'org.eclipse.che.ws-agent',
'org.eclipse.che.ssh'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class AddMachineDialogController {
setDefaultData(): void {
this.machine = {
'agents': [
'org.eclipse.che.terminal', 'org.eclipse.che.ssh'
'org.eclipse.che.exec', 'org.eclipse.che.terminal', 'org.eclipse.che.ssh'
],
'servers': {},
'attributes': {}
Expand Down
2 changes: 1 addition & 1 deletion src/components/api/che-stack.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class CheStack {
'machines': {
'dev-machine': {
'agents': [
'org.eclipse.che.terminal', 'org.eclipse.che.ws-agent', 'org.eclipse.che.ssh'
'org.eclipse.che.exec', 'org.eclipse.che.terminal', 'org.eclipse.che.ws-agent', 'org.eclipse.che.ssh'
],
'servers': {},
'attributes': {
Expand Down
4 changes: 2 additions & 2 deletions src/components/api/che-workspace.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export class CheWorkspace {
'machines': {
'dev-machine': {
'attributes': {'memoryLimitBytes': ram},
'agents': ['org.eclipse.che.ws-agent', 'org.eclipse.che.terminal', 'org.eclipse.che.ssh']
'agents': ['org.eclipse.che.ws-agent', 'org.eclipse.che.exec', 'org.eclipse.che.terminal', 'org.eclipse.che.ssh']
}
}
};
Expand Down Expand Up @@ -355,7 +355,7 @@ export class CheWorkspace {
'name': 'ws-machine',
'attributes': {'memoryLimitBytes': ram},
'type': 'docker',
'agents': ['org.eclipse.che.ws-agent', 'org.eclipse.che.terminal', 'org.eclipse.che.ssh']
'agents': ['org.eclipse.che.ws-agent', 'org.eclipse.che.exec', 'org.eclipse.che.terminal', 'org.eclipse.che.ssh']
};
defaultEnvironment.machines[devMachine.name] = devMachine;
} else {
Expand Down

0 comments on commit 0c8bfff

Please sign in to comment.