mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 17:17:46 +01:00
Merge pull request #456 from reasonerjt/job-service
clean up code in /jobservice
This commit is contained in:
commit
a9cbf5868e
6
.gitignore
vendored
6
.gitignore
vendored
@ -6,3 +6,9 @@ Deploy/config/db/env
|
|||||||
Deploy/config/jobservice/env
|
Deploy/config/jobservice/env
|
||||||
ui/ui
|
ui/ui
|
||||||
*.pyc
|
*.pyc
|
||||||
|
jobservice/*.sql
|
||||||
|
jobservice/*.sh
|
||||||
|
jobservice/*.json
|
||||||
|
jobservice/jobservice
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"job_type": "notexist",
|
|
||||||
"options": {
|
|
||||||
"whatever": "whatever"
|
|
||||||
},
|
|
||||||
"parms": {
|
|
||||||
"test": "test"
|
|
||||||
},
|
|
||||||
"cron_str": ""
|
|
||||||
}
|
|
@ -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
|
|
@ -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')
|
|
@ -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
|
|
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"policy_id":1,
|
|
||||||
"action":"stop"
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
{"policy_id": 1}
|
|
@ -1 +0,0 @@
|
|||||||
{"policy_id": 1, "repository":"library/ubuntu", "tags":["12.04","11.11"]}
|
|
@ -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": ""
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user