File tree Expand file tree Collapse file tree 3 files changed +431
-5
lines changed
Expand file tree Collapse file tree 3 files changed +431
-5
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ RUN pip3 install --user --upgrade pip
2222RUN pip3 install -r /var/www/CMDB/requirements.txt
2323
2424# 5.准备配置文件
25- RUN cp /var/www/CMDB/cmdb-example.conf /var/www/CMDB/cmdb.conf
25+ RUN cp /var/www/CMDB/cmdb-example.conf /var/www/CMDB/cmdb.conf
2626
2727# 6. 数据初始化
28- RUN python3 /var/www/CMDB/manage.py makemigrations
29- RUN python3 /var/www/CMDB/manage.py migrate
28+ # RUN python3 /var/www/CMDB/manage.py makemigrations
29+ # RUN python3 /var/www/CMDB/manage.py migrate
3030
3131# 7. 日志
3232VOLUME /var/log/
Original file line number Diff line number Diff line change @@ -27,8 +27,7 @@ pip3 install -r requirements.txt
2727#### 三 同步数据库
2828```
2929mysql -h 127.0.0.1 -u root -p123456 -e "create database cmdb default character set utf8mb4 collate utf8mb4_unicode_ci;"
30- python3 manage.py makemigrations
31- python3 manage.py migrate
30+ mysql -h 127.0.0.1 -u root -p123456 cmdb < docs/cmdb.sql
3231```
3332
3433#### 四 Supervisor
You can’t perform that action at this time.
0 commit comments