You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 23, 2023. It is now read-only.
docker run -itd --name dongtai-mysql -p 3306:3306 registry.cn-beijing.aliyuncs.com/huoxian_pub/dongtai-mysql:latest
45
+
docker pull dongtai/dongtai-mysql:latest
46
+
docker run -itd --name dongtai-mysql -p 3306:3306 dongtai/dongtai-mysql:latest
47
47
```
48
48
49
49
@@ -107,6 +107,48 @@ The address is `http://<containerip:port>/api/XZPcGFKoxYXScwGjQtJx8u/schema/`
107
107
108
108
3. The specific API authentication mode has been included in the API document, and the corresponding token can be found on the installation agent part of the web.
109
109
110
+
111
+
112
+
### Development
113
+
114
+
1. Install the required dependencies
115
+
116
+
```
117
+
python -m pip install -r requirements-test.txt
118
+
```
119
+
120
+
Note: jq cannot be installed under windows, jq is used to process json parsing of sensitive information, if it is not develop related functions, it can be ignored, or WSL is used for development under windows
121
+
122
+
123
+
2. Initialize the database
124
+
125
+
126
+
- Pull the database mirror corresponding to the version and start the mirror
127
+
```
128
+
docker pull dongtai/dongtai-mysql:latest
129
+
docker run -itd --name dongtai-mysql -p 3306:3306 dongtai/dongtai-mysql:latest
130
+
```
131
+
132
+
If you need to create or modify the database table, please refer to the [DongTai-Base-Image](https://github.com/HXSecurity/Dongtai-Base-Image) specification and submit the relevant modified .sql file
133
+
134
+
135
+
3. Modify the configuration file
136
+
137
+
- Copy the configuration file `conf/config.ini.example` to `conf/config.ini` and change the configuration; among them, the url corresponding to `engine` is the service address of `DongTai-engine`, and `apiserver` corresponds to The url is the service address of `DongTai-openapi`
138
+
- You can leave out engine and apiserver when you only develop webapi-related functions
139
+
140
+
4. Run service debugging
141
+
142
+
- Development related environment variables
143
+
144
+
`PYTHONAGENT=TRUE` Open pythonagent, need to be installed manually, refer to [Python Agent IOnstallation](http://doc.dongtai.io/02_start/03_agent.html#python-agent)
145
+
146
+
`DOC=TRUE` Open swagger path is `/api/XZPcGFKoxYXScwGjQtJx8u/schema/swagger-ui/`
147
+
148
+
`debug=true` enable debug mode
149
+
150
+
- Run `python manage.py runserver` to start the service
0 commit comments