Added vkrunner image in dev + default value for nbjobs when nil
This commit is contained in:
parent
a0c4ae8d6d
commit
0942bf7005
|
@ -36,7 +36,8 @@ config :zcash_explorer, Zcashex,
|
|||
zcashd_username: "zcashrpc",
|
||||
zcashd_password: "changeme",
|
||||
vk_cpus: "0.2",
|
||||
vk_mem: "2048M"
|
||||
vk_mem: "2048M",
|
||||
vk_runnner_image: "nighthawkapps/vkrunner"
|
||||
|
||||
# ## SSL Support
|
||||
#
|
||||
|
|
|
@ -102,7 +102,7 @@ defmodule ZcashExplorerWeb.PageController do
|
|||
with true <- String.starts_with?(vkey, "zxview"),
|
||||
true <- is_integer(String.to_integer(height)),
|
||||
true <- String.to_integer(height) >= 0,
|
||||
true <- Cachex.get!(:app_cache, "nbjobs") <= 10 do
|
||||
true <- Cachex.get!(:app_cache, "nbjobs") || 1 <= 10 do
|
||||
cmd =
|
||||
MuonTrap.cmd("docker", [
|
||||
"create",
|
||||
|
|
Loading…
Reference in New Issue