"PORT" : 8081,
"PATH": "/var/tmp/tic-web/",
"PATH_ABSTRACT": "/tic/",
- "LOG_FILE" : "/var/tmp/tic-web/tic-web.log",
- "LOG_FILE_NAME": "mic.log",
- "IMAGE_FILE_NAME": "image.tar.gz"
+ "PATH_RECIPE_IMPORT" : "/var/tmp/tic-web/recipe/import/",
+ "PATH_RECIPE_EXPORT" : "/var/tmp/tic-web/recipe/export/",
+ "LOG" : "/var/tmp/tic-web/tic-web.log"
+ },
+ "TIC_CORE": {
+ "PORT" : 8082
+ },
+ "MIC" : {
+ "LOG": "mic.log"
},
"DATABASE": {
"USERNAME": "tic",
"MAXWAITINGCLIENTS": 20
}
},
- "TIC_CORE": {
- "PORT" : 8082
- },
- "MIC" : {
- "OUT_DIR" : "/var/tmp/tic-web/images/"
- },
"EVENT": {
"SOCKET":{
"FS_IMAGE_ADD_FROM": "ws/fs/image/add/from",
strJobId = req.params.id;
- strJobLogPath = AppConfig.TIC_WEB.PATH + strJobId + '/' + AppConfig.TIC_WEB.LOG_FILE_NAME;
+ strJobLogPath = AppConfig.TIC_WEB.PATH + strJobId + '/' + AppConfig.MIC.LOG;
fs.readFile(strJobLogPath, { encoding: 'utf8' }, function (err, data ) {
res.json(data);
logger.info('MIC Create: paramObj = ' + JSON.stringify(paramObj));
- strLogfile = paramObj.pathOutput + AppConfig.TIC_WEB.LOG_FILE_NAME;
+ strLogfile = paramObj.pathOutput + AppConfig.MIC.LOG;
strOutdir = paramObj.pathOutput;
strArch = paramObj.imageArch;
strRecordPkgs = 'name';
});
}
fnMkdir(AppConfig.TIC_WEB.PATH);
+ fnMkdir(AppConfig.TIC_WEB.PATH_RECIPE_IMPORT);
+ fnMkdir(AppConfig.TIC_WEB.PATH_RECIPE_EXPORT);
}
module.exports = Mic;
timestamp: _timestamp,
formatter: _customFormatter,
json: false,
- filename: AppConfig.TIC_WEB.LOG_FILE,
+ filename: AppConfig.TIC_WEB.LOG,
maxsize: 104857600, // 100 MB = 1024 * 1024 * 100 = 104857600 Bytes
maxFiles: 5
});
};
ImageModel.prototype.setJobAbsLogPath = function setJobAbsLogPath() {
- this.jobAbsLogPath = this.getJobAbsPath() + AppConfig.TIC_WEB.LOG_FILE_NAME;
+ this.jobAbsLogPath = this.getJobAbsPath() + AppConfig.MIC.LOG;
};
ImageModel.prototype.getJobAbsKsPath = function getJobAbsKsPath() {
};
JobModel.prototype.setJobLogPath = function () {
- this.jobLogPath = this.getJobPath() + AppConfig.TIC_WEB.LOG_FILE_NAME;
+ this.jobLogPath = this.getJobPath() + AppConfig.MIC.LOG;
};
JobModel.prototype.getJobArch = function () {
};
JobModel.prototype.setJobAbsLogPath = function () {
- this.jobAbsLogPath = this.getJobAbsPath() + AppConfig.TIC_WEB.LOG_FILE_NAME;
+ this.jobAbsLogPath = this.getJobAbsPath() + AppConfig.MIC.LOG;
};
JobModel.prototype.getJobKsPath = function () {
'use strict';
var strEmptyItem = [
- '<li class="list-group-item">',
- '<p>There is no data.</p>',
- '</li>'
+ '<li class="list-group-item"></li>'
];
var ImageEmptyItem = function () {
fileTime: item.getImageUptime(),
imageFileName: item.getImageName(),
ksFileName: item.getImageKs() || 'None',
- logFileName: AppConfig.TIC_WEB.LOG_FILE_NAME,
+ logFileName: AppConfig.MIC.LOG,
imagePath: item.getJobAbsImagePath(),
classJobKsPath: item.getImageHasKsFile() === '0' ? 'btnnotactive' : '',
ksPath: item.getJobAbsKsPath(),
'use strict';
var strEmptyRow = [
- '<tr id="job_table_row_<%= rowNum %>" class="empty_job_table_row">',
- '<td colspan="9">There is no data.</td>',
- '</tr>'
+ '<tr id="job_table_row_<%= rowNum %>" class="empty_job_table_row"></tr>'
];
var JobTableEmptyItem = function () {