Ren Wei (任卫)
Ren Wei (任卫)
mariadb 不支持中文全文索引导致的
1 directly export data from the old version with csv format 2 make a shell script to covert the mysql tables to postgresql tables 3 import the tables into postgresql...
## 数据库导入1.8.5笔记 1. 基本只需要导入`user`->`harbor_user`, `project`, `project_member`, `repository`即可。使用`csv`格式即可,这几表都不大。`access_log`表巨大,可以只导出其中的create和push记录,自己决定吧。 2. `harbor_user`表没有变化。 3. `project`表则是把`public`属性移除挪动到了`project_metadata`表,使用`name`=`public`属性进行管理,前版本是1或0,新值是字符串true false。 4. `project_member`增加了`id`和`entity_type`两列,`id`就是递增主键,`entity_type`则是一个只有`u`和`g`两个字符值的属性,分别标识是用户还是用户组,用户组是后来加进来的概念,所以原来的数据直接赋值`u`即可。 5. `repository`没有变化。`pull_count`列原数据也丢了,不过还可以从`access_log`表格中重新计算得到,不恢复也无所谓。 6. 导入后要重设下pg各表的自增id ```bash # `user`->`harbor_user` SRC=user.csv DST=pg_harbor18_user.csv sed '1iuser_id,username,email,password,realname,comment,deleted,reset_uuid,salt,sysadmin_flag,creation_time,update_time' $SRC >$DST # `project` SRC=project.csv...
> @jbiancot this feature will be supported in Harbor v2.0, and all of events are selectable when setup a webhook endpoint. Could disable the imagePull events now? then enable it...
看这个 https://github.com/PaddlePaddle/Paddle/issues/26330#issuecomment-674524418 因为protobuf工程没编译过的缘故。
> 7>-- Had to git clone more than once: > 7>CMake Error at F:/baidu_pp/Paddle-develop/build/third_party/protobuf/tmp/extern_protobuf-gitclone.cmake:31 (message): > 7> 3 times. > 7> Failed to clone repository: > 7> 'https://github.com/protocolbuffers/protobuf.git' > 7>...
> > > 7>-- Had to git clone more than once: > > > 7>CMake Error at F:/baidu_pp/Paddle-develop/build/third_party/protobuf/tmp/extern_protobuf-gitclone.cmake:31 (message): > > > 7> 3 times. > > > 7> Failed...
我编译完了,wheel包编译制作出来了,但是fluid有关的6个工程失败了。
> > Paddle\cmake\external*.cmake 源切换为gitee.com即可 > > 怎么换? > https://github.com/sabreshao/hipeigen.git 换成 [https://gitee.com/sabreshao/hipeigen.git?这更换后,资源都没有](https://gitee.com/sabreshao/hipeigen.git?%E8%BF%99%E6%9B%B4%E6%8D%A2%E5%90%8E%EF%BC%8C%E8%B5%84%E6%BA%90%E9%83%BD%E6%B2%A1%E6%9C%89) gitee有个官方的mirror项目,会定义同步上万个仓库。但是也就仅这么多。其它的就要靠自己搜索或建同步项目了。 这个可不是简单把地址里的github替换成gitee这么简单。 我建议若想这么用的话,可以直接clone到本地后,把cmake里的地址改成本地文件系统地址即可。