mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-26 14:34:00 +00:00
Show docker status
This commit is contained in:
parent
53d67a2989
commit
5435e8a8ab
|
@ -121,6 +121,9 @@ def page_settings():
|
|||
# Get RTL Status
|
||||
rtl_status_log = get_journalctl_log("rtl")
|
||||
|
||||
# Get Docker Status
|
||||
docker_status_log = get_journalctl_log("docker")
|
||||
|
||||
# Get Docker Image Build Status
|
||||
docker_image_build_status_log = get_journalctl_log("docker_images")
|
||||
|
||||
|
@ -172,6 +175,9 @@ def page_settings():
|
|||
"rtl_status_log": rtl_status_log,
|
||||
"rtl_status": get_service_status_basic_text("rtl"),
|
||||
"rtl_status_color": get_service_status_color("rtl"),
|
||||
"docker_status_log": docker_status_log,
|
||||
"docker_status": get_service_status_basic_text("docker"),
|
||||
"docker_status_color": get_service_status_color("docker"),
|
||||
"docker_image_build_status_log": docker_image_build_status_log,
|
||||
"docker_image_build_status": get_docker_image_build_status(),
|
||||
"docker_image_build_status_color": get_docker_image_build_status_color(),
|
||||
|
|
|
@ -209,6 +209,11 @@
|
|||
$("#rtl_status").show();
|
||||
});
|
||||
|
||||
$("#show_docker_status").on("click", function() {
|
||||
$("#show_docker_status").hide(0);
|
||||
$("#docker_status").show();
|
||||
});
|
||||
|
||||
$("#show_docker_image_build_status").on("click", function() {
|
||||
$("#show_docker_image_build_status").hide(0);
|
||||
$("#docker_image_build_status").show();
|
||||
|
@ -606,6 +611,15 @@
|
|||
<div id="rtl_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{rtl_status_log}}</pre></div>
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="settings_block_subheader">Docker Status</div>
|
||||
<div class="settings_block_subheader_status">
|
||||
<div class="settings_block_subheader_status_icon {{ docker_status_color }}"></div>
|
||||
{{ docker_status }}
|
||||
</div>
|
||||
<button id="show_docker_status" class="ui-button ui-widget ui-corner-all settings_button_small">Show</button>
|
||||
<div id="docker_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{docker_status_log}}</pre></div>
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="settings_block_subheader">Docker Image Build Status</div>
|
||||
<div class="settings_block_subheader_status">
|
||||
<div class="settings_block_subheader_status_icon {{ docker_image_build_status_color }}"></div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user