( //nolint:funlen cfg *model.ConfigConfig, subdomain string, cloudSubdomain string, cloudRegion string, cloudAdminSecret string, clouadPostgresURL string, projectName string, httpPort uint, useTLS bool, nhostFolder string, dotNhostFolder string, rootFolder string, ports ExposePorts, dashboardVersion string, configserviceImage string, appID string, )
| 89 | } |
| 90 | |
| 91 | func getServicesCloud( //nolint:funlen |
| 92 | cfg *model.ConfigConfig, |
| 93 | subdomain string, |
| 94 | cloudSubdomain string, |
| 95 | cloudRegion string, |
| 96 | cloudAdminSecret string, |
| 97 | clouadPostgresURL string, |
| 98 | projectName string, |
| 99 | httpPort uint, |
| 100 | useTLS bool, |
| 101 | nhostFolder string, |
| 102 | dotNhostFolder string, |
| 103 | rootFolder string, |
| 104 | ports ExposePorts, |
| 105 | dashboardVersion string, |
| 106 | configserviceImage string, |
| 107 | appID string, |
| 108 | ) (map[string]*Service, error) { |
| 109 | traefik, err := traefik(subdomain, projectName, httpPort, dotNhostFolder) |
| 110 | if err != nil { |
| 111 | return nil, err |
| 112 | } |
| 113 | |
| 114 | console, err := consoleCloud( |
| 115 | cfg, |
| 116 | subdomain, |
| 117 | cloudSubdomain, |
| 118 | cloudRegion, |
| 119 | cloudAdminSecret, |
| 120 | clouadPostgresURL, |
| 121 | httpPort, |
| 122 | useTLS, |
| 123 | nhostFolder, |
| 124 | ports, |
| 125 | ) |
| 126 | if err != nil { |
| 127 | return nil, fmt.Errorf("failed to create console service: %w", err) |
| 128 | } |
| 129 | |
| 130 | cs, err := configserver( |
| 131 | configserviceImage, |
| 132 | rootFolder, |
| 133 | nhostFolder, |
| 134 | projectName, |
| 135 | appID, |
| 136 | useTLS, |
| 137 | ) |
| 138 | if err != nil { |
| 139 | return nil, err |
| 140 | } |
| 141 | |
| 142 | services := map[string]*Service{ |
| 143 | "console": console, |
| 144 | "dashboard": dashboardCloud( |
| 145 | cfg, |
| 146 | subdomain, |
| 147 | cloudSubdomain, |
| 148 | cloudRegion, |
no test coverage detected