无需重建应用程序即可更新私有插件

Hi @sam, I am now working on fixing the plugin. Needed some guidance.

The real problem lies here

In docker_manager/lib/docker_manager/git_repo.rb (54)

if url =~ /^git/
    # hack so it works with git urls
  url = "https://github.com/#{url.split(":")[1]}"
 end

It converts the bitbucket url to github because bitbucket url starts with “git”

example : git@bitbucket.<account_name>/<plugin_name>.git

By adding a condition to check for bitbucket works ( and it detects the upgrade version too), but when I try to upgrade, it throws errror “Host key verification failed”

Then I came to know that it occurs because we remove the keys from .ssh folder in app.yml file for bitbucket.

But even if I let the ssh keys to be present inside docker container, and run the upgrade, I get the same error.
Here is the output of /.ssh/config file

Host bitbucket
StrictHostKeyChecking no
HostName bitbucket.org
IdentityFile /root/.ssh/id_rsa

I can successfully run the upgrade command inside docker container and upgrade the plugin myself, but it throws above error when running from /admin/upgrade.

I think it might be because the upgrader is not running as sudo user(correct me if I am wrong).

So can you give me some pointers, on how to proceed

  1. Using ssh way ie git@bitbucket.org:<accountname>/<reponame>.git and pulling from bitbucket ( this is giving me error “host key verification failed”)
  2. Using https way ie https://<accountname>@bitbucket.org/<accountname>/<reponame>.git, but I need to somehow provide password and username before upgrading. I think I can add textbox which asks for username and password before starting the upgrade