|
|
@ -781,7 +781,8 @@ func (a AppService) SyncAppListFromRemote() (err error) {
|
|
|
|
version := v.Name
|
|
|
|
version := v.Name
|
|
|
|
detail := detailsMap[version]
|
|
|
|
detail := detailsMap[version]
|
|
|
|
|
|
|
|
|
|
|
|
dockerComposeUrl := fmt.Sprintf("%s/%s/%s/%s", baseRemoteUrl, app.Key, version, "docker-compose.yml")
|
|
|
|
remoteVersionUrl := fmt.Sprintf("%s/%s/%s", baseRemoteUrl, app.Key, version)
|
|
|
|
|
|
|
|
dockerComposeUrl := fmt.Sprintf("%s/%s", remoteVersionUrl, "docker-compose.yml")
|
|
|
|
composeRes, err := http.Get(dockerComposeUrl)
|
|
|
|
composeRes, err := http.Get(dockerComposeUrl)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
return err
|
|
|
@ -794,7 +795,7 @@ func (a AppService) SyncAppListFromRemote() (err error) {
|
|
|
|
|
|
|
|
|
|
|
|
paramByte, _ := json.Marshal(v.AppForm)
|
|
|
|
paramByte, _ := json.Marshal(v.AppForm)
|
|
|
|
detail.Params = string(paramByte)
|
|
|
|
detail.Params = string(paramByte)
|
|
|
|
detail.DownloadUrl = v.DownloadUrl
|
|
|
|
detail.DownloadUrl = fmt.Sprintf("%s/%s", remoteVersionUrl, version+".tar.gz")
|
|
|
|
detail.DownloadCallBackUrl = v.DownloadCallBackUrl
|
|
|
|
detail.DownloadCallBackUrl = v.DownloadCallBackUrl
|
|
|
|
detail.Update = true
|
|
|
|
detail.Update = true
|
|
|
|
detail.LastModified = v.LastModified
|
|
|
|
detail.LastModified = v.LastModified
|
|
|
|