|
|
@ -1758,11 +1758,46 @@ io.on('connection', function(socket) { |
|
|
|
service_port = newport |
|
|
|
} |
|
|
|
|
|
|
|
var newport1 = '' |
|
|
|
const servertest1 = apptest.listen(0, () => { |
|
|
|
servertest1.close(); |
|
|
|
}) |
|
|
|
newport1 = servertest1.address().port |
|
|
|
|
|
|
|
var newport2 = '' |
|
|
|
const servertest2 = apptest.listen(0, () => { |
|
|
|
servertest2.close(); |
|
|
|
}) |
|
|
|
newport2 = servertest2.address().port |
|
|
|
|
|
|
|
var newport3 = '' |
|
|
|
const servertest3 = apptest.listen(0, () => { |
|
|
|
servertest3.close(); |
|
|
|
}) |
|
|
|
newport3 = servertest3.address().port |
|
|
|
|
|
|
|
var newport4 = '' |
|
|
|
const servertest4 = apptest.listen(0, () => { |
|
|
|
servertest4.close(); |
|
|
|
}) |
|
|
|
newport4 = servertest4.address().port |
|
|
|
|
|
|
|
var newport5 = '' |
|
|
|
const servertest5 = apptest.listen(0, () => { |
|
|
|
servertest5.close(); |
|
|
|
}) |
|
|
|
newport5 = servertest5.address().port |
|
|
|
|
|
|
|
var ENV_service_file = ` |
|
|
|
REGISTRY_ADDR=localhost |
|
|
|
REGISTRY_PORT=5000 |
|
|
|
IMAGE_NAME=${service} |
|
|
|
SSH_PORT=${service_port} |
|
|
|
R_PORT1=${newport1} |
|
|
|
R_PORT2=${newport2} |
|
|
|
R_PORT3=${newport3} |
|
|
|
R_PORT4=${newport4} |
|
|
|
R_PORT5=${newport5} |
|
|
|
TEST=${service} |
|
|
|
` |
|
|
|
//console.log('value1 '+JSON.stringify(ENV_service_file_path))
|
|
|
|