Browse Source

[Update] 删掉没用的脚本

pull/1100/head
ibuler 7 years ago
parent
commit
5e41c5cadc
  1. 5
      utils/build_docker.sh
  2. 18
      utils/export_init_data.sh
  3. 4
      utils/init_db.sh
  4. 12
      utils/run_docker.sh

5
utils/build_docker.sh

@ -1,5 +0,0 @@
#!/bin/bash
#
cd ..
docker build -t jumpserver/jumpserver:v0.4.0-beta1 .

18
utils/export_init_data.sh

@ -1,18 +0,0 @@
#!/bin/bash
#
python ../apps/manage.py shell << EOF
from users.models import *
init_model()
from assets.models import *
init_model()
EOF
python ../apps/manage.py dbshell << EOF
delete from auth_permission;
delete from django_content_type;
EOF
python ../apps/manage.py dumpdata > ../apps/fixtures/init.json

4
utils/init_db.sh

@ -1,4 +0,0 @@
#!/bin/bash
#
python ../apps/manage.py loaddata init

12
utils/run_docker.sh

@ -1,12 +0,0 @@
#!/bin/bash
#
# Run redis
docker run --name redis -d redis
# Run jumpserver
docker run -d --name jumpserver -p 8080:8080 --link redis:redis jumpserver/jumpserver:v0.4.0-beta1
# Finished
echo -e "Please visit http://ServerIP:8080\n Username: admin\nPassword: admin\n"
Loading…
Cancel
Save