Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何自定义repox.config.json #78

Open
dongdongking008 opened this issue Oct 19, 2017 · 1 comment
Open

如何自定义repox.config.json #78

dongdongking008 opened this issue Oct 19, 2017 · 1 comment

Comments

@dongdongking008
Copy link

把repox打包成镜像,搭了一个组织内私服,storage目录挂到分布式对象存储(例如minio)上,journal因为有文件锁的问题,就使用容器内的本地目录。
容器启动之后,导入公服的repox.config.json,然后稍作修改,一切都工作良好。

现在唯一的问题是,一旦容器被重建,都需要手工从管理界面导入repox.config.json,很不爽。

尝试了把源码中的 src/main/resources/admin/repox.config.json替换为自定义的版本,然后重新打包,貌似不起作用,仍然需要手工导入。

于是,问题来了,有什么办法能够自动导入呢?

@Centaur
Copy link
Owner

Centaur commented Oct 20, 2017

如果你使用的窗口是docker的话,在『一切都工作良好』的状态下运行 docker commit 生成新的image,之后重建使用这个新的 image.
其它容器没用过,猜测应该有类似的操作吧。

@Centaur Centaur changed the title 如果自定义repox.config.json 如何自定义repox.config.json Oct 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants