File tree 5 files changed +23
-35
lines changed
5 files changed +23
-35
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ gh-pages
106
106
tags
107
107
108
108
# for Django
109
- # migrations/
109
+ migrations /
110
110
???? _initial.py
111
111
! admin_torcms /migrations /__init__.py
112
112
Original file line number Diff line number Diff line change @@ -19,7 +19,11 @@ RUN echo "deb http://mirrors.163.com/debian/ bullseye-backports main non-free co
19
19
# ########################################
20
20
RUN mkdir ~/.pip
21
21
RUN echo "[global]" > ~/.pip/pip.conf
22
+ <<<<<<< HEAD
22
23
RUN echo "index-url = http://mirrors.aliyun.com/pypi/simple" >> ~/.pip/pip.conf
24
+ =======
25
+ RUN echo "index-url = http://mirrors.aliyun.com/pypi/simple" >> ~/.pip/pip.conf
26
+ >>>>>>> 1afba395425ac7508be0075f826dba2e10cca879
23
27
RUN echo "[install]" >> ~/.pip/pip.conf
24
28
RUN echo "trusted-host=mirrors.aliyun.com" >> ~/.pip/pip.conf
25
29
# #############################################################################
@@ -56,10 +60,18 @@ RUN source /vpy/bin/activate && pip3 install wheel
56
60
RUN source /vpy/bin/activate && pip3 install email_validator
57
61
RUN source /vpy/bin/activate && pip3 install -r doc/requirements.txt
58
62
RUN source /vpy/bin/activate && pip3 install -r doc/requirements-dev.txt
63
+ RUN source /vpy/bin/activate && pip3 install django
64
+
65
+ RUN apt install -y sudo postgresql postgresql-contrib redis-server
66
+
67
+ RUN /etc/init.d/postgresql start
68
+
69
+
59
70
60
71
# 创建新用户
61
72
RUN sudo -u postgres psql -c "CREATE ROLE torcms WITH LOGIN PASSWORD '123456';"
62
73
74
+
63
75
# 创建新数据库并指定所有者
64
76
RUN sudo -u postgres psql -c "CREATE DATABASE torcms WITH OWNER torcms;"
65
77
Original file line number Diff line number Diff line change 1
1
# docker stop $(docker ps -a -q)
2
2
# docker rm $(docker ps -a -q)
3
- docker build -t bk-torcms-debian11 .
3
+
4
+
5
+ podman build -t bk-torcms-debian11 .
6
+
7
+
8
+ podman run -it bk-torcms-debian11 bash -c " /etc/init.d/postgresql start && sudo -u postgres psql -c \" CREATE ROLE torcms WITH LOGIN PASSWORD '111111';\" && sudo -u postgres psql -c \" CREATE DATABASE torcms WITH OWNER torcms;\" && /vpy/bin/python manage.py makemigrations && /vpy/bin/python manage.py migrate && /vpy/bin/python3 helper.py -i init "
9
+
10
+ # && /vpy/bin/python3 -m pytest torcms/tests/tester
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ def run_init(*args):
37
37
38
38
# run_init_tables()
39
39
40
- if Path (XLSX_FILE ).exists ():
41
- run_gen_role_permission ()
40
+ # if Path(XLSX_FILE).exists():
41
+ # run_gen_role_permission()
42
42
43
43
run_gen_category ()
44
44
run_create_admin ()
You can’t perform that action at this time.
0 commit comments