|
|
|
@@ -69,7 +69,7 @@ const ( |
|
|
|
|
|
|
|
VolumeID = "c6a73891-6a19-4a6a-a2e8-0d6baa72a7c5" |
|
|
|
VolumeSourcePath = "192.168.0.30:/" |
|
|
|
VolumeDestPath = "/cache/sfs/" |
|
|
|
VolumeDestPath = "/cache/sfs" |
|
|
|
) |
|
|
|
|
|
|
|
var ( |
|
|
|
@@ -377,12 +377,14 @@ func GenerateTrainJob(ctx *context.Context, req *GenerateTrainJobReq) (jobId str |
|
|
|
Parameter: req.Parameters, |
|
|
|
UserImageUrl: req.UserImageUrl, |
|
|
|
UserCommand: req.UserCommand, |
|
|
|
Volumes: models.Volumes{ |
|
|
|
Nfs: models.Nfs{ |
|
|
|
ID: VolumeID, |
|
|
|
SourcePath: VolumeSourcePath, |
|
|
|
DestPath: VolumeDestPath, |
|
|
|
ReadOnly: false, |
|
|
|
Volumes: []models.Volumes{ |
|
|
|
{ |
|
|
|
Nfs: models.Nfs{ |
|
|
|
ID: VolumeID, |
|
|
|
SourcePath: VolumeSourcePath, |
|
|
|
DestPath: VolumeDestPath, |
|
|
|
ReadOnly: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
@@ -405,12 +407,14 @@ func GenerateTrainJob(ctx *context.Context, req *GenerateTrainJobReq) (jobId str |
|
|
|
Code: req.Spec.SourceSpecId, |
|
|
|
}, |
|
|
|
Parameter: req.Parameters, |
|
|
|
Volumes: models.Volumes{ |
|
|
|
Nfs: models.Nfs{ |
|
|
|
ID: VolumeID, |
|
|
|
SourcePath: VolumeSourcePath, |
|
|
|
DestPath: VolumeDestPath, |
|
|
|
ReadOnly: false, |
|
|
|
Volumes: []models.Volumes{ |
|
|
|
{ |
|
|
|
Nfs: models.Nfs{ |
|
|
|
ID: VolumeID, |
|
|
|
SourcePath: VolumeSourcePath, |
|
|
|
DestPath: VolumeDestPath, |
|
|
|
ReadOnly: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|