mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
fix(cli/server.go): switch to alternate maven repo for postgres binaries (#17451)
Not really guaranteed, but worth a shot. --------- Co-authored-by: Danny Kopping <danny@coder.com>
This commit is contained in:
@ -2160,6 +2160,8 @@ func startBuiltinPostgres(ctx context.Context, cfg config.Root, logger slog.Logg
|
|||||||
embeddedpostgres.DefaultConfig().
|
embeddedpostgres.DefaultConfig().
|
||||||
Version(embeddedpostgres.V13).
|
Version(embeddedpostgres.V13).
|
||||||
BinariesPath(filepath.Join(cfg.PostgresPath(), "bin")).
|
BinariesPath(filepath.Join(cfg.PostgresPath(), "bin")).
|
||||||
|
// Default BinaryRepositoryURL repo1.maven.org is flaky.
|
||||||
|
BinaryRepositoryURL("https://repo.maven.apache.org/maven2").
|
||||||
DataPath(filepath.Join(cfg.PostgresPath(), "data")).
|
DataPath(filepath.Join(cfg.PostgresPath(), "data")).
|
||||||
RuntimePath(filepath.Join(cfg.PostgresPath(), "runtime")).
|
RuntimePath(filepath.Join(cfg.PostgresPath(), "runtime")).
|
||||||
CachePath(cachePath).
|
CachePath(cachePath).
|
||||||
|
@ -24,6 +24,8 @@ func main() {
|
|||||||
embeddedpostgres.DefaultConfig().
|
embeddedpostgres.DefaultConfig().
|
||||||
Version(embeddedpostgres.V16).
|
Version(embeddedpostgres.V16).
|
||||||
BinariesPath(filepath.Join(postgresPath, "bin")).
|
BinariesPath(filepath.Join(postgresPath, "bin")).
|
||||||
|
// Default BinaryRepositoryURL repo1.maven.org is flaky.
|
||||||
|
BinaryRepositoryURL("https://repo.maven.apache.org/maven2").
|
||||||
DataPath(filepath.Join(postgresPath, "data")).
|
DataPath(filepath.Join(postgresPath, "data")).
|
||||||
RuntimePath(filepath.Join(postgresPath, "runtime")).
|
RuntimePath(filepath.Join(postgresPath, "runtime")).
|
||||||
CachePath(filepath.Join(postgresPath, "cache")).
|
CachePath(filepath.Join(postgresPath, "cache")).
|
||||||
|
Reference in New Issue
Block a user