mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-09 08:26:47 +00:00
Updated the env-var usage, as requested from the review of alexellis on the previous PR by utsavanand2
https://github.com/openfaas/faasd/pull/154#discussion_r608777877 Signed-off-by: Shikachuu <zcmate@gmail.com>
This commit is contained in:
parent
57322c4947
commit
1e9d8fffa0
@ -5,6 +5,7 @@ Description=faasd-provider
|
|||||||
MemoryLimit=500M
|
MemoryLimit=500M
|
||||||
Environment="secret_mount_path={{.SecretMountPath}}"
|
Environment="secret_mount_path={{.SecretMountPath}}"
|
||||||
Environment="basic_auth=true"
|
Environment="basic_auth=true"
|
||||||
|
Environment="hosts_dir=/var/lib/faasd-provider"
|
||||||
ExecStart=/usr/local/bin/faasd provider
|
ExecStart=/usr/local/bin/faasd provider
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=10s
|
RestartSec=10s
|
||||||
|
@ -247,7 +247,7 @@ func prepareEnv(envProcess string, reqEnvVars map[string]string) []string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getMounts() []specs.Mount {
|
func getMounts() []specs.Mount {
|
||||||
wd, _ := os.Getwd()
|
wd, _ := os.LookupEnv("hosts_dir")
|
||||||
mounts := []specs.Mount{}
|
mounts := []specs.Mount{}
|
||||||
mounts = append(mounts, specs.Mount{
|
mounts = append(mounts, specs.Mount{
|
||||||
Destination: "/etc/resolv.conf",
|
Destination: "/etc/resolv.conf",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user