clean up code under jobservice/

This commit is contained in:
Tan Jiang 2016-06-30 14:05:34 +08:00
parent 0f0bcfa484
commit 87f51bc12f
9 changed files with 6 additions and 56 deletions

6
.gitignore vendored
View File

@ -6,3 +6,9 @@ Deploy/config/db/env
Deploy/config/jobservice/env
ui/ui
*.pyc
jobservice/*.sql
jobservice/*.sh
jobservice/*.json
jobservice/jobservice

View File

@ -1,10 +0,0 @@
{
"job_type": "notexist",
"options": {
"whatever": "whatever"
},
"parms": {
"test": "test"
},
"cron_str": ""
}

View File

@ -1,12 +0,0 @@
export MYSQL_HOST=127.0.0.1
export MYSQL_PORT=3306
export MYSQL_USR=root
export MYSQL_PWD=root123
export LOG_LEVEL=debug
export LOCAL_HARBOR_URL=http://127.0.0.1/
export UI_SECRET=abcdef
#export UI_USR=admin
#export UI_PWD=Harbor12345
export MAX_JOB_WORKERS=1
./jobservice

View File

@ -1,4 +0,0 @@
use registry;
insert into replication_target (name, url, username, password) values ('test', 'http://10.117.171.31', 'admin', 'Harbor12345');
insert into replication_policy (name, project_id, target_id, enabled, start_time) value ('test_policy', 1, 1, 1, NOW());
insert into replication_job (status, policy_id, repository, operation) value ('running', 1, 'library/whatever', 'transfer')

View File

@ -1,7 +0,0 @@
#export MYQL_ROOT_PASSWORD=root123
docker run --name harbor_mysql -d -e MYSQL_ROOT_PASSWORD=root123 -p 3306:3306 -v /devdata/database:/var/lib/mysql harbor/mysql:dev
echo "sleep 10 seconds..."
sleep 10
mysql -h 127.0.0.1 -uroot -proot123 < ./populate.sql

View File

@ -1,4 +0,0 @@
{
"policy_id":1,
"action":"stop"
}

View File

@ -1 +0,0 @@
{"policy_id": 1}

View File

@ -1 +0,0 @@
{"policy_id": 1, "repository":"library/ubuntu", "tags":["12.04","11.11"]}

View File

@ -1,17 +0,0 @@
{
"job_type": "transfer_img_out",
"options": {
"whatever": "whatever"
},
"parms": {
"secret": "mysecret",
"image": "ubuntu",
"targets": [{
"url": "127.0.0.1:5000",
"username": "admin",
"password": "admin"
}]
},
"cron_str": ""
}