Skip to content

Avoid using sed to render config file #43

@stonezdj

Description

@stonezdj

There are lots of sed command to render config file, these commands will cause problem when reconfigure because these operation can not be revert

For example in pre-start.erb

sed -i "s|/data/registry:/storage|$mount_point:/storage|" ${HARBOR_PACKAGE_DIR}/docker-compose.yml
When switch from nfs to local, it is still in docker-compose.yml.

The workaround for this issue is to edit the config file and change back to the original version manually.

In the future, these config files should be rendered with template file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions