Browse Source

add txttest

Zhang Li 2 years ago
parent
commit
22343159a3
3 changed files with 9 additions and 2 deletions
  1. 5 1
      Makefile
  2. 2 0
      configs/settings.py
  3. 2 1
      txtest.ini

+ 5 - 1
Makefile

@@ -31,4 +31,8 @@ idctest:
 
 sxkj:
 	@docker build --target image-sxkj -t SXKJ:32775/$(NAME):sxkj .
-	@docker push SXKJ:32775/$(NAME):sxkj
+	@docker push SXKJ:32775/$(NAME):sxkj
+
+txtest:
+	@docker build --target image-test -t registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):txtest .
+	@docker push registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):txtest

+ 2 - 0
configs/settings.py

@@ -27,6 +27,8 @@ elif os.environ.get('APP_ENV') == 'idctest':
     config.readfp(open('idctest.ini'))
 elif os.environ.get('APP_ENV') == 'sxkj':
     config.readfp(open('sxkj.ini'))
+elif os.environ.get('APP_ENV') == 'txtest':
+    config.readfp(open('txtest.ini'))
 
 print(f"get config of {os.environ.get('APP_ENV')}")
 print(config.get('DATABASE', 'host'))

+ 2 - 1
txtest.ini

@@ -92,7 +92,7 @@ host_alias = {}
 
 
 [PROGRAMME]
-url = aihub-helmbe-yili-test:8080
+url = aihub-dag-helmbe:8080
 namespace = aihub-test
 super_image = registry.cn-hangzhou.aliyuncs.com/sxtest/jupyterlab
 ordinary_image = registry.cn-hangzhou.aliyuncs.com/sxtest/jupyterlab
@@ -100,3 +100,4 @@ tag = txtest
 host = aihub-dag-test.digitalyili.com
 chart = aihub-dag-jupyter.tgz
 path_type = ImplementationSpecific
+ingress_class = test-pri-ingress