fix: postgresql on ARM
This commit is contained in:
parent
9b67a253f1
commit
bc802b6f19
@ -873,6 +873,11 @@ export function generateDatabaseConfiguration(database: any, arch: string):
|
||||
}
|
||||
if (isARM(arch)) {
|
||||
configuration.volume = `${id}-${type}-data:/var/lib/postgresql`;
|
||||
configuration.environmentVariables = {
|
||||
POSTGRES_PASSWORD: dbUserPassword,
|
||||
POSTGRES_USER: dbUser,
|
||||
POSTGRES_DB: defaultDatabase
|
||||
}
|
||||
}
|
||||
return configuration
|
||||
} else if (type === 'redis') {
|
||||
@ -909,7 +914,7 @@ export function generateDatabaseConfiguration(database: any, arch: string):
|
||||
return configuration
|
||||
}
|
||||
}
|
||||
export function isARM(arch) {
|
||||
export function isARM(arch: string) {
|
||||
if (arch === 'arm' || arch === 'arm64') {
|
||||
return true
|
||||
}
|
||||
|
2
csb.nix
2
csb.nix
@ -1,7 +1,7 @@
|
||||
with import <nixpkgs> {};
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "git";
|
||||
name = "environment";
|
||||
buildInputs = [
|
||||
git
|
||||
git-lfs
|
||||
|
Loading…
x
Reference in New Issue
Block a user