更新dockerfile
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -12,5 +12,4 @@ test_case/test_auto_case
|
||||
test_scenario
|
||||
config/settings_local.py
|
||||
env/dev.yml
|
||||
env/osredm.yml
|
||||
env/test.yaml
|
||||
env/osredm.yml
|
||||
17
dockerfile
17
dockerfile
@@ -1,14 +1,14 @@
|
||||
FROM python:3.9
|
||||
|
||||
# 内网代理(如可直接连接外网,这三行可注释)
|
||||
ENV http_proxy=http://172.20.32.253:3128
|
||||
ENV https_proxy=http://172.20.32.253:3128
|
||||
ENV no_proxy=localhost,127.0.0.1,172.20.32.0/24
|
||||
# 使用国内镜像源(debian 镜像源)
|
||||
RUN sed -i s:/deb.debian.org:/mirrors.tuna.tsinghua.edu.cn:g /etc/apt/sources.list.d/*
|
||||
|
||||
|
||||
#设置时区
|
||||
RUN echo "Asia/Shanghai" > /etc/timezone
|
||||
|
||||
RUN apt-get update
|
||||
# 安装JDK
|
||||
RUN apt-get update && apt-get install -y default-jdk
|
||||
|
||||
# 安装git
|
||||
RUN apt-get install -y git
|
||||
@@ -27,4 +27,9 @@ RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv
|
||||
RUN pipenv install
|
||||
|
||||
# 运行
|
||||
CMD ["pipenv", "run", "python", "run.py"]
|
||||
CMD ["pipenv", "run", "python", "run.py"]
|
||||
|
||||
# 构建docker镜像: docker build -f dockerfile -t apitest:2.0 .
|
||||
# 删除docker镜像:docker rmi -f apitest:2.0
|
||||
# 运行docker镜像:docker run --rm --name apitest apitest:2.0
|
||||
# 进入容器内部:docker exec -it apitest /bin/bash
|
||||
38
env/test.yaml
vendored
Normal file
38
env/test.yaml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
host: http://172.20.32.203:4000
|
||||
wiki_host:
|
||||
pms_host:
|
||||
glcc_host:
|
||||
remote_url:
|
||||
remote_username:
|
||||
remote_password:
|
||||
ace_key: 59c96c3572ab8cc1
|
||||
green_code:
|
||||
env_super_login: innov
|
||||
env_super_password: 12345678
|
||||
env_super_user_id: 1
|
||||
env_login: floraachy
|
||||
env_password: 12345678
|
||||
env_nickname: floraachy
|
||||
env_user_id: 5
|
||||
t_login: reporter
|
||||
t_password: 12345678
|
||||
t_nickname: reporter
|
||||
t_user_id: 111
|
||||
env_pms_product_id:
|
||||
env_pms_product_identifier:
|
||||
env_pms_project_id:
|
||||
env_enterprise_identifier:
|
||||
env_enterprise_id:
|
||||
env_organization_id:
|
||||
env_dept_id:
|
||||
db_info:
|
||||
db_host:
|
||||
db_port:
|
||||
db_user:
|
||||
db_pwd:
|
||||
db_database:
|
||||
ssh:
|
||||
ssh_host:
|
||||
ssh_port:
|
||||
ssh_user:
|
||||
ssh_pwd:
|
||||
Reference in New Issue
Block a user