Added vkrunner image in dev + default value for nbjobs when nil

This commit is contained in:
Vamsi Krishna B 2021-08-26 15:19:21 +05:30
parent a0c4ae8d6d
commit 0942bf7005
2 changed files with 3 additions and 2 deletions

View File

@ -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
#

View File

@ -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",