MCPcopy Create free account
hub / github.com/nhost/nhost / CloudComposeFileFromConfig

Function CloudComposeFileFromConfig

cli/dockercompose/compose_cloud.go:162–211  ·  view source on GitHub ↗
(
	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,
	configserverImage string,
	appID string,
	caCertificatesPath string,
)

Source from the content-addressed store, hash-verified

160}
161
162func CloudComposeFileFromConfig(
163 cfg *model.ConfigConfig,
164 subdomain string,
165 cloudSubdomain string,
166 cloudRegion string,
167 cloudAdminSecret string,
168 clouadPostgresURL string,
169 projectName string,
170 httpPort uint,
171 useTLS bool,
172 nhostFolder string,
173 dotNhostFolder string,
174 rootFolder string,
175 ports ExposePorts,
176 dashboardVersion string,
177 configserverImage string,
178 appID string,
179 caCertificatesPath string,
180) (*ComposeFile, error) {
181 services, err := getServicesCloud(
182 cfg,
183 subdomain,
184 cloudSubdomain,
185 cloudRegion,
186 cloudAdminSecret,
187 clouadPostgresURL,
188 projectName,
189 httpPort,
190 useTLS,
191 nhostFolder,
192 dotNhostFolder,
193 rootFolder,
194 ports,
195 dashboardVersion,
196 configserverImage,
197 appID,
198 )
199 if err != nil {
200 return nil, err
201 }
202
203 if caCertificatesPath != "" {
204 mountCACertificates(caCertificatesPath, services)
205 }
206
207 return &ComposeFile{
208 Services: services,
209 Volumes: nil,
210 }, nil
211}

Callers 1

cloudFunction · 0.92

Calls 2

getServicesCloudFunction · 0.85
mountCACertificatesFunction · 0.85

Tested by

no test coverage detected