Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Update SSH info for better user experience (#3389)
Browse files Browse the repository at this point in the history
* update

* minor

* minor
  • Loading branch information
hzy46 authored Aug 20, 2019
1 parent 5a525af commit fa7ce53
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,13 @@ export default class TaskRoleContainerList extends React.Component {
const {sshInfo} = this.context;
const containerSshInfo = sshInfo && sshInfo.containers.find((x) => x.id === id);
if (!containerSshInfo) {
const res = [];
res.push('This job does not contain SSH info.');
res.push('Please note that if your docker image does not have openssh-server and curl packages, SSH will not be enabled.\n');
res.push('Solution 1: Use one of the recommended docker images on the submission page.');
res.push('Solution 2: Use your own image, but enable SSH for it. Please follow the instructions on https://aka.ms/AA5u4sq to do such work.');
this.setState({
monacoProps: {value: 'This job does not contain SSH info.'},
monacoProps: {value: res.join('\n')},
monacoTitle: `SSH to ${id}`,
});
} else {
Expand Down

0 comments on commit fa7ce53

Please sign in to comment.