Commit Graph

68 Commits

Author SHA1 Message Date
Tan Jiang
b1923bf219 Refine the python file to make it run on python3 2018-03-30 14:41:12 +08:00
Tan Jiang
2debdb7229 Return zero when input version is same as target 2018-03-30 11:34:51 +08:00
Tan Jiang
b6df6cf169 Add indexes to job tables and bump up schema version. 2018-03-28 16:15:54 +08:00
Tan Jiang
6f1c46624f Update SQL script to add uuid to job tables.
We have to add the uuid/id mapping as new job service will only store uuid.

Further work is in feature branch for now, commit this change to
accelerate migration work.
2018-03-23 17:45:50 +08:00
Tan Jiang
421bd182bc Update DB changelog to reflect schema change for user group 2018-03-21 16:45:21 +08:00
Tan Jiang
c8265a8d53 Provide migration scripts for harbor.cfg
Default target version is 1.5.0
This is mainly for VIC-appliance upgrade, and should be considered
experimental for oss due to limited test.
Tested with 1.2 and 1.3 harbor.cfg from VIC appliance.
2018-03-16 14:38:50 +08:00
Wenkai Yin
36b9c4e458 Implement adding/removing labels to/from repositories and images API 2018-03-12 19:30:05 +08:00
Wenkai Yin
379f113452 Implement label management API 2018-03-09 12:17:27 +08:00
Deng, Qian
b3e65ed71e Update migration tool for v1.4
1. Update database meta file
2. Add migration file for 1.4
2018-01-16 15:38:51 +08:00
Wenkai Yin
665a54edc3 Merge remote-tracking branch 'upstream/master' into 171213_merge 2017-12-13 13:40:24 +08:00
yixingj
9b03c93afd Add database driver for Harbor configurations
1>Add a new database driver for configurations
2> change the current default driver from json
to database
2017-12-06 13:06:54 +08:00
Wenkai Yin
6b0ee138e5 Implement immediate trigger and the methods of WatchList 2017-11-27 14:23:21 +08:00
Deng, Qian
f55c0f03b5 build & publish npm package for VIC after ci 2017-11-22 20:01:00 +08:00
reasonerjt
1f5a9cdee8 Fix issue in Docker files
1)Fix a syntax error in clair Dockerfile
2)Fix permission issue in database migrator image.
2017-11-16 01:15:59 -08:00
Tan Jiang
6d7c028729 Refine the Dockerfile
Refine the Dockerfile to remove temporary workarounds.
Also fixes #3587, to make sure the configuration files of rsyslog can be
read by uid 10000.
2017-11-13 18:04:17 +08:00
Deng, Qian
f2868f2033 fix issue when upgrade from 1.2.0rc1 to 1.3.0 2017-11-10 18:19:36 +08:00
wangyan
28834fedf7 Add description for VIC 1.2 migration scripts 2017-11-06 01:16:17 -08:00
Deng, Qian
5ffa192b79 db migration from 1.2.0 to 1.3.0 2017-11-02 17:43:10 +08:00
Wenkai Yin
51d5df0849 Update replication policy API to support trigger and filter 2017-11-02 14:59:26 +08:00
Tan Jiang
ad585499a0 Move DB migrator image to be based on Maria DB on photon 2017-10-26 17:08:12 +08:00
Wenkai Yin
2156750b04 Move certificate verification to target level
The certificate verification is on system level before this commit. Moving it
to target level makes the configuration more flexible for different targets.
2017-10-20 15:36:56 +08:00
Wenkai Yin
66b2d0d3f3 Apply project level policies to standalone Harbor
The following features are only enabled in integration mode, this commit moves
these to standalone Harbor:
 - Content trust policy: only signed images can be pulled
 - Vulnerability policy: only images whose severity is below the threshold can be pulled
 - Automatic scan policy: automatic scan pushed images
2017-10-19 17:33:28 +08:00
Wenkai Yin
e495357d98 implement the default project metadata manager 2017-09-28 16:17:51 +08:00
Yan
b0adf7e8d4 fix upgrade issue (#3171)
update

update

update
2017-09-07 22:50:38 +08:00
Yan
c54f55bdff update migrator (#2988)
update

update
2017-08-22 15:47:53 +08:00
wangyan
0ae6becabc update db scheme
update

update
2017-08-17 16:41:20 +08:00
wangyan
77fa363992 add ignore ssl 2017-07-31 17:29:19 +08:00
wangyan
ebda8363f2 update import to load token from file
update
2017-07-26 01:28:05 -07:00
Yan
fd473cbaa0 update DB Migrator according latest change. (#2763)
* update DB Migrator according latest change.

update format

update

add import

update

return the rc from container

update

update to false

* add user_id
2017-07-24 19:48:12 -07:00
wangyan
bdf4641c43 update user realname
update
2017-07-05 03:43:21 -07:00
Yan
d849c36e3f Merge pull request #2570 from samifruit514/master
Allow 255 chars for Realname
2017-07-05 03:17:57 -07:00
wangyan
c986c33a6c 1.2.0 DB migration
update

update
2017-06-30 03:01:56 -07:00
Archambault, Samuel
18cea61121 Allow 255 chars for Realname 2017-06-19 13:54:21 -04:00
Wenkai Yin
1e28f01365 delete foreign key 2017-05-10 18:28:19 +08:00
Wenkai Yin
3be9cca0f5 delete column user_id from table accesslog 2017-05-03 14:18:07 +08:00
Wenkai Yin
4f9d9ed5d8 delete owner_id column from table repository 2017-05-02 14:57:07 +08:00
wangyan
b061efdeb8 add 1.1.0.1 support
update 1.1.x

update 1.1.x
2017-04-24 23:49:27 -07:00
wy65701436
9913f84269 add copy right script 2017-03-30 01:22:17 -07:00
wy65701436
b7340ebbce add ove upgrade script 2017-03-27 03:57:01 -07:00
yhua
4c213a8717 remove openldap lib from Dockerfile and support build with offcial golang image(1.7.3) 2017-01-04 17:48:20 +08:00
Wenkai Yin
ad4da5f043 fix cerrificate bundle issue. (#1266)
LGTM
2016-12-26 15:49:53 +08:00
yhua
10306e784b upgrade golang baseimage from 1.6.2 to 1.7.3 2016-12-15 13:16:14 +08:00
Wenkai Yin
bad8835c79 fix exposure issue when collecting logs 2016-12-06 14:54:49 +08:00
Wenkai Yin
65a2c87a7c fixes: root password contains special characters 2016-12-05 12:16:27 +08:00
Wenkai Yin
01dc77b606 escape special characters used in sed 2016-12-04 16:35:47 +08:00
Wenkai Yin
f4e0d3c774 remove the workaround of DNS issue 2016-12-02 14:29:52 +08:00
Wenkai Yin
3e35597dd0 push photon to project library 2016-11-29 17:17:01 +08:00
Wenkai Yin
4149e74b00 ova dns 2016-11-29 13:17:56 +08:00
Daniel Jiang
fddb325e16 Merge pull request #1164 from ywk253100/161125_iptable
Fix iptable modification conflict
2016-11-28 00:05:14 +08:00
Wenkai Yin
1559d927a4 fix iptable modification conflict 2016-11-25 14:03:44 +08:00