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

Update SSH info for better user experience #3389

Merged
merged 3 commits into from
Aug 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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