Port 11311 has been used by email service
Signed-off-by: Wu Zhende wuzhende666@163.com --- container/lifecycle/build | 2 +- container/lifecycle/start | 2 +- src/lifecycle/constants.cr | 2 +- src/lifecycle/lifecycle.cr | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/container/lifecycle/build b/container/lifecycle/build index ba68a85..bfb7490 100755 --- a/container/lifecycle/build +++ b/container/lifecycle/build @@ -9,7 +9,7 @@ require_relative '../defconfig.rb' names = Set.new ['LIFECYCLE_PORT'] defaults = relevant_defaults(names)
-LIFECYCLE_PORT = defaults['LIFECYCLE_PORT'] || '11311' +LIFECYCLE_PORT = defaults['LIFECYCLE_PORT'] || '11312'
CCI_SRC = ENV['CCI_SRC'] system "bash #{CCI_SRC}/container/compile ." diff --git a/container/lifecycle/start b/container/lifecycle/start index 7e67b3c..6e9b4fb 100755 --- a/container/lifecycle/start +++ b/container/lifecycle/start @@ -13,7 +13,7 @@ names = Set.new %w[ defaults = relevant_defaults(names) env = docker_env(defaults)
-LIFECYCLE_PORT = defaults['LIFECYCLE_PORT'] || '11311' +LIFECYCLE_PORT = defaults['LIFECYCLE_PORT'] || '11312' docker_rm "lifecycle-#{LIFECYCLE_PORT}"
cmd = %W[ diff --git a/src/lifecycle/constants.cr b/src/lifecycle/constants.cr index a428251..137b7f9 100644 --- a/src/lifecycle/constants.cr +++ b/src/lifecycle/constants.cr @@ -1,4 +1,4 @@ # SPDX-License-Identifier: MulanPSL-2.0+ # Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.
-LIFECYCLE_PORT = (ENV.has_key?("LIFECYCLE_PORT") ? ENV["LIFECYCLE_PORT"] : 11311).to_i32 +LIFECYCLE_PORT = (ENV.has_key?("LIFECYCLE_PORT") ? ENV["LIFECYCLE_PORT"] : 11312).to_i32 diff --git a/src/lifecycle/lifecycle.cr b/src/lifecycle/lifecycle.cr index 4154a27..da42fda 100644 --- a/src/lifecycle/lifecycle.cr +++ b/src/lifecycle/lifecycle.cr @@ -25,7 +25,7 @@ module Cycle end
# find the testbox that are performing jobs - # curl http://localhost:11311/get_running_testbox?size=10&from=0 + # curl http://localhost:11312/get_running_testbox?size=10&from=0 get "/get_running_testbox" do |env| env.lifecycle.get_running_testbox.to_json end